Google Search API · 100 free credits

Google results,
as clean JSON.

Send a query and get the results page back as data: ranked organic results, People also ask and related searches. Pick the country, language and time range. No proxies, no CAPTCHAs, no HTML parsing.

Results per page
10
Credits per search
10
Failed searches
Free
curl -X POST https://scrapingbot.io/api/v1/google \
  -H "x-api-key: YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "endpoint": "/search",
    "params": { "q": "best espresso machine", "gl": "us" }
  }'
200 OK · 1.27 s · 10 credits
{
  "success": true,
  "searchParameters": { "q": "best espresso machine", "gl": "us", … },
  "organic": [{
    "position": 1,
    "title": "The Best Espresso Machine",
    "link": "https://coffeegeek.com/opinions/state-of-coffee/…",
    "snippet": "The Breville Bambino Plus: The Best Espresso …",
    "date": "Apr 7, 2024"
  }, …],
  "peopleAlsoAsk": [
    { "question": "What is the best espresso machine for home use?" }, …
  ],
  "relatedSearches": [
    { "query": "Best espresso machine for home" }, …
  ],
  "duration": "1.27",
  "statusCode": 200,
  "creditsUsed": 10
}
What comes back

The results page, without the page.

Each part of a Google results page becomes its own field, in the order Google ranked it. Store it, diff it, or hand it straight to your model.

organic

Organic results

Every blue link on the page, in order.

positiontitlelinksnippetdatesitelinksratingratingCount

date, sitelinks and the rating fields appear when Google shows them for that result.

peopleAlsoAsk

People also ask

The questions Google expands under the results.

question

Left out of the response when the page has no such box.

relatedSearches

Related searches

The suggested searches at the bottom of the page.

query

Left out of the response when the page has none.

searchParameters

Search parameters

Your query echoed back with the options you sent.

qglhltbspagetypeengine

Handy for storing alongside the results.

One endpoint

One query in. Any market out.

Every call is a POST to /api/v1/google with /search as the endpoint and your parameters. Change the country, language, page or time range without changing anything else.

Request format
POST https://scrapingbot.io/api/v1/google
x-api-key: YOUR_API_KEY
content-type: application/json

{
  "endpoint": "/search",
  "params": {
    "q": "running shoes",
    "gl": "gb",
    "hl": "en",
    "page": 2
  }
}

You can also send the key as a Bearer token or an api_key query parameter.

  • q required

    The search query. Operators such as site:, quotes and - work as they do on Google.

  • gl

    Country to search from, e.g. us, gb, de.

  • hl

    Interface language, e.g. en, es, fr.

  • page

    Results page, starting at 1. Each page holds up to 10 results.

  • num

    Results per page, up to 10.

  • tbs

    Time filter: qdr:h hour, qdr:d day, qdr:w week, qdr:m month, qdr:y year.

  • autocorrect

    Set false to search the query exactly as typed.

  • safe

    SafeSearch filtering on or off.

  • lr, cr, as_sitesearch, …

    Advanced Google parameters, passed through as given.

Every parameter, with examples, is in the Google docs. New to SERP data? Read why DIY Google scraping breaks.

Use cases

What teams build with it.

A few patterns we see often, and the parameters behind each one.

Rank tracking

Record where your pages and your competitors’ rank for each keyword, country by country, every day.

positionglhl

Content research

Collect People also ask questions and related searches to find what people want to know about a topic.

peopleAlsoAskrelatedSearches

News and brand monitoring

Search your brand or topic with a time filter on a schedule and catch new pages as soon as Google indexes them.

tbsq

Grounding AI answers

Give your agent fresh search results to cite, through the API or the googleSearch tool on the MCP server.

organicsnippet
Billing

You pay for answers, not attempts.

A Google call costs 10 credits, and only when it succeeds. Every endpoint costs the same.

  • Failed calls are refundedErrors and timeouts are credited back automatically, and requests with missing or invalid parameters are never charged.
  • 100 free credits to startThat covers 10 Google calls on the free plan. No credit card needed to sign up.
  • See the cost of every callEach response carries a creditsUsed field, and your dashboard logs every request with its status, duration and credits.
  • One balance for every APIThe same credits work for website scraping, TikTok, Instagram, Google, Amazon and ChatGPT. Paid plans refresh them every billing cycle.

Every successful Google call

10credits

Free to start
10 calls
from 100 free credits
Failed calls
0 credits
refunded automatically

Questions, answered

What does the Google Search API return?

The parts of a Google web results page as JSON: organic results (position, title, link, snippet, and date, sitelinks or ratings when Google shows them), peopleAlsoAsk questions and relatedSearches. Ads, maps, images, news and shopping blocks are not included.

How many results do I get per call?

Up to 10 organic results, which is one Google results page. Ask for the next ones with page: 2, 3 and so on. Positions are counted within each page.

Can I search from another country or in another language?

Yes. Set gl to a country code and hl to a language code, for example "gl": "de", "hl": "de" for German results as seen from Germany.

Can I get only recent results?

Yes. Add tbs with qdr:h, qdr:d, qdr:w, qdr:m or qdr:y for the past hour, day, week, month or year.

Are results live?

Yes. Every call runs a fresh search, so results reflect Google at the time of the request.

What does a search cost?

10 credits per successful search. Errors and timeouts are refunded automatically, and a request without q is rejected for free. New accounts get 100 free credits, enough for 10 searches.

Can I scrape google.com result pages with the Website API instead?

Use this API for Google. The Website API rejects google.com search URLs and points you here, because structured results are cheaper and more reliable than parsing the HTML.

Can AI agents use it?

Yes. The ScrapingBot MCP server includes a googleSearch tool, so Claude, Cursor and other MCP clients can search Google with your API key.

Your first 10 Google searches are free.

Create an account, copy your API key and run your first search in a few minutes. No credit card required.