Google SERP API — Search Results as JSON

Search Google web results

Google web search results for a query, as a searcher in a given country, language, city and on mobile, with everything Google shows around them. organicResults holds the organic results in rank order: position (1-based across the pages returned, and across a cursor continuation), the page and its place on that page, title, destination URL and domain, the address line Google prints, the site name, snippet, the date as displayed, extensions such as "30+ comments · 1 year ago", and sitelinks. Around them, when Google shows them: the answer box (weather, unit conversions, featured snippets), the People also ask questions, related searches, top stories, videos and short videos, discussions, local business results with rating, review count and price level, the knowledge panel, and ads — which come back in ads and never take an organic position. A query Google finds nothing for is a 200 with noResults: true, not an error. Filter by time range and safe search. One result page is read by default; pages reads up to 10 in one request, page starts later (1–15), and nextCursor continues, sent with the same query and options. Google shows between 6 and 10 organic results a page and ignores a requested count, so limit only trims what the pages held. Results reflect a US, English, mobile searcher unless you set otherwise, and positions move with time, country and location. There is no total-result count; People also ask gives the questions, not their answers; videos, shorts and discussions are detected on English-language pages only. Billing: each result page returned counts as one request (pagesScraped). To find where one site ranks, use rank-check instead: it costs one request at any depth.

POST /search Web search
https://api.fetchlayer.dev/google-search/search
OpenAPI JSON

Headers

Authorization string required

Bearer token — your FetchLayer API key.

Parameters

query string required

The search query, exactly as typed into Google (1–2048 characters).

country string optional

Two-letter country the results are for: US, GB, DE, FR, IN, BR and so on. Case-insensitive. Rankings differ by country. (default: US)

language string optional

Interface and snippet language: en, de, fr, pt-BR and so on. (default: en)

location string optional

A city to localize results to, as a canonical location name "City,Region,Country", e.g. "Austin,Texas,United States". Local results and rankings follow it.

device string optional

mobile (default), the supported layout. desktop is temporarily unavailable and answers 400: "Desktop results are temporarily unavailable; use mobile, the default." (default: mobile)

safeSearch string optional

off, or on to filter explicit results. (default: off)

timeRange string optional

any, hour, day, week, month or year: only results from that period. (default: any)

page number optional

Result page to start from (1–15). Do not combine with cursor. (default: 1)

pages number optional

Result pages to read in this request (1–10), or -1 for 10. Each page returned counts as one request. (default: 1)

limit number optional

Most organic results to return (1–100), or -1 for 100. Defaults to everything on the pages returned.

cursor string optional

A previous response’s nextCursor. Send it with the same query and options.

aiOverview boolean optional

Also return Google’s AI Overview for this search, read from the first results page: its text, the sources it cites and its citation chips. Adds up to about 12 seconds. aiOverview.status says whether Google showed one. The price of a search is the same whether or not an overview was shown. (default: false)

format string optional

json or markdown, in any case; any other value is a 400. Over MCP, markdown returns the result rendered as text; the REST API accepts it and returns JSON. (default: json)

timeoutMs number optional

Time limit for each result page, in milliseconds (1000–60000).

Response Fields

search

Search Google web results

resultType string

search, rank-check or autocomplete.

requestedUrl string

The Google page this result corresponds to.

notes string[]

Caveats about this particular result — a result whose link could not be followed, a page that could not be read. Empty when there are none. Read it on every call.

transport string

The data source: always the platform id, "google-search".

scrapedAt string

ISO 8601 timestamp of when the data was collected.

parameters object

The searcher the results are for, after defaults: query, country (lower case), language, location, device, safeSearch and timeRange.

organicResults object[]

Organic results, in rank order.

organicResults[].position number

1-based rank among organic results across the pages in this response. Ads never take a position.

organicResults[].page number

The result page it appeared on.

organicResults[].pagePosition number

Its rank on that page.

organicResults[].title string

The result title.

organicResults[].url string | null

Where the result leads. Null when the destination could not be determined, which today is most results after the first few of a search (a note says so); domain then still names the site from the address Google prints.

organicResults[].domain string | null

The site the result shows (lower case): the hostname of url, or, when url is null, the site from the address Google prints.

organicResults[].displayedUrl string

The address line Google prints, e.g. "https://github.com › SuiteCRM › SuiteCRM". null on forum and social results, which print activity instead.

organicResults[].source string

The site name Google prints beside the result, e.g. "Reddit · r/CRM".

organicResults[].snippet string

The description text, or null.

organicResults[].date string

The date printed before the snippet, as displayed (e.g. "Jan 19, 2026"), or null.

organicResults[].extensions string[]

Extra detail such as "30+ comments · 1 year ago" or "2.7M+ followers".

organicResults[].sitelinks object[]

Sub-links shown under the result, each { title, url }.

organicCount number

Organic results in this response. Google publishes no total-result count.

ads object[]

Text ads, never ranked: position within their block, block (top or bottom), title, url, domain, displayedUrl, description. Ads are returned only when they were shown for the requested country; otherwise the list is empty and a note says ads were left out. Organic results are unaffected. Treat ads as optional.

answerBox object

A direct answer — type (weather, unit_converter or featured_snippet), title, text, details ({ label, value } rows), url — or null.

peopleAlsoAsk string[]

The questions in the People also ask box. The answers are not returned.

relatedSearches string[]

The related searches Google suggests.

topStories object[]

News stories: title, url, source, date as displayed (e.g. "19 hours ago") and publishedAt (ISO 8601).

videos object[]

Videos and short videos: title, url, platform, channel, date, duration and kind (video or short). English-language pages only.

discussions object[]

Forum and social posts Google groups as discussions: title, url, source, date. English-language pages only.

localResults object[]

Businesses: position, name, rating (out of 5), reviewCount, priceLevel (e.g. "$10–20"), category, address, phone, hours and highlight (a review excerpt). Empty on mobile results, the only layout available for now.

knowledgePanel object

title, subtitle, description, descriptionSource ({ title, url }), facts ({ label, value } rows) and profiles ({ title, url }), or null.

aiOverview object | null

Only when the request set aiOverview; null when no page was read for it. Google writes its overview fresh for each search, so the same query can come back with a different overview from one request to the next.

aiOverview.status string

present (read), absent (Google showed none for this search), unavailable (Google said one is not available) or timeout (it did not load in time; retrying may return it). Every status other than present comes with a note.

aiOverview.markdown string | null

The overview as Markdown. Null unless present.

aiOverview.text string | null

The overview as plain text. Null unless present.

aiOverview.sources object[]

The sources it cites, in Google’s order: url (null when it could not be followed), title, domain, publisher and snippet.

aiOverview.inlineCitations object[]

The citation chips in the text: label (for example "Investopedia +1"), sourceIndexes (into sources), expectedSources (how many sources the chip stands for), paragraphIndex and afterText. A chip may stand for more sources than are visible; a note says when some are missing.

aiOverview.truncated boolean

True when the text is cut short. Mobile returns the full text.

aiOverview.device string

The layout it was read from: mobile.

aiOverview.servedCountry string | null

The country the overview was read for. When it differs from the requested country, a note says so.

aiOverview.ads object[] | null

Ads Google placed inside the overview (Sponsored), never part of the text, sources or citations: position, advertiser, title, description, displayUrl and landingDomain. Null when it showed none.

noResults boolean

True when Google found nothing for the query.

page number

The first result page in this response.

pagesScraped number

Result pages returned. Each counts as one request against your plan.

pagesRequested number

The pages this request asked for. Compare with pagesScraped.

hasNextPage boolean

Whether there are more results.

nextCursor string

Pass back as cursor, with the same query and options, to continue. null at the end.

Request

curl -X POST "https://api.fetchlayer.dev/google-search/search" \
  -H "Authorization: Bearer ss-your-key" \
  -H "Content-Type: application/json" \
  -d '{"query":"open source crm","limit":10}'

Response

{
  "requestedUrl": "https://www.google.com/search?q=open+source+crm&hl=en&gl=us&pws=0&safe=off",
  "scrapedAt": "2026-09-15T20:59:33.616Z",
  "transport": "google-search",
  "notes": [],
  "resultType": "search",
  "parameters": {
    "query": "open source crm",
    "country": "us",
    "language": "en",
    "location": null,
    "device": "mobile",
    "safeSearch": "off",
    "timeRange": "any"
  },
  "page": 1,
  "pagesScraped": 1,
  "pagesRequested": 1,
  "organicResults": [
    {
      "position": 1,
      "page": 1,
      "pagePosition": 1,
      "title": "Twenty | #1 Open Source CRM",
      "url": "https://twenty.com/",
      "domain": "twenty.com",
      "displayedUrl": "https://twenty.com",
      "source": "Twenty",
      "snippet": "Twenty gives technical teams the building blocks for a custom CRM that meets complex business needs and quickly adapts as the business evolves.",
      "date": null,
      "extensions": [],
      "sitelinks": []
    },
    {
      "position": 2,
      "page": 1,
      "pagePosition": 2,
      "title": "Free Open Source CRM Software | Download EspoCRM",
      "url": "https://www.espocrm.com/download/",
      "domain": "www.espocrm.com",
      "displayedUrl": "https://www.espocrm.com › download",
      "source": "EspoCRM",
      "snippet": "EspoCRM is a free, open-source CRM you host on your own server. Track contacts, manage deals, handle support cases with a built-in customer portal, and run ...",
      "date": null,
      "extensions": [],
      "sitelinks": []
    },
    {
      "position": 3,
      "page": 1,
      "pagePosition": 3,
      "title": "SuiteCRM - Open source CRM for the world",
      "url": "https://github.com/SuiteCRM/SuiteCRM",
      "domain": "github.com",
      "displayedUrl": "https://github.com › SuiteCRM › SuiteCRM",
      "source": "GitHub",
      "snippet": "SuiteCRM is the award-winning open-source, enterprise-ready Customer Relationship Management (CRM) software application. Our vision is to be the most adopted ...",
      "date": null,
      "extensions": [],
      "sitelinks": []
    },
    {
      "position": 4,
      "page": 1,
      "pagePosition": 4,
      "title": "What’s the Best Open-Source CRM for Small and Medium ...",
      "url": "https://www.reddit.com/r/CRM/comments/1ij3e8h/whats_the_best_opensource_crm_for_small_and/",
      "domain": "www.reddit.com",
      "displayedUrl": null,
      "source": "Reddit · r/CRM",
      "snippet": "I work for a small company (20 people), and we’ve been looking for a CRM that is both customizable and developer-friendly. After spending a lot ...",
      "date": null,
      "extensions": [
        "30+ comments · 1 year ago"
      ],
      "sitelinks": [
        {
          "title": "Self hosted open source CRM for business purposes ...",
          "url": "https://www.reddit.com/r/selfhosted/comments/14xzd2v/self_hosted_open_source_crm_for_business_purposes/"
        }
      ]
    }
  ],
  "organicCount": 9,
  "ads": [],
  "answerBox": null,
  "peopleAlsoAsk": [
    "What is the best open source CRM?",
    "Will CRM be replaced by AI?",
    "Is there a free CRM I can use?",
    "Is there a 100% free CRM?"
  ],
  "relatedSearches": [
    "Open source crm github",
    "Open source crm free",
    "Best open source CRM",
    "Open source crm reddit",
    "Open source CRM self-hosted",
    "Open source crm docker",
    "Open source crm list",
    "Open source crm free download"
  ],
  "topStories": [],
  "videos": [],
  "discussions": [],
  "localResults": [],
  "knowledgePanel": null,
  "noResults": false,
  "hasNextPage": true,
  "nextCursor": "eyJ2IjoxLCJxIjoib3BlbiBzb3VyY2UgY3JtIiwiZ2wiOiJ1cyIs…"
}
Product overview Google Search API: what it returns, pricing and use cases