Skip to content

Google AI Overview API

prod-global
GET
/api/v1/google/ai-overview

Scrape Google's AI-generated search overviews and get structured insights directly from Google's generative search experience. Ideal for SEO research and monitoring generative search trends.

Tags: Google API

Parameters

NameRequiredTypeDefaultDescription
urlYesstringThe unique URL generated by Google to access the AI Overview. This URL is typically extracted from the 'ai_overview_url' field in a Google Search API response. Note: This URL is transient and usually expires within 2 minutes.

Copy Request

bash
curl -X GET "https://api.justserpapi.com/api/v1/google/ai-overview?url=YOUR_VALUE" \
  -H "X-API-Key: YOUR_API_KEY"
js
const res = await fetch("https://api.justserpapi.com/api/v1/google/ai-overview?url=YOUR_VALUE", {
  headers: { "X-API-Key": "YOUR_API_KEY" }
});
const data = await res.json();
console.log(data);
python
import requests

url = "https://api.justserpapi.com/api/v1/google/ai-overview"
headers = { "X-API-Key": "YOUR_API_KEY" }
params = {
  "url": "YOUR_VALUE"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
php
<?php
$url = "https://api.justserpapi.com/api/v1/google/ai-overview?url=YOUR_VALUE";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "X-API-Key: YOUR_API_KEY"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	client := &http.Client{}
	req, _ := http.NewRequest("GET", "https://api.justserpapi.com/api/v1/google/ai-overview?url=YOUR_VALUE", nil)
	req.Header.Set("X-API-Key", "YOUR_API_KEY")
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}

Response

Example:

json
{
  "code": 200,
  "message": "success",
  "data": {
    "ai_overview": {
      "text_blocks": [
        {
          "type": "paragraph",
          "snippet": "Coffee is a globally popular brewed beverage made from the roasted and ground seeds (or \"beans\") of cherries from the Coffea plant. Renowned for its aroma, bitter taste, and caffeine content, it acts as a stimulant to improve mental alertness. It is often served hot or iced and can be prepared in many ways, including espresso, drip, or instant. Wikipedia +4",
          "snippet_highlighted_words": []
        },
        {
          "type": "paragraph",
          "snippet": "Key Aspects of Coffee:",
          "snippet_highlighted_words": []
        },
        {
          "type": "paragraph",
          "snippet": "Common Preparations:",
          "snippet_highlighted_words": []
        },
        {
          "type": "list",
          "list": [
            {
              "title": "Origin",
              "snippet": "Coffee comes from cherries grown on shrubs, primarily in subtropical regions of Africa, Asia, and Latin America."
            },
            {
              "title": "The \"Bean\"",
              "snippet": "The \"bean\" is actually the seed inside the bright red fruit (cherry). After harvesting, the fruit is removed, and the seeds are dried and roasted."
            },
            {
              "title": "Types",
              "snippet": "The two main commercial types are Arabica and Robusta."
            },
            {
              "title": "Brewing Methods",
              "snippet": "Common methods include espresso, French press, pour-over, and cold brew."
            },
            {
              "title": "Health Benefits",
              "snippet": "Beyond caffeine, coffee is high in antioxidants and may help lower the risk of heart disease, type 2 diabetes, and certain neurodegenerative diseases."
            }
          ]
        },
        {
          "type": "list",
          "list": [
            {
              "title": "Black",
              "snippet": "Brewed coffee with no additives."
            },
            {
              "title": "Espresso",
              "snippet": "Concentrated coffee brewed under high pressure."
            },
            {
              "title": "Latte/Cappuccino",
              "snippet": "Espresso mixed with milk or foam."
            },
            {
              "title": "Instant",
              "snippet": "Pre-brewed and dried granules that dissolve in water."
            }
          ]
        }
      ],
      "references": [
        {
          "title": "Coffee - Wikipedia",
          "link": "https://en.wikipedia.org/wiki/Coffee#:~:text=Coffee is a beverage brewed,taste or enhance the flavor.",
          "snippet": "Coffee - WikipediaCoffee is a beverage brewed from roasted, ground coffee beans. Darkly colored, bitter, and slightly acidic, coffee has a stimulati",
          "source": "Wikipedia",
          "index": 1
        },
        {
          "title": "What Is Coffee? History, Benefits, Varieties And Fun Facts",
          "link": "https://www.drinksupercoffee.com/blogs/nutrition/what-is-coffee#:~:text=Coffee can be brewed in a number,risk of other types of liver disease",
          "snippet": "What Is Coffee? History, Benefits, Varieties And Fun FactsOct 8, 2021 — Coffee can be brewed in a number of ways: * **French press** Large coffee grounds are steeped in hot water and then pressed. * **E",
          "source": "www.drinksupercoffee.com",
          "index": 2
        },
        {
          "title": "What is coffee? - NCA - About Coffee",
          "link": "https://www.aboutcoffee.org/origins/what-is-coffee/#:~:text=An even more accurate question,and ripe purplish cherries simultaneously!",
          "snippet": "What is coffee? - NCA - About CoffeeAn even more accurate question might be what is coffee made of? Coffee beans, sure – but did you know those are actually seeds fou",
          "source": "About Coffee - National Coffee Association",
          "index": 3
        },
        {
          "title": "Coffee - Simple English Wikipedia, the free encyclopedia",
          "link": "https://simple.wikipedia.org/wiki/Coffee#:~:text=\"Instant coffee\" is a very,cost as much as Arabica.",
          "snippet": "Coffee - Simple English Wikipedia, the free encyclopedia\"Instant coffee\" is a very quick way to make a cup of coffee to drink. It is made in a factory and sold in jars or packets. First,Wikipedia",
          "source": "",
          "index": 4
        },
        {
          "title": "What is coffee?",
          "link": "https://www.youtube.com/shorts/vMg4Ijp0JOg",
          "snippet": "What is coffee?Dec 28, 2023 — okay so the reason why I'm here holding some green coffee beans is because I didn't realize that it wasn't common knowledge that c",
          "source": "YouTube·Basic Barista1:00",
          "index": 5
        },
        {
          "title": "What is coffee and where does it come from? Well, it isn't a ...",
          "link": "https://www.youtube.com/shorts/LqWTDxe8tb0",
          "snippet": "What is coffee and where does it come from? Well, it isn't a",
          "source": "Ryde Jeavons0:32",
          "index": 6
        },
        {
          "title": "Coffee • The Nutrition Source",
          "link": "https://nutritionsource.hsph.harvard.edu/food-features/coffee/",
          "snippet": "Coffee • The Nutrition SourceCoffee is a complex mixture of over a thousand chemicals. It contains caffeine, plant compounds, and other nutrients. Research sug",
          "source": "The Nutrition Source",
          "index": 7
        },
        {
          "title": "Coffee | Origin, Types, Uses, History, & Facts | Britannica",
          "link": "https://www.britannica.com/topic/coffee#:~:text=The acidity of coffee causes,an alkaloid present in coffee.",
          "snippet": "Origin, Types, Uses, History, & Facts",
          "source": "Encyclopedia Britannica",
          "index": 8
        },
        {
          "title": "Coffee Basics: Types, Roasts, and How to Store It - The Spruce Eats",
          "link": "https://www.thespruceeats.com/what-is-coffee-primer-1328728#:~:text=Back to Top,are sold and shipped green.",
          "snippet": "Coffee Basics: Types, Roasts, and How to Store It - The Spruce EatsOct 28, 2019 — Back to Top. Coffee is a brewed beverage made from the roasted seeds, or “beans,” of the coffee plant. The coffee plant is a shrub",
          "source": "The Spruce Eats",
          "index": 9
        },
        {
          "title": "What is coffee? - Martin's",
          "link": "https://martinscoffeeandbakery.com/what-is-coffee#:~:text=Caffeine is believed to help,consumed beverages in the world.",
          "snippet": "What is coffee? - Martin'sCaffeine is believed to help improve mental alertness and focus, and it is one of the main reasons why coffee is popular as a morn",
          "source": "martinscoffeeandbakery.com",
          "index": 10
        },
        {
          "title": "Understanding coffee: definitions, vocabulary and facts | Lavazza",
          "link": "https://www.lavazza.co.uk/en/coffee-secrets/coffee-definition-vocabulary-curiosities",
          "snippet": "Understanding coffee: definitions, vocabulary and facts",
          "source": "Lavazza UK",
          "index": 11
        }
      ]
    }
  },
  "requestId": "d122b831-f0eb-4ef1-afec-8f9348fc20a4",
  "timestamp": 1771920551865
}