Google API

Google Web search API

Run a Google web search and get the organic results: title, link, snippet and rank position.

$0.50/1k req, pay per request, no subscription.

What the API returnedresults[0]
{
"title": "The 12 Best Running Shoes of 2026, Tested by Runners",
"link": "https://www.example.com/best-running-shoes",
"snippet": "We logged hundreds of miles in this year’s top trainers to find the best running shoes for every type of runner and budget.",
"position": 1
}
Uptime
99.95%
30d · 1,642,212 calls
Requests
1.6M
30d · weekly, last 12 wks
Response
6.9s
median · 30d

Pricing and providers

Google Web search API pricing: one API, 3 interchangeable providers

The cheapest provider serves first. If it fails, the next one takes over in the same call.

A provider marked Not serving stopped answering reliably and was taken out of the rotation, so your calls go to the others. It is put back on its own once it answers reliably again.

You pay
$5.00
$0.50/1k req, only for what you use. No monthly plan.
Your first 200 requests are free with the $0.10 starting balance.

Try it

Get Google web search in one request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.

This sample shows 8 of 10 fields. See every field

{
  "found": true,
  "data": {
    "query": "best running shoes 2026",
    "results": [
      {
        "title": "The 12 Best Running Shoes of 2026, Tested by Runners",
        "link": "https://www.example.com/best-running-shoes",
        "snippet": "We logged hundreds of miles in this year’s top trainers to find the best running shoes for every type of runner and budget.",
        "position": 1
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • querystring

    best running shoes 2026

    The Google search query.

  • autocorrectboolean

    Toggle Google spelling autocorrect (default true). Set false to search the exact query without correction.

  • cursorstring

    Deprecated: send page instead. A continuation token from an earlier response's nextCursor is still accepted and still continues on the source that issued it; page is ignored when cursor is sent alongside it.

  • glstring

    us

    Two-letter country code for result localization (e.g. us, gb, de).

  • hlstring

    Two-letter interface and results language code (e.g. en, es, de).

  • limitinteger

    Page size to ask for. Google returns about 10 organic results per page and stopped honoring larger counts in September 2025, so a limit above 10 still returns about 10. Some sources return their whole page of about 10 whatever limit says: a page is never trimmed after the call, so nextCursor always continues exactly where this response ended. To go deeper, send page (about 10 results per page, each billed as a request) or use google.search_100, which returns up to 100 ranked results in a single call for one flat charge and is cheaper past roughly 20 results. Price is flat per request.

  • locationstring

    Fine-grained location to localize results to, more specific than the country-level gl. Send it as an Active Canonical Name from Google's geo-target list: place, then each parent region, then country, with no space after each comma, e.g. 'New York,New York,United States', 'Austin,Texas,United States', 'London,England,United Kingdom'. Common variations are translated to that name when they point to exactly one place: spaces after commas, missing accents, a US state abbreviation ('Orlando, FL, United States'), or a skipped region ('Sydney, Australia'). A value that names no place, or more than one, is rejected rather than quietly searched from somewhere else.

  • pageinteger

    Which page of about 10 organic results to return, starting at 1. Send page 2, 3, ... to walk deeper; each page is billed as one request and any source can serve any page. Replaces cursor.

  • requireCursorboolean

    Deprecated. Every source for this search returns a nextCursor, so this changes nothing about the price or which source serves you; it stays accepted so callers that already send it keep working.

  • timeframeenum

    Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

datadata
  • nextCursorstring

    Opaque cursor for the next page of results, or null when this lane has no more. Pass it back as cursor to continue.

  • querystring

    best running shoes 2026

each resultdata.results[]

Populated whenever the provider has data for the entity.

  • linkstring

    https://www.example.com/best-running-shoes

    Populated whenever the provider has data for the entity.

  • positioninteger

    1

  • snippetstring

    We logged hundreds of miles in this year’s top trainers to find the best running shoes for every type of runner and budget.

    Populated whenever the provider has data for the entity.

  • titlestring

    The 12 Best Running Shoes of 2026, Tested by Runners

    Populated whenever the provider has data for the entity.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

Selling this API? See the full schema your endpoint must return.

FAQ

About the Google Web search API

The AnyAPI Google Web search API returns Google web search data as normalized JSON from one POST call to /v1/run/google.search. Run a Google web search and get the organic results: title, link, snippet and rank position. AnyAPI routes each request across 3 sources and falls back automatically when one fails. It costs from $0.50 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 99.9% of Google web search calls through AnyAPI succeeded, with a median response time of 6.9 seconds across 1,642,212 measured calls.

It costs from $0.50 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Run a Google web search and get the organic results: title, link, snippet and rank position. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 99.9% of Google web search calls through AnyAPI succeeded, with a median response time of 6.9 seconds across 1,642,212 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 200 Google Web search calls at $0.0005 each.

AnyAPI asks the next of its 3 sources in the same request, cheapest first, so one source going down does not fail your call.

Send a POST request to https://api.getanyapi.com/v1/run/google.search with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.