SERP API: What It Returns and What a Query Costs
A SERP API returns a search engine results page as structured JSON instead of HTML: each organic result with its position, title, link and snippet, plus the page's other blocks, such as People also ask questions, related searches and local results. You send a query and options like language and country; you get back named fields your code or agent can read. Below are recorded responses from Google, Bing and DuckDuckGo, how their shapes differ, and the credit cost of daily keyword tracking.
What is a SERP API?
SERP stands for search engine results page, the page you see after you search. A SERP API runs the search for you and returns that page as data. You don't parse HTML, manage browsers or keep selectors working as the page's layout changes; you read fields.
People use them for three kinds of work. SEO teams track where their pages rank for a list of keywords. Product and research teams watch which competitors, questions and features appear for a topic. AI agents use them to answer questions with current information and sources, as in Verify Agent Answers with Live Search.
The official search APIs have mostly closed. Google says its Custom Search JSON API is closed to new customers and existing customers have until 1 January 2027 to move to an alternative (Google for Developers, 2026). Microsoft retired the Bing Search APIs on 11 August 2025 and points customers to Grounding with Bing Search in its AI agent service, which returns generated answers rather than raw result lists (Microsoft Learn, 2025). If one of those still fits your contract and use, it's the first thing to check.
What does a SERP API return from Google?
Google's results page holds more than ten blue links, and a SERP API breaks it into one field per block: organic results, People also ask questions, related searches, local results, filters and pagination, each with its own named fields. This is the recorded response from GET /v1/google-search/search for best restaurants in Berlin, trimmed:
curl "https://api.perceptlayer.com/v1/google-search/search?query=best+restaurants+in+Berlin&hl=en&safe=off" \
-H "X-API-Key: $API_KEY"
{
"search_information": {
"query_displayed": "best restaurants in Berlin",
"organic_results_count": 6
},
"organic_results": [
{
"position": 1,
"title": "The Best Restaurants in Berlin - Food Guide & Map",
"link": "https://andershusa.com/best-restaurants-berlin-germany-guide/",
"displayed_link": "https://andershusa.com › best-restaurants-berlin-german...",
"snippet": "Dec 3, 2025 — Tim Raue is the most internationally renowned restaurant in Berlin. It holds two Michelin stars, has been frequently ranked on The World's 50 ...",
"source": "Anders & Kaitlin",
"rank_group": 1,
"rank_absolute": 4
},
…
],
"related_searches": [
{ "query": "Best restaurants in Berlin for tourists", … },
…
],
"related_questions": [
{ "question": "What is the coolest restaurant in Berlin?", … },
…
],
"local_results": {
"places": [
{
"position": 1,
"title": "BLESS Restaurant",
"rating": 4.8,
"reviews": 2400,
"price": "€20–70",
"type": "Asian",
"address": "Hausvogteipl. 10, 10117 Berlin, Germany",
…
},
…
],
…
},
"pagination": [ { "start": 10, … }, … ],
…
}
Two position fields matter for rank tracking. position (and rank_group) counts organic results only; rank_absolute counts every block on the page, so the first organic result here sits at rank_absolute 4 because local results came first. Track both if you report "position 1" to anyone: being the top organic result below a map pack is not the same as being the first thing on the page.
| Field | What it holds | Typical use |
|---|---|---|
organic_results |
Position, title, link, snippet, source | Rank tracking, agent sources |
related_questions |
People also ask questions | Content research |
related_searches |
Related queries with links | Keyword discovery |
local_results.places |
Name, rating, review count, price, address | Local SEO |
pagination |
Links to further pages | Going past page one |
serp_results |
Each block's type and absolute rank | Page layout over time |
The endpoint takes location, gl, hl, device, start and page among its optional parameters, so you can ask for the page a searcher in a given place, language and device type would see. Google Search API: Get Search Results as JSON covers every parameter, and Google People Also Ask API and Google AI Overview API cover the blocks that have their own endpoints.
How do Bing and DuckDuckGo responses differ?
Each engine returns its own page, so each endpoint returns its own shape, with different field names for the same idea. Bing's search endpoint returns a flat data list with url and domain per result, and DuckDuckGo's nests organic_results inside data. This is Bing's recorded response for best web scraping api, trimmed:
{
"data": [
{
"position": 1,
"title": "Best",
"description": "Sep 14, 2026 · Надійний інтернет-провайдер Best ⭐️ Головна ⚡️Швидкість від 200 Мбіт/с до 1 Гбіт/с ⭐️ Працює при …",
"url": "https://best.net.ua/",
"domain": "best.net.ua"
},
{
"position": 2,
"title": "BEST | English meaning - Cambridge Dictionary",
…
"url": "https://dictionary.cambridge.org/dictionary/english/best",
"domain": "dictionary.cambridge.org"
}
],
"results_on_page": 10,
"source": "bing"
}
That recording is worth a second look: the top results match the word "best", not the query's meaning. Data comes back as the engine served it at the time of the call, so a SERP API shows you what the engine ranked, good or bad. For Bing, the optional hl parameter (language) and site and filetype filters help steer it.
DuckDuckGo's endpoint wraps results in data, with pagination you can follow and, for some queries, an AI answer. The recorded response, trimmed to its structure:
{
"success": true,
"data": {
"search_parameters": { … },
"organic_results": [ … ],
"pagination": {
"current": 1,
"has_more": true,
"next_start": 10,
"next": 2
},
"knowledge_graph": {
"ai_answer": { … }
}
},
"meta": { … }
}
Each item in organic_results has position, title, link, snippet and display_url. Pass pagination.next_start back as start for the next page.
Google search |
Bing search |
DuckDuckGo search |
|
|---|---|---|---|
| Path | /v1/google-search/search |
/v1/bing/search |
/v1/duckduckgo/search |
| Query parameter | query |
query |
q |
| Results array | organic_results |
data |
data.organic_results |
| Result URL field | link |
url |
link |
| Other blocks | Questions, related, local, filters | None in the recording | AI answer in knowledge_graph |
| Paging | start, page |
page, num |
start |
| Region or language | gl, hl, location |
hl |
kl |
| Credits per call | 1 | 1 | 1 |
If you query more than one engine, normalise early: map each response to one record with engine, position, title, url and snippet, and keep the raw response for anything else. Bing Search API Alternative and DuckDuckGo Search API cover those endpoints' parameters.
What does daily keyword tracking cost?
Each search is one call, and each successful call costs 1 credit, so the cost is keywords × engines × checks per day × days. Failed calls cost nothing and return X-Credits-Used: 0, so a retry after an error doesn't double the bill.
| Job | Calls a month | Credits |
|---|---|---|
| 30 keywords, Google, daily | 30 × 30 | 900, inside the Starter pack's 10,000; the 100 free credits cover the first 3 days |
| 200 keywords, Google, daily | 200 × 30 | 6,000, inside the Starter pack's 10,000 |
| 200 keywords, Google + Bing + DuckDuckGo, daily | 200 × 3 × 30 | 18,000, inside the Build pack's 50,000 |
| 1,000 keywords, Google, top 2 pages, daily | 1,000 × 2 × 30 | 60,000, inside the Growth pack's 200,000 |
Checking the second page costs a second call. Most rank tracking only needs the first page; fetch deeper only for keywords where you expect to rank lower. See pricing for what credits cost, and the credits docs for how balances work. Purchased credits last 12 months.
Rate limits set how fast a batch can run: 1 request a second on a free account, at least 5 a second on a paying one. 6,000 searches at 5 a second take 20 minutes. Search Result Data for SEO Monitoring covers which fields to store from each run.
What should you check before you rely on a SERP API?
Check that it returns the page your users see, in the shape your code needs, at a cost you can predict. A few test calls with queries you know well answer most of it, before you write any parsing code or commit to a volume. These are the questions to answer:
- Location and language. Does it take the country, language and city you care about? Rankings differ by place.
- Device. Mobile and desktop pages differ. Google's endpoint takes
device(desktop,tablet,mobile). - Blocks. Does the response include the blocks you track, such as People also ask or local results, or only organic links?
- Position semantics. Is position counted among organic results or across the whole page?
- Failures. Are failed calls billed? Here they aren't.
- Terms. What may you store and show? Search results contain other sites' titles and snippets.
Run a query you know well in the playground on the Google Search API page, then the same one on the Bing API and DuckDuckGo API pages, and compare the responses with what you see in a browser. When the shapes suit you, get a free API key.
APIs in this post
Frequently asked questions
Is using a SERP API legal?
Collecting search results to measure rankings or research a topic is common practice, but the rules depend on your jurisdiction, the engine's terms and what you do with the data. Store what you need, don't republish other sites' content wholesale, and avoid collecting personal data from results. Data here is collected from publicly available sources and returned as found at the time of the call.
How fresh are SERP API results?
Each call runs the search when you make it, so the results are what the engine returned at that moment. Rankings move during the day and by location, so record the time, location and device with every result. If you need a fixed snapshot for a report, store the response rather than re-querying later.
Does a SERP API return ads?
That depends on the engine and the endpoint. The Google recording shown here contains organic results, related questions, related searches, local results and filters, and no ads block. Test the queries you care about in the playground before you build a report that depends on ads data.
How many results does one SERP API call return?
One call returns one results page. The Google recording reports organic_results_count of 6 for that query, alongside a block of local results; the Bing recording reports results_on_page of 10. To go deeper, pass the paging parameter (start or page), at 1 credit per extra page.
Can an AI agent use a SERP API?
Yes. An agent can call the search endpoint as a tool and read organic_results for sources. Through the MCP server at https://perceptlayer.com/mcp, it finds the endpoint with search_endpoints and runs it with call_endpoint, which reports credits used. The AI agents docs cover setup.