Skip to main content

Google scraper API: ranked results as JSON

Spider's /search returns each result's title, description and URL, so a rank tracker or an agent reads positions without parsing a page.

Get an API key See the code 2,500 free credits, worth $0.25, if your signup passes our checks. No card required.

POST /search

HTTP 200 · 1.7 s · 5 results {"search": "rust async runtime", "search_limit": 5, "country": "us", "language": "en"}

[  {    "title": "The Async Ecosystem - Asynchronous Programming in Rust",    "description": "Learn about async runtimes, libraries, and traits for writing and executing async code in Rust. Compare popular runtimes such as Tokio, async-std, and smol, and their compatibility and performance differences.",    "url": "https://rust-lang.github.io/async-book/08_ecosystem/00_chapter.html"  },  {    "title": "Fundamentals of Asynchronous Programming: Async, Await ... - Learn Rust",    "description": "Running async code in Rust usually happens concurrently. Depending on the hardware, the operating system, and the async runtime we are using (more on async runtimes shortly), that concurrency may also use parallelism under the hood. Now, let's dive into how async programming in Rust actually works.",    "url": "https://doc.rust-lang.org/book/ch17-00-async-await.html"  },  {    "title": "Rust Async Runtimes: Tokio vs async-std vs smol 2026 | Rustify",    "description": "Tokio dominates async Rust with 150M monthly downloads. This guide compares Tokio, async-std, and smol on performance and ecosystem lock-in.",    "url": "https://rustify.rs/articles/rust-async-runtimes-tokio-vs-async-std-2026"  }]

Results 1 to 3 of 5, long values cut · recorded Dec 1, 2026

2,500 free credits, worth $0.25, if your signup passes our checks. No card required.

What Spider does on google.com

Country, language, place · Locale
Set country, language or location per query, or pin the search to coordinates with latitude and longitude.
Results with pages · Content
fetch_page_content returns the content of each result in the same call, so search and scrape are one request.
Time filters · Range
tbs limits results to the past hour, day, week, month or year.

Google scraper API example

This is the call recorded in the panel at the top of the page. Change the query, the country or the language and the same three fields come back for each result.

request scrape.sh
curl -X POST https://api.spider.cloud/search \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"search": "rust async runtime", "search_limit": 5, "country": "us", "language": "en"}'
/search · add "fetch_page_content": true to get each result page too

What google.com costs

You pay from $1 per GB plus $0.0001 per minute a request runs, so most pages cost a fraction of a cent. An attempt bills for the bandwidth and compute it used, whatever status the page returns. A failed page is not free.

The same key runs five endpoints on google.com.

What the response holds

The fields the example reads, named as the API returns them.

title
The title of each result, in rank order.
description
The text shown under the title.
url
The address the result points to.
content
The page itself, present on each result when you send fetch_page_content: true.

The same API scrapes any site. The web scraper page shows it on other targets, and the scrape API page lists every parameter.

What teams build with google.com data

  • Rank tracking. Run the same query on a schedule, per country and language, and record where each URL lands.
  • Research. Collect the top results for a list of queries and read who ranks for each one.
  • Fresh sources for AI. Search with fetch_page_content and hand an agent the result pages as markdown in one step.
  • News and time ranges. Limit results to the past hour, day, week, month or year with tbs.

Common questions

What is a Google scraper API?

It is an endpoint that takes a search query and returns the results as data instead of a page you have to parse. POST the query to /search and you get a JSON list with a title, description and URL for each result.

Can I scrape a Google results page directly?

Yes. /scrape takes any URL, a google.com/search address included, and returns the page as markdown or HTML. For results as fields, /search is the shorter path.

How do I get results for another country or language?

Set country and language to two letter codes, for example us and en, or set location to a place name such as United Kingdom. Add tbs, for example qdr:w, to keep only results from the past week.

Can I get the content of each result?

Yes. Set fetch_page_content to true and each result comes back with its page content, in the return_format you choose.

How do I get more than one page of results?

Raise num or search_limit, ask for a later page with page, or set auto_pagination to true to page through until the count is met. Auto pagination costs more.

What does it cost?

Pay as you go from $1 per GB of bandwidth plus $0.0001 per minute a request runs. No subscription. Top up from $5. Each response says what it billed. Pay as you go starts at 10,000 requests per minute and rises through four levels to 80,000 as the account uses more.

Point this at the rest of google.com.

The same call takes any URL on google.com.

The web scraping guide covers what each fetch does and what it costs.

Get an API key