---
title: "SERP API: What It Returns and What a Query Costs"
description: "A SERP API returns a results page as JSON: organic results, People also ask, related searches, local results. Real responses from 3 engines, 1 credit each."
url: https://perceptlayer.com/blog/serp-api-explained
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# SERP API: What It Returns and What a Query Costs

11 Oct 2026 Perceptlayer 7 min read

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.

## Key takeaways

-   A SERP API turns one results page into JSON. On Google that means `organic_results`, `related_questions` (People also ask), `related_searches`, `local_results` and `pagination` in one response.
-   Each engine's response has its own shape: Google's endpoint returns `organic_results[].link`, Bing's returns `data[].url`, and DuckDuckGo's nests results under `data.organic_results`.
-   Every search endpoint here costs 1 credit per successful call, and failed calls cost nothing. Tracking 200 keywords daily on one engine is 6,000 credits a month.
-   The official options have narrowed: Google's Custom Search JSON API is closed to new customers, and Microsoft retired the Bing Search APIs in August 2025.

## 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](https://perceptlayer.com/blog/ground-agent-answers-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](https://developers.google.com/custom-search/v1/overview), 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](https://learn.microsoft.com/en-us/lifecycle/announcements/bing-search-api-retirement), 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:

```bash
curl "https://api.perceptlayer.com/v1/google-search/search?query=best+restaurants+in+Berlin&hl=en&safe=off" \
  -H "X-API-Key: $API_KEY"
```

```json
{
  "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](https://perceptlayer.com/blog/google-search-api-json) covers every parameter, and [Google People Also Ask API](https://perceptlayer.com/blog/google-people-also-ask-api) and [Google AI Overview API](https://perceptlayer.com/blog/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:

```json
{
  "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:

```json
{
  "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](https://perceptlayer.com/blog/bing-search-api-alternative-json) and [DuckDuckGo Search API](https://perceptlayer.com/blog/duckduckgo-search-api-json) 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](https://perceptlayer.com/pricing) for what credits cost, and the [credits docs](https://docs.perceptlayer.com/credits) 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](https://perceptlayer.com/blog/search-result-data-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:

1.  **Location and language.** Does it take the country, language and city you care about? Rankings differ by place.
2.  **Device.** Mobile and desktop pages differ. Google's endpoint takes `device` ( `desktop`, `tablet`, `mobile`).
3.  **Blocks.** Does the response include the blocks you track, such as People also ask or local results, or only organic links?
4.  **Position semantics.** Is position counted among organic results or across the whole page?
5.  **Failures.** Are failed calls billed? Here they aren't.
6.  **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](https://perceptlayer.com/apis/google-search), then the same one on the [Bing API](https://perceptlayer.com/apis/bing) and [DuckDuckGo API](https://perceptlayer.com/apis/duckduckgo) pages, and compare the responses with what you see in a browser. When the shapes suit you, [get a free API key](https://perceptlayer.com/signup).

## APIs in this post

-   [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
-   [Bing **1 credit per call** · 10 endpoints](https://perceptlayer.com/apis/bing)
-   [DuckDuckGo **1 credit per call** · 3 endpoints](https://perceptlayer.com/apis/duckduckgo)

## 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](https://docs.perceptlayer.com/ai-agents) cover setup.

serp api search results seo rank tracking json

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 25 Oct 2026 Perceptlayer 7 min read
    
    ## [Rank Tracking API: Track Google Positions as JSON](https://perceptlayer.com/blog/rank-tracking-api)
    
    Build a daily rank check from one Google search call per keyword and location: read organic\_results position and link, store them, 1 credit a check.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 14 Jul 2026 Perceptlayer 7 min read
    
    ## [Google AI Overview API: Get AI Overviews as JSON](https://perceptlayer.com/blog/google-ai-overview-api)
    
    Google has no AI Overview API. GET /v1/google-search/search-ai-overview takes a query, hl and gl, costs 1 credit, and suits daily keyword tracking.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 25 Nov 2026 Perceptlayer 8 min read
    
    ## [MyAnimeList API: Anime and Manga Data as JSON](https://perceptlayer.com/blog/myanimelist-api-json)
    
    Six MyAnimeList endpoints at 1 credit each: anime and manga by id, search, season and top lists, with score, rank, members and a real response.
