Skip to content

API reference

Google SERP API: search results as JSON

Send a query and get Google results back as structured JSON: organic positions, titles, links and snippets, plus ads and answer blocks when the page has them.

POST /api/v1/serp

Run a Google search server-side and get the results as JSON. It uses the same API-key authentication as /api/v1/scrape. The API builds the Google URL from your query, so you never send a target URL. Use it to monitor the ranking and visibility of your own domains and brand queries. Follow the Acceptable Use Policy: the permitted case is SEO and SERP tracking for your own domains.

curl -X POST https://api.finedata.ai/api/v1/serp \
  -H "Content-Type: application/json" \
  -H "x-api-key: fd_your_api_key" \
  -d '{"q": "rank tracking tool", "gl": "us", "hl": "en", "start": 0}'

Parameters

Field Type Description
qstringRequired search query, 1–2048 characters.
glstringGoogle country as an ISO 3166-1 alpha-2 code, e.g. us. Defaults to us.
hlstringGoogle interface language, e.g. en or en-GB. Defaults to en.
startintegerResult offset for paging: 0–90 in steps of 10. 10 results per page; defaults to 0.
devicestringOnly desktop is supported.
include_htmlbooleanAlso return the raw Google HTML in raw_html. Defaults to false.

Response

Illustrative response, shortened for readability. Blocks such as ads, answer_box, knowledge_graph, top_stories, local_results, people_also_ask, related_searches, shopping_results and video_results appear only when the page carries them.

{
  "search_metadata": {
    "id": "3f6c1e9a-…",
    "status": "ok",
    "created_at": "2026-10-13T12:00:00+00:00",
    "processing_time_ms": 1840,
    "google_url": "<google search url built from q, gl, hl, start>"
  },
  "search_information": {
    "query_displayed": "rank tracking tool",
    "total_results": 412000000
  },
  "organic_results": [
    {
"position": 1,
"title": "Rank Tracking Tool — Example",
"link": "https://example.com/rank-tracker",
"displayed_link": "example.com › rank-tracker",
"snippet": "Track keyword positions for your own domains…",
"sitelinks": [
  {"title": "Pricing", "link": "https://example.com/pricing"}
]
    }
  ],
  "tokens_charged": 10
}

Each request costs a flat 10 tokens, reported as tokens_charged; gl, hl and start do not change the price. Links resolve away from Google's redirect wrapper, so organic_results[].link is the destination URL. A blocked or unparseable Google page costs nothing.

Errors

Code Error Action
402trial_exhausted · token_limit_exceededUpgrade the plan or add tokens
502serp_blocked · serp_emptyRetry later; nothing was charged
503Worker pool busyRetry after a short delay

Over MCP the same search is the google_search tool with arguments q, gl, hl and start; it needs the scrape:write scope. See MCP Integration.