Google SERP API
Search the web and receive structured result data. Localize requests by country, language, location or domain, choose desktop or mobile, and control pagination and how many results come back.
Request
curl "https://api.fastaf.co/v1/serp?query=..." \
-H "Authorization: Bearer YOUR_KEY"Parameters
| Name | Description |
|---|---|
| query | Required. Search query (q is accepted as an alias) |
| results | Optional. Maximum results returned. Google serves up to 10 per page; use page for more |
| page | Optional. Zero-based page from 0 to 100 |
| advance_search | Optional boolean. Advanced search handling; the request costs 10 credits instead of 5 |
| mob_search | Optional boolean. Request mobile search results |
| device | Optional alias for device targeting: desktop | mobile |
| html | Optional boolean. Include the HTML response |
| deep_scrape | Optional boolean. Enable deeper result extraction |
| domain | Optional. Search domain |
| country | Optional. Country code |
| lang | Optional public alias of language |
| language | Optional. Result language |
| location | Optional. Human-readable location |
| uule | Optional. Encoded location |
| cr | Optional. Country restriction |
| lr | Optional. Language restriction |
| tbs | Optional. Search filter string |
| safe | Optional. Safe-search setting |
| nfpr | Optional. Auto-correction setting |
| filter | Optional. Similar-result filter |
| ludocid | Optional. Local result identifier |
| lsig | Optional. Local result signature |
| kgmid | Optional. Knowledge Graph identifier |
| si | Optional. Search context identifier |
| ibp | Optional. Search vertical selector |
| uds | Optional. Search request data |
Response fields
- organic_results
- title
- link
- snippet
- rank
Guides
- How to read public Google Search data when your requests fail
Google showing 429 or the /sorry/ captcha? Get structured search results as JSON for 5 credits. API key, MCP or x402 pay-per-call.
- How to scrape Google search results in Python
Why requests + BeautifulSoup stops working on Google, and a working Python setup that returns parsed SERP JSON with pagination, country targeting and sane error handling.
- What a SERP API actually costs per 1,000 searches
Credits, plan tiers and pagination make search API pricing hard to compare. Here is how to work out your real cost per 1,000 searches, with published list prices as of August 2026.
- Giving an LLM fresh web data: SERP APIs for RAG and grounding
A minimal Python retrieval pipeline for grounding an LLM in live search results, and why a fixed credit cost beats an unpredictable per-query bill.
- Web search for AI agents after Bing: what options are left in 2026?
Bing Search APIs retired in August 2025 and Google Custom Search is closed to new customers. Four kinds of search backend remain for agents.
- How an AI agent pays for a web search per call with x402
No account, no API key: the real 402 challenge FastAF returns, the Node client that pays it in USDC on Base, and how to cap what the agent can spend per call.
- LangChain’s Google search tool after Custom Search shuts down
Replace GoogleSearchAPIWrapper before Google Custom Search ends on 1 January 2027: a tested LangChain tool that keeps title, link and snippet.
- Built-in LLM web search vs a SERP API: cost per answer
Claude and OpenAI charge $10 per 1,000 searches plus the result tokens. We measured the token side on 20 questions and priced 1,000 answers both ways.
- Track Google AI Overviews in Python: presence, sources, changes
We checked 100 Google queries for AI Overviews on 19 October 2026: who gets one, what it cites, how stable it is, plus a Python tracker that stores snapshots.
- n8n web scraping and Google search: a workflow without code
Import one n8n workflow that loops over keywords, calls a Google search API, scrapes the top pages to markdown and writes rows to Google Sheets or a CSV.
FAQ
Which parameter is required?
Pass q or query. They map to the same search query, and the request is rejected if both are omitted.
Can I localize a search?
Yes. Use country, language, location, uule or domain depending on the localization control you need.
What does a search cost?
A SERP request costs 5 credits, which is about $1.93 per 1,000 searches on a 75k prepaid pack.