SERP API
View as MarkdownSearch Google and get structured SERP data as JSON
The Search endpoint performs a Google search for any query and returns fully parsed, structured JSON data. You get organic results, ads, knowledge graphs, local packs, video results, related questions, and more. All extracted and organized without any HTML parsing on your end.
Endpoint
GET https://api.scrape.do/plugin/google/searchRequest Parameters
Required
| Parameter | Type | Description |
|---|---|---|
token | string | Your Scrape.do API authentication token |
q | string | Search query. URL-encode spaces and special characters. pizza+new+york or pizza%20new%20york |
General
| Parameter | Type | Default | Description |
|---|---|---|---|
device | string | desktop | Device type for SERP layout. Accepted values: desktop, mobile |
start | integer | 0 | Result offset for pagination. 0 = 1st page, 10 = 2nd page, 20 = 3rd page, etc. Maximum 100. When paginating, send it from the first request onward — see Pagination |
cache | boolean | true | Reuses a successful identical search for up to 6 hours. Set false to fetch a fresh page from Google instead. See Caching |
include_html | boolean | false | When true, the raw Google HTML is included in the response html field, along with goto_links, which pairs Google redirect links in that HTML with their destinations. See Redirect links in HTML. If this query's AI Overview turns out to be deferred, passing include_html=true here also lets the follow-up endpoint return one combined page with the AI Overview content inserted into it |
ludocid | string | - | A place's decimal Google ID (data_cid in Google Maps results). Send it with the place's name and address in q to return that place's knowledge_graph. See Place details |
await_ai_overview | boolean | false | When the AI Overview is deferred, wait for its answer and return it as state: "complete" in this response instead of returning only a session_key. Costs 5 extra credits only when the answer is returned. See Getting the answer in the same request |
resolveGoto | boolean | true | Replaces Google redirect links left in the response (https://www.google.com/goto?url=…) with their destination URLs at no extra cost. Set false to keep the redirect URLs as Google serves them. See Result links |
validateResult | boolean | true | Checks whether the page is the real result for your query and retries poisoned pages. Poisoned pages are not charged. See Result Validation |
Localization & Geo-targeting
| Parameter | Type | Default | Description |
|---|---|---|---|
hl | string | en | Host Language. Controls the language of the Google UI (buttons, labels, interface text). For queries containing the site: operator, pages after the first (start > 0) are fetched without hl, so the interface text on those pages (page_title, navigation, search_information, dates) can be in another language. Result titles and links are unaffected; a date at the start of snippet (and in date) can follow the page language. Supports 150+ languages. ISO 639-1 codes. Examples: tr, de, fr, ja, pt. Full list → |
gl | string | us | Country edition. Determines which country's Google edition answers the search, affecting ranking, currency, and local domains. Send the country code for location when targeting a city. Supports 240+ countries. Examples: tr, de, uk, jp. Full list → |
google_domain | string | google.com | Google domain to query. Supports 84 regional domains. Prefixes https://, http://, and www. are automatically stripped. Examples: google.com.tr, google.de, google.co.uk. Full list → |
location | string | - | City or region to search from in Google's canonical format. Automatically encoded to UULE internally. Examples: Istanbul,Istanbul,Turkey, New York,New York,United States. Send the corresponding gl country code with it |
uule | string | - | Google UULE-encoded location string. Auto-generated from location when not provided. If both location and uule are sent, uule takes priority. A leading + can be sent literally (w+CAIQ...) or percent-encoded (w%2BCAIQ...) |
Result Filtering
| Parameter | Type | Default | Description |
|---|---|---|---|
lr | string | - | Language Restrict. Filters results to pages written in a specific language only. Supports 35 languages. Format: lang_XX. Examples: lang_tr (Turkish), lang_en (English), lang_de (German). Full list → |
cr | string | - | Country Restrict. Filters results to pages originating from a specific country only. Supports 240+ countries. Format: countryXX. Examples: countryTR (Turkey), countryUS, countryDE. Full list → |
safe | string | - | SafeSearch. Send active to filter adult content from results |
nfpr | boolean | false | When true, disables Google's automatic spelling correction. The "Did you mean..." suggestion will not alter results |
filter | string | - | Controls "Similar Results" and "Omitted Results" filters. Send 0 to disable and show all results. Default (not sent or 1) = filters active |
time_period | string | - | Time-based filter. Accepted values: last_hour, last_day, last_week, last_month, last_year |
hl vs lr / gl vs cr: hl and gl set the search context. Google treats them as hints, so results may still include other languages or countries. lr and cr apply strict filtering. Only results matching the specified language or country are returned.
Location targeting: location determines the city or region searched from, while gl determines the country edition that answers the search. Because gl defaults to us, a London request without gl=uk searches from London using the US edition. Send gl=uk with location=London,England,United+Kingdom to use the UK edition instead.
Location matching: search_parameters echoes back the location and uule you sent, but that confirms acceptance — not localization. Check local_results or the domains in organic_results to confirm. The location string must match Google's own name for the place; if it does not, the location is ignored silently and results fall back to the country in gl. Country names follow Google's current spelling — send Turkey and it is submitted as Turkiye, the name Google recognises.
Example Usage
Step 1: Define Your Search Query
Decide what you want to search for on Google. This can be:
- General queries:
pizza new york,best laptop 2026 - Local searches:
restaurants near me,hotels in istanbul - Informational queries:
how to learn python,what is web scraping
For this example, we'll search for "pizza new york":
Step 2: Send the API Request
curl --location --request GET 'https://api.scrape.do/plugin/google/search?token=<SDO-token>&q=pizza+new+york'import requests
import json
token = "<SDO-token>"
query = "pizza+new+york"
url = f"https://api.scrape.do/plugin/google/search?token={token}&q={query}"
response = requests.request("GET", url)
print(json.dumps(response.json(), indent=2))const axios = require('axios');
const token = "<SDO-token>";
const query = "pizza+new+york";
const url = `https://api.scrape.do/plugin/google/search?token=${token}&q=${query}`;
axios.get(url)
.then(response => {
console.log(JSON.stringify(response.data, null, 2));
})
.catch(error => {
console.error(error);
});package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
token := "<SDO-token>"
query := "pizza+new+york"
url := fmt.Sprintf(
"https://api.scrape.do/plugin/google/search?token=%s&q=%s",
token, query,
)
resp, err := http.Get(url)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}require 'net/http'
require 'json'
token = "<SDO-token>"
query = "pizza+new+york"
url = URI("https://api.scrape.do/plugin/google/search?token=#{token}&q=#{query}")
response = Net::HTTP.get(url)
puts JSON.pretty_generate(JSON.parse(response))import java.net.HttpURLConnection;
import java.net.URL;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class GoogleSearch {
public static void main(String[] args) throws Exception {
String token = "<SDO-token>";
String query = "pizza+new+york";
String url = String.format(
"https://api.scrape.do/plugin/google/search?token=%s&q=%s",
token, query
);
HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();
conn.setRequestMethod("GET");
BufferedReader reader = new BufferedReader(
new InputStreamReader(conn.getInputStream())
);
String line;
StringBuilder response = new StringBuilder();
while ((line = reader.readLine()) != null) {
response.append(line);
}
reader.close();
System.out.println(response.toString());
}
}using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
string token = "<SDO-token>";
string query = "pizza+new+york";
string url = $"https://api.scrape.do/plugin/google/search?token={token}&q={query}";
using HttpClient client = new HttpClient();
string response = await client.GetStringAsync(url);
Console.WriteLine(response);
}
}<?php
$token = "<SDO-token>";
$query = "pizza+new+york";
$url = "https://api.scrape.do/plugin/google/search?token={$token}&q={$query}";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo json_encode(json_decode($response), JSON_PRETTY_PRINT);
?>Step 3: Receive Structured Results
The API returns a JSON object with all SERP elements parsed and categorized:
{
"search_parameters": {
"q": "pizza new york",
"hl": "en",
"gl": "us",
"device": "desktop",
"start": 0,
"google_domain": "google.com"
},
"search_information": {
"page_title": "pizza new york - Google Search",
"query_displayed": "pizza new york",
"total_results": 349000000,
"time_taken_displayed": 0.52,
"organic_results_state": "Results for exact spelling",
"results_for": "",
"country": "",
"city": ""
},
"organic_results": [
{
"position": 1,
"title": "The Best Pizzerias of New York City",
"link": "https://ny.eater.com/maps/best-pizza-new-york-city-nyc-pizzerias",
"displayed_link": "https://ny.eater.com › maps › best-pizza-new-york-city-...",
"snippet": "Where to find the best pizza in New York at the best pizzerias in NYC serving the best pies and slices including L&B Spumoni Gardens, L'Industrie, ...",
"snippet_highlighted_words": ["best"],
"source": "Eater New York",
"sitelinks": {
"expanded": [
{ "title": "L&B Spumoni Gardens", "link": "https://ny.eater.com/maps/best-pizza-new-york-city-nyc-pizzerias#lb-spumoni-gardens" },
{ "title": "L'Industrie Pizzeria", "link": "https://ny.eater.com/maps/best-pizza-new-york-city-nyc-pizzerias#lindustrie" }
]
}
},
{
"position": 2,
"title": "Ny Pizza New York, NY - Last Updated February 2026",
"link": "https://www.yelp.com/search",
"displayed_link": "https://www.yelp.com › Restaurants",
"snippet": "Top 10 Best Ny Pizza in New York, NY - Yelp - NY Pizza Suprema, Juliana's, L'industrie Pizzeria, Joe's Pizza, Angelo's Coal Oven ...",
"snippet_highlighted_words": ["NY Pizza Suprema"],
"source": "yelp.com",
"rich_snippet": {
"bottom": {
"extensions": ["(41,361)"]
}
}
},
{
"position": 3,
"title": "NYC: Best Pizza",
"link": "https://www.the-carboholic.com/nyc-guides/nyc-best-pizza",
"displayed_link": "https://www.the-carboholic.com › nyc-guides › nyc-best-...",
"snippet": "Nov 23, 2025 — The best (and one of the only) I've found is from Emmett's. You can build your own deep dish pie here, choosing from a list of 20+ toppings.",
"snippet_highlighted_words": ["Emmett's"],
"source": "The Carboholic"
}
],
"related_questions": [
{ "question": "What is the most famous pizza in New York?" },
{ "question": "What is the best pizza in NYC?" },
{ "question": "Why is Joe's pizza so famous?" }
],
"related_searches": [
{ "query": "best pizza in new york", "link": "https://www.google.com/search?q=best+pizza+in+new+york" },
{ "query": "pizza delivery new york", "link": "https://www.google.com/search?q=pizza+delivery+new+york" }
],
"pagination": {
"current": 0,
"next": "https://www.google.com/search?q=pizza+new+york&start=10",
"other_pages": {
"2": "...&start=10",
"3": "...&start=20"
}
}
}Pagination
To get additional pages of results, increment the start parameter by 10. Offset can go up to start=100; a higher value is rejected with 400 because no results exist that deep. On the last servable page, pagination.next is omitted.
The start parameter uses zero-based offset: 0 = first page, 10 = second page, 20 = third page, and so on.
Send start from the very first request of a sweep — begin at start=0 and send it on every page. Pages of the same search (identical parameters except start) are then served from one browsing session for a short window (about 2 minutes), so results stay coherent across start=0,10,20,… instead of reshuffling or repeating between pages. There is nothing to enable: sending start is the signal.
/plugin/google/search?token=...&q=pizza+new+york&start=0
/plugin/google/search?token=...&q=pizza+new+york&start=10
/plugin/google/search?token=...&q=pizza+new+york&start=20- Omitting
starton the first request and adding it only from the second page onward breaks that coherence: the first request is treated as a standalone search and can return a different set of results than the rest of the sweep. - Send pages one at a time: request the next page only after the previous one has returned. While a page of the same search is still in progress, another page is rejected with
429and is not charged. Pages from different searches can run in parallel. This limit applies per account, so using another API token from the same account does not bypass it. - Allow at least 60 seconds per request. If your client stops waiting sooner, the request may still be running on our side, and an immediate retry can receive
429until it finishes. - Changing any other parameter that affects results (
q,gl,hl,location,device, …) starts a separate search.cache,include_htmlandresolveGotodo not, so a page sent withcache=falsestill belongs to the same sweep. - A sweep that takes longer than the window simply continues on a new session.
- A single search sent without
startis a one-off and is not tied to any sweep. - Pages after the first (
start > 0) contain web results:organic_resultsandpagination, plus, when Google shows them,top_ads,bottom_ads,related_searches,video_results, andinline_images.related_questionsandtop_storiesare empty on these pages,local_resultsandlocal_maparenull, and there is noai_overview. The first page (start=0) carries every section. - With
device=mobile, the first page has nopagination.nextorpagination.other_pages; later pages can includenext. Paging withstartworks either way: sendstart=0,10,20,…yourself rather than relying onpagination.next.
Result Validation (validateResult)
Google sometimes serves a poisoned page: a page that looks like a normal results page but is not the real result for the query. With validateResult=true, every page is checked. A poisoned page is retried to get the real result. If the real result cannot be reached, the page is still returned and the request is not charged.
Response times can be longer with validateResult=true because of these retries. The parameter prioritizes data quality over speed.
Every response includes three headers with the validation result:
Scrape.do-Validation-Status: valid
Scrape.do-Validation-Score: 97
Scrape.do-Validation-Issue: noneScrape.do-Validation-Status: Whether the page is the real results page for the query.
| Value | Meaning | Charged |
|---|---|---|
valid | Real results page | Yes |
suspect | May be poisoned, not certain | Yes |
poisoned | Poisoned, still returned | No |
unverified | Could not be checked | Yes |
Scrape.do-Validation-Score: Confidence that the page is real, from 100 to 0.
50to100:validpage0to49:suspectorpoisonedpage-1:unverifiedpage
Scrape.do-Validation-Issue: The issue found on the page. Always none on valid and unverified pages.
| Value | Meaning |
|---|---|
none | No issue |
query_truncated | The results belong to only part of the query |
query_replaced | The results belong to a different query |
operator_ignored | The site: operator was not applied |
no_results | There are no web results on the page |
few_results | The page has far fewer results than it should |
altered_results | The results are not the normal results for this search |
other | An issue not on this list |
Distinguishing a poisoned page from a real one with 100% certainty is not possible, so the validation result has a small margin of error. Detection is continuously improved, and requests sent with validateResult=true receive these improvements automatically.
Caching
Successful searches are cached for 6 hours. Repeating an identical search during that time returns the cached page, so the results and total_results remain consistent. Cached responses cost the same credits as fresh responses.
A cached page is reused only when every result-affecting parameter, including ludocid, matches. include_html, resolveGoto, and await_ai_overview do not affect cache matching. Paginated searches are cached page by page, and pages in the same cached sweep stay consistent with each other. To refresh a complete paginated search, request the first page with start=0&cache=false; later pages then follow that fresh sweep.
Set cache=false to skip the cache and fetch a fresh page. The fresh page replaces the cached version for later requests. The previous no_cache=true parameter remains supported as an alias and has the same effect.
Pages without organic results and pages with a deferred AI Overview are not cached, including pages whose answer was returned with await_ai_overview=true.
Response Structure
Top-Level Fields
| Field | Type | When Empty | Description |
|---|---|---|---|
search_parameters | object | always present | Echo of the request parameters sent by the client |
search_information | object | always present | Search metadata: total results, timing, detected location |
organic_results | array | [] | Standard web search results |
top_ads | array | [] | Sponsored results above organic results |
bottom_ads | array | [] | Sponsored results below organic results |
top_stories | array | [] | News and stories carousel |
related_questions | array | [] | "People Also Ask" expandable questions |
related_searches | array | [] | Related search query suggestions |
ai_overview | object | omitted | AI-generated overview with text blocks and references. Omitted when the page has no AI Overview. See ai_overview |
navigation | array | [] | Search type tabs (All, Images, News, etc.) |
video_results | array | [] | Video results section |
discussions_and_forums | array | [] | Forum and Reddit-style discussion results |
dmca_messages | object | omitted | Filtered-result notices (removed results, copyright or legal removals). Only present when Google removed results on this page. See dmca_messages |
local_map | object | null | Map widget with link and thumbnail image |
local_results | object | null | Local business listings (map pack) |
knowledge_graph | object | null | Knowledge panel for entities |
inline_images | array | omitted | Images shown in Google's inline Images block. Only present when Google includes an Images block on the page; later pages can carry their own. See inline_images |
pagination | object | null | Pagination links and metadata |
html | string | omitted | Raw Google HTML. Only present when include_html=true |
goto_links | array | omitted | Google redirect links found in html, paired with their destination URLs. Only present when include_html=true. See Redirect links in HTML |
Array fields always return [] when empty (never null). Object fields return null when absent, except ai_overview, which is omitted. The html and goto_links fields are completely omitted unless include_html=true.
search_parameters
Echoes the request parameters. Always-present fields are shown below; optional fields appear only when sent by the client.
{
"q": "pizza new york",
"hl": "en",
"gl": "us",
"device": "desktop",
"start": 0,
"google_domain": "google.com",
"location": "New York,New York,United States",
"uule": "w+CAIQICIfTmV3IFlvcmssTmV3...",
"nfpr": true,
"lr": "lang_en",
"cr": "countryUS",
"safe": "active",
"time_period": "last_week",
"filter": "0",
"ludocid": "4280570365733019477"
}search_information
Search metadata. All fields are always present (empty string or zero when no data).
| Field | Type | Description |
|---|---|---|
page_title | string | HTML page title returned by Google |
query_displayed | string | The query as displayed by Google on the results page |
total_results | integer | Approximate total number of results reported by Google |
time_taken_displayed | float | Search time in seconds as displayed by Google |
organic_results_state | string | State of results (e.g., "Results for exact spelling") |
results_for | string | Corrected query if Google auto-corrected the search term |
country | string | Country from the location Google shows at the bottom of the results page, written in the page's language. Empty when Google does not show a location |
city | string | City or region from Google's footer location, written in the page's language. It can repeat the country when Google has no more precise location, and is empty when no location is shown |
With device=mobile, total_results is 0 because Google does not display a result count on mobile SERPs. Use device=desktop if you need the reported count.
organic_results[]
Standard web search results.
| Field | Type | Description |
|---|---|---|
position | integer | Result position on the page (1-indexed). Standard web results only — ads, local pack and top stories never consume an organic position, so position reflects the true organic rank. Restarts at 1 on each page |
title | string | Page title |
link | string | Absolute URL to the page. See Result links for when a Google redirect URL is returned |
displayed_link | string | URL as shown in the SERP (breadcrumb format) |
snippet | string | Result description/snippet text |
snippet_highlighted_words | string[] | Bold/highlighted words within the snippet |
source | string | Source website name (e.g., "Eater New York", "Reddit · r/FoodNYC") |
date | string | Date shown at the start of the result snippet, in the page's language (e.g., "3 days ago", "Nov 23, 2025"). Omitted when the snippet does not start with a date; snippet keeps the date text |
sitelinks | object | Sitelinks for the result. inline are the small links shown directly beneath a result; expanded holds the stacked deep links Google groups when a single site dominates the query ("More results from this site"). Shape: { "inline": [{ "title", "link", "description" }], "expanded": [{ "title", "link" }] }. Either array is omitted when empty. |
rich_snippet | object | Rich snippet data: { "bottom": { "extensions": ["(41,361)", ...] } } |
top_ads[] & bottom_ads[]
Sponsored results. top_ads appear above organic results, bottom_ads appear below.
| Field | Type | Description |
|---|---|---|
position | integer | Ad position within its group (1-indexed) |
title | string | Ad headline |
url | string | Ad destination URL |
displayed_url | string | URL shown in the ad |
description | string | Ad description text |
phone | string | Phone number (if displayed in the ad) |
knowledge_graph
Rich knowledge panel. Fields vary by entity type (person, business, place, etc.).
| Field | Type | Description |
|---|---|---|
title | string | Entity name |
type | string | Entity type (e.g., "Restaurant", "Person", "Movie") |
knowledge_graph_type | string | Internal Knowledge Graph type identifier |
kgmid | string | Knowledge Graph Machine ID |
description | string | Entity description text |
source | object | { "name": "Wikipedia", "link": "..." } |
header_images | array | [{ "image": "...", "source": "..." }] |
facts | array | [{ "label": "Origin", "value": "Italy" }] |
rating | float | Rating score |
review_count | integer | Number of reviews |
price | string | Visitor-reported price per person in the place's local currency (e.g., $10–20, ₹1–800, ₺200–400) |
price_details | object | Visitor-reported price distribution and total number of reports |
address | string | Physical address |
phone | string | Phone number |
website | string | Official website URL |
open_hours | array | [{ "name": "Monday", "value": "10AM-11PM" }] |
local_map | object | { "link" }, the place's Google Maps URL |
social_media | array | [{ "platform": "Twitter", "url": "..." }] |
related_topics | array | [{ "title": "Chicago-style pizza" }] |
user_reviews | array | [{ "review", "rating", "user": { "name", "link" } }] |
Additional entity-dependent fields may include: age, born, born_location, spouse, children, education, tv_shows, price_range, service_options, directions, menu, reservations, popular_times, web_reviews, merchant_description, profiles, images, ludocid.
Place details with ludocid
To request the knowledge panel for a specific place, use the place's decimal data_cid from Google Maps results as ludocid. Include the place's name and full address in q so Google can identify the correct location:
/plugin/google/search?token=TOKEN&q=Joe%27s+Pizza+Broadway+1435+Broadway+New+York+NY&ludocid=4280570365733019477For food and drink locations, knowledge_graph can include the price per person reported by visitors:
{
"price": "$10–20",
"price_details": {
"distribution": [
{ "price": "$1–10", "percentage": 26.514486 },
{ "price": "$10–20", "percentage": 44.644424 },
{ "price": "$20–30", "percentage": 15.496049 },
{ "price": "$30–40", "percentage": 7.4187884 }
],
"total_reported": 2278
}
}Prices use the place's local currency. The price and price_details fields are omitted when Google has no visitor reports, which is common for shops and services. Use the decimal data_cid, not the hexadecimal data_id; a non-numeric ludocid returns 400 with {"error": "ludocid must be a place's numeric CID (data_cid)"} and is not charged.
local_results
The local pack ("Places" or "Businesses") Google shows for local queries. local_results is null when the page has no local pack. When present, it contains a places array in page order and an optional link to more results.
{
"places": [
{
"position": 1,
"title": "NYC Plumber Co",
"place_id": "17297393353027249588",
"data_id": "0x8e4ccbe4a385f159:0xf00caf9beb6465b4",
"kgmid": "/g/11zx09njrj",
"rating": 5,
"reviews": 33,
"reviews_original": "(33)",
"type": "Plumber",
"address": "New York, NY",
"phone": "(929) 717-4784",
"hours": "Open 24 hours",
"directions": "https://www.google.com/maps/dir//NYC+Plumber+Co,+1+Liberty+St,+New+York,+NY+10006/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x8e4ccbe4a385f159:0xf00caf9beb6465b4?sa=X&..."
},
{
"position": 2,
"title": "A&E NYC Plumbing",
"place_id": "6609734378337047053",
"data_id": "0x89c25b16716af569:0x5bba7e65b077920d",
"kgmid": "/g/11svw_rff6",
"rating": 5,
"reviews": 146,
"reviews_original": "(146)",
"type": "Plumber",
"address": "New York, NY",
"phone": "(646) 392-7164",
"hours": "Opens soon · 7 AM",
"website": "https://www.topplumbernyc.com/",
"directions": "https://www.google.com/maps/dir//A%26E+NYC+Plumbing,+40+Fulton+St,+New+York,+NY+10038/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x89c25b16716af569:0x5bba7e65b077920d?sa=X&...",
"description": "3+ years in business"
}
],
"more_locations_link": "https://www.google.com/search?q=plumber&...&udm=local&..."
}| Field | Type | Description |
|---|---|---|
places[].position | integer | Position in the local pack, starting at 1 |
places[].title | string | Business name |
places[].place_id | string | Google CID for the place, usable as ludocid. Present when the card links to directions |
places[].data_id | string | Google Maps data ID in 0x…:0x… format. Present when the card links to directions |
places[].kgmid | string | Knowledge Graph ID in /g/… or /m/… format, when available |
places[].rating | float | Average rating |
places[].reviews | integer | Review count. Abbreviated counts shown by Google are expanded |
places[].reviews_original | string | Review count exactly as shown on the card |
places[].type | string | Business category in the requested page language |
places[].address | string | Address exactly as shown on the card |
places[].description | string | Optional note shown before the address, such as how long the business has been open |
places[].phone | string | Phone number, when shown |
places[].hours | string | Opening status and hours exactly as shown |
places[].website | string | Business website, when shown. Google redirect links follow the same handling described in Result links |
places[].directions | string | Google Maps directions URL, when shown |
places[].price | string | Price level or range, when shown |
more_locations_link | string | URL for Google's "More places" or "More businesses" view. Google redirect links follow the same handling described in Result links |
local_map
The map Google shows with the local pack, or with a single place's knowledge panel. local_map is null when the page shows no map. Many local packs have no map, so local_results can be filled while local_map is null.
{
"link": "https://www.google.com/search?q=pizza+new+york&...&udm=local&...",
"image": "https://www.google.com/maps/vt/data=..."
}| Field | Type | Description |
|---|---|---|
link | string | URL for Google's local results page. For a single place's map, the place's Google Maps URL |
image | string | Map thumbnail as a Google Maps image URL or an inline data:image/png value. Omitted when Google shows no thumbnail, as on a single place's map |
inline_images[]
Images from the inline Images block, in the order Google shows them. The API returns only the images included in the page, so the array can contain fewer items than the total shown in the block. This field is omitted when the page has no Images block; later pages can carry their own.
| Field | Type | Description |
|---|---|---|
source | string | Page the image belongs to |
thumbnail | string | Thumbnail image URL. Omitted when Google does not provide one |
original | string | Full-size image URL. Omitted when Google does not provide one |
title | string | Title of the source page |
source_name | string | Name of the source website |
related_questions[]
"People Also Ask" expandable question boxes.
| Field | Type | Description |
|---|---|---|
question | string | The question text |
video_results[]
| Field | Type | Description |
|---|---|---|
position | integer | Position in the video section |
title | string | Video title |
url | string | Video URL |
source | string | Platform name and channel (e.g., "YouTube · Bon Appétit") |
duration | string | Video duration (e.g., "16:00") |
top_stories[]
News and stories carousel. Contains sections with an array of story items.
[{
"items": [
{ "position": 1, "title": "...", "link": "..." },
{ "position": 2, "title": "...", "link": "..." }
]
}]discussions_and_forums[]
| Field | Type | Description |
|---|---|---|
position | integer | Position in the discussions section |
title | string | Thread title |
link | string | Thread URL |
source | string | Platform name (e.g., "Reddit", "Stack Overflow") |
date | string | Post date |
community | string | Community name (e.g., "r/FoodNYC") |
related_searches[]
| Field | Type | Description |
|---|---|---|
query | string | Related search query text |
link | string | Google search URL for this query |
ai_overview
When Google returns an AI Overview for the query, this field is included in the first page (start=0). Pages after the first return web results without an AI Overview. When no AI Overview is present, the field is omitted.
AI Overview uses these response states:
| State | Description |
|---|---|
complete | Full AI Overview content returned inline |
deferred | Content not yet available — use the follow-up endpoint with the returned session_key, or pass await_ai_overview=true on the search to wait for it |
unavailable | Returned by the follow-up endpoint when Google did not produce an answer for the session |
| (field absent) | No AI Overview for this query |
Getting the Answer in the Same Request
By default, a deferred AI Overview requires a second request to /plugin/google/search/ai-overview. Pass await_ai_overview=true to wait for the answer and return state: "complete", text_blocks, and references in the original search response:
/plugin/google/search?token=TOKEN&q=what+is+dropshipping&gl=us&hl=en&await_ai_overview=true- Cost: 5 extra credits, charged only when a deferred answer is returned. Searches with an inline AI Overview or no AI Overview still cost 10 credits.
- Response time: Deferred answers take longer because the request waits for Google to finish generating the AI Overview. The request remains within the usual 60-second window.
- Fallback: If the answer is not ready in time, the response remains
state: "deferred"with asession_key, and no extra credits are charged. You can still call the follow-up endpoint, but it can returnstate: "unavailable", and it costs 5 credits either way. - HTML: With
include_html=true, the returnedhtmlincludes the AI Overview inserted into the result page when possible. If it cannot be inserted, the original page HTML is returned and the answer remains available inai_overview. - Scope: This option applies only to the first result page (
start=0), where AI Overviews are extracted.
Complete example:
{
"ai_overview": {
"state": "complete",
"text_blocks": [
{
"type": "paragraph",
"snippet": "To print a document, open the file, select File > Print or press Ctrl+P (Windows) / Cmd+P (Mac)...",
"reference_indexes": [0, 1, 2]
},
{
"type": "list",
"list": [
{
"snippet": "Open the File: Open the document you wish to print."
},
{
"snippet": "Access Print Menu: Click \"File\" then select \"Print.\""
},
{
"snippet": "Select Printer & Settings: Choose the correct printer.",
"list": [
{ "snippet": "Printer: Choose the correct printer from the dropdown menu." },
{ "snippet": "Pages: Select \"All Pages\" or enter specific page numbers." }
]
}
],
"reference_indexes": [3, 6]
}
],
"references": [
{
"title": "How to Print Documents from Computer",
"link": "https://www.youtube.com/watch?v=example",
"snippet": "To print from a laptop, ensure both the printer and laptop are connected...",
"source": "YouTube"
}
]
}
}Deferred example:
{
"ai_overview": {
"state": "deferred",
"session_key": "ce5a60050323b4beee15b60e1fcc9018"
}
}AI Overview Schema
AIOverview Object
| Field | Type | Description |
|---|---|---|
state | string | "complete", "deferred", or "unavailable" |
text_blocks | array | Content blocks (only when state=complete) |
references | array | Cited sources (only when state=complete) |
session_key | string | Session key for the follow-up endpoint (only when state=deferred). Any references already available are also carried in the deferred object |
TextBlock Object
| Field | Type | Description |
|---|---|---|
type | string | "paragraph", "heading", "list" or "table" |
snippet | string | Text content (for paragraphs and heading titles) |
snippet_links | array | Inline links within the snippet (optional) |
list | array | List items when type=list (optional). Product and place card details can include a title |
table_headers | array | Column headers as strings, when type=table |
table_rows | array | Table rows, each an array of strings, when type=table |
reference_indexes | array of int | Indexes into the references array (optional) |
ListItem Object
| Field | Type | Description |
|---|---|---|
snippet | string | Item text |
title | string | Product or place name for card-style results (optional) |
snippet_links | array | Inline links (optional) |
list | array | Nested sub-items (optional, recursive) |
When Google renders a product or place as a card, each detail is returned as a separate list item with the same title:
{ "snippet": "Price Range: ~$199 (available at Best Buy)", "title": "ASUS CX14 (14\" Chromebook)" }Reference Object
| Field | Type | Description |
|---|---|---|
title | string | Page title |
link | string | URL |
snippet | string | Description excerpt |
source | string | Domain or site name |
SnippetLink Object
| Field | Type | Description |
|---|---|---|
text | string | Link text |
link | string | URL |
Fetching a Deferred AI Overview
When you receive state: "deferred", make a follow-up request to fetch the complete AI Overview. To avoid the second request, pass await_ai_overview=true on the original search as described in Getting the answer in the same request.
GET https://api.scrape.do/plugin/google/search/ai-overview?token=TOKEN&session_key=SESSION_KEY| Parameter | Required | Description |
|---|---|---|
token | Yes | Your API token |
session_key | Yes | Session key from the deferred response |
include_html | No | When true, HTML is included in the response (see below) |
resolveGoto | No | Defaults to true. Replaces Google redirect links in references with their destination URLs at no extra cost. Set false to keep the redirect URLs |
Credit cost: 5 credits per async AI Overview request. Redirect resolution does not add credits.
Reference links are resolved to the publisher's URL by default, the same way as on /plugin/google/search. A link that cannot be resolved in time stays as Google's redirect URL, which takes you to the destination when followed. Links inside html are left as Google serves them; only references are resolved.
The response returns the same AI Overview structure with state: "complete" or state: "unavailable":
{
"state": "complete",
"text_blocks": [
{
"type": "paragraph",
"snippet": "mRNA vaccines work by instructing cells to produce a harmless piece of the target virus's spike protein...",
"reference_indexes": [0, 1]
}
],
"references": [
{
"title": "Understanding mRNA COVID-19 Vaccines",
"link": "https://www.cdc.gov/...",
"snippet": "mRNA vaccines teach our cells how to make a protein...",
"source": "CDC"
}
]
}Session keys expire after 90 seconds and are one-time use (deleted after successful fetch). If expired or already used, the endpoint returns 404 with {"error": "session not found", "message": "Session key is invalid or expired. Please make a new search request."} and is not charged — repeat the search request for a fresh one, or pass await_ai_overview=true to receive the answer in the search response when it is ready in time.
Included HTML in the follow-up response
By default, html is just the HTML the AI Overview was extracted from. If you also passed include_html=true on the original search request that produced this session_key, html is instead one combined page with the AI Overview content already inserted into the original page — so you don't have to stitch the two responses together yourself. If the original page's HTML isn't available (for example, include_html=true wasn't passed on the original request, or too much time passed between the two requests), html falls back to just the AI Overview fragment.
In both cases html is ready-to-render markup: the AI Overview arrives from Google in an incremental transfer format, and it is assembled into finished HTML for you, with the answer in its normal place on the page. You can save the response to a file and open it in a browser as-is.
Result links
link is an absolute URL you can request directly — no host to prepend, no path to resolve.
- Results pointing at one of Google's own surfaces (Flights, Books, Arts, Finance) keep that host, for example
https://www.google.com/travel/flights/flights-to-tokyo.html. They are ordinary results and count towardposition. - Google serves result links as its own redirect,
https://www.google.com/goto?url=…, in place of the destination URL. When the page carries the destination as well,linkis resolved back to it at no extra cost, so it is the publisher's URL. - For links whose destination the page does not carry — commonly AI Overview references, image-led cards and the complaint links in dmca_messages — the destination is looked up before the response is returned. A link that cannot be resolved in time keeps Google's redirect URL. Set
resolveGoto=falseto skip these lookups and keep the redirects.
ai_overview.references[].link follows the same rules.
Resolving redirect links (resolveGoto)
By default (resolveGoto=true), every Google redirect link still in the response is replaced with the destination URL it points to before the response is returned. Nothing needs to be enabled:
/plugin/google/search?token=...&q=what+is+seo&gl=us&hl=en- All redirects in the response are resolved at the same time. A link that cannot be resolved keeps its redirect URL, and the request still succeeds.
- The destination URL replaces the redirect in the same field.
- Only link values change: the response has the same fields, results, order and
positionwith or withoutresolveGoto. - A destination on an internationalized domain is returned as shown on the search page, not converted to punycode.
- Resolving adds at most 10 seconds to the response time.
- Cost: no extra credits — a request costs the same with or without
resolveGoto. - To resolve a redirect later, including one kept from a
resolveGoto=falseresponse, send it to the Google Redirect Link Resolver.
Set resolveGoto=false to keep the redirect URLs exactly as Google serves them and avoid the extra lookup time:
/plugin/google/search?token=...&q=what+is+seo&gl=us&hl=en&resolveGoto=falseRedirect links in html (goto_links)
The raw html contains Google's original redirect links, such as /goto?url=…. When include_html=true, the response also includes goto_links, which pairs each redirect href in the HTML with its destination:
/plugin/google/search?token=...&q=project+manager+orange+county&gl=us&hl=en&include_html=true{
"goto_links": [
{
"original_href": "/goto?url=CAES2AEB6zswFRDyGdiFAIU05ye8...",
"resolved_url": "https://www.governmentjobs.com/careers/oc/jobs/1757253",
"resolved": true
},
{
"original_href": "/goto?url=CAESvQEB6zswFU1eBtNBEsI3Iszd...",
"resolved_url": null,
"resolved": false
}
]
}| Field | Type | Description |
|---|---|---|
original_href | string | Redirect exactly as it appears in an href in html. Match this value against the HTML to identify the link |
resolved_url | string | null | Destination URL, or null when the link was not resolved |
resolved | boolean | Whether resolved_url is available |
- Every redirect link in
htmlappears once in page order, including links not represented in another response field. - With
resolveGoto=true(the default), every entry is looked up, including redirects that appear only inhtml. WithresolveGoto=false, no lookups run and every entry hasresolved: falseandresolved_url: null. - A page without redirect links returns
"goto_links": []. - There is no extra credit cost.
dmca_messages
When Google has removed pages from a result page, it prints a notice under the results saying so. dmca_messages carries that block. The key is absent when the page shows no notice, so its presence is itself the signal that something was removed for this query.
{
"dmca_messages": {
"title": "Notices about Filtered Results",
"messages": [
{
"content": "In response to multiple complaints we received under the US Digital Millennium Copyright Act, we have removed 2 results from this page. If you wish, you may read the DMCA complaints that caused the removals at LumenDatabase.org: Complaint, Complaint.",
"highlighted_words": [
{ "text": "US Digital Millennium Copyright Act", "link": "https://www.google.com/support/answer/1386831" },
{ "text": "Complaint", "link": "https://www.google.com/goto?url=CAESYgHrOzAVyuo5c-Uj…" },
{ "text": "Complaint", "link": "https://www.google.com/goto?url=CAESYgHrOzAVaXZLynLN…" }
]
}
]
}
}| Field | Type | Description |
|---|---|---|
title | string | Heading Google gives the block, in the language of hl. Omitted when the page has none |
messages | array | One entry per notice. A page can carry several |
messages[].content | string | The notice as plain text, with the linked phrases inlined where they appear |
messages[].highlighted_words | array | The linked phrases inside content, in the order they appear. Omitted when the notice has no links |
messages[].highlighted_words[].text | string | The linked phrase exactly as it reads in content |
messages[].highlighted_words[].link | string | Absolute URL the phrase points at |
- Copyright takedowns are not the only thing in this block. Court-ordered and other legal removals are printed the same way and appear as further
messagesentries. Readcontentto tell them apart rather than assuming every entry is a copyright complaint. - Repeated
textvalues are normal and are not duplicates. Two removals render as two links both readingComplaint, each pointing at a different notice. - The complaint links are usually Google redirects on the page. By default, their destinations are looked up and
linkis the notice URL. WithresolveGoto=false, or when a lookup does not finish in time,linkremainshttps://www.google.com/goto?url=…. Links Google publishes outright, such as its own help page, always come back as the destination. - The block is read on every result page, not just the first, so a notice on
start=20is returned like any other.
navigation[]
| Field | Type | Description |
|---|---|---|
title | string | Tab name (e.g., "All", "Images", "News", "Maps") |
url | string | URL for that search type |
pagination
{
"current": 0,
"next": "https://www.google.com/search?q=...&start=10",
"other_pages": {
"2": "...&start=10",
"3": "...&start=20"
}
}Example Requests
Basic search:
/plugin/google/search?token=TOKEN&q=pizza+new+yorkTurkish results from Turkey, mobile device:
/plugin/google/search?token=TOKEN&q=pizza&hl=tr&gl=tr&device=mobile&google_domain=google.com.trLocation-based search (auto UULE encoding):
/plugin/google/search?token=TOKEN&q=restaurants&gl=tr&location=Istanbul,Istanbul,TurkeyPlace details by Google Maps CID:
/plugin/google/search?token=TOKEN&q=Joe%27s+Pizza+Broadway+1435+Broadway+New+York+NY&ludocid=4280570365733019477Advanced filtering:
/plugin/google/search?token=TOKEN&q=python+tutorial&lr=lang_en&cr=countryUS&nfpr=truePagination (2nd page):
/plugin/google/search?token=TOKEN&q=pizza+new+york&start=10Keep Google redirect links without resolving them:
/plugin/google/search?token=TOKEN&q=what+is+seo&gl=us&hl=en&resolveGoto=falseFetch fresh results:
/plugin/google/search?token=TOKEN&q=test&cache=falseDebug mode (include raw HTML):
/plugin/google/search?token=TOKEN&q=test&include_html=trueSearch queries must be URL-encoded. The response is gzip compressed with a minimum size of 2KB.

