Skip to content
Live

SERP API

Google results, as structured JSON.

Send a query, a country and a language. Get back ranked organic results and the shopping cards Google shows with prices — up to three result pages in one run.

Scripts:google_serp

Example

One request, one response.

Every scraper runs through POST /v1/run with your key in the x-api-key header.

In the response, values in <angle brackets> stand for real data and arrays are shortened to one item.

curl -X POST https://api.datafor.dev/v1/run \
  -H "Content-Type: application/json" \
  -H "x-api-key: $DATAFOR_API_KEY" \
  -d '{
  "script_name": "google_serp",
  "params": {
    "query": "wireless headphones",
    "country": "us",
    "language": "en",
    "pages": 1
  }
}'

Capabilities

What it does today.

  • Organic results

    Live

    Rank, site, title, link and snippet for each organic result, with a hint when the snippet carries a price.

  • Shopping cards

    Live

    Sponsored shopping units and product cards with title, price text, store and link.

  • Country and language

    Live

    Set the Google country (gl) and interface language (hl) with ISO-2 codes per request.

  • Up to 3 pages

    Live

    Fetch 1–3 result pages (about 10 organic results each) in a single run.

  • Managed proxy

    Live

    Proxies are managed for you, so you do not run your own.

  • Scheduled rank tracking

    Coming soon

    Recurring checks and history are not built yet — run it from your own scheduler today.

Credits

How credits work.

10 credits per run, whatever the page count (1–3).

Each run is charged when it starts. If the worker fails or times out, the credit is refunded automatically and the run is marked as refunded. Every response shows the cost and your remaining balance.

At 10 credits per run, 1,000 runs cost from $3.80 on a paid plan. Price per 1,000 runs by plan

See pricing

FAQ

Questions about SERP API.

Which Google surfaces are covered?

Regular web search results: organic listings plus the shopping and product cards on the same page. News, images and maps verticals are not parsed.

Can I track rankings over time?

Not inside Datafor yet. Call the API on your own schedule and store the results; built-in monitoring is planned.

What happens if Google blocks a request?

The run fails and the credit is refunded. You can retry; there is no charge for failed runs.

Why do some links start with google.com/goto?

Google now sends result clicks through its own redirect and no longer puts the destination in the page. Datafor asks the redirect for the real URL; when Google does not answer, the result keeps the Google link (it opens the page in a browser), link_resolved is false, and site and displayed_link still show where it goes.

Related

Live

Keyword Planner

Search volume, competition, CPC bids and 12-month trends.
View product
Live

URL Scraper

Any URL to Markdown, cleaned HTML, links, images or screenshots.
View product
Live

E-Commerce

Amazon.com.tr and Trendyol search, store listings and product detail.
View product

Run your first SERP API call.

50 free credits to start, after email verification. No credit card.