# SERP API: Google search results as JSON

> What the Keirolabs SERP API returns, what it costs, what it leaves out, and how it compares with SerpApi, Serper and the retiring Google Custom Search API. Prices checked November 20, 2026.

Canonical: https://keirolabs.cloud/serp-api · Updated: 2026-11-20

> **Quick answer.** A **SERP API** runs a search on Google for you and returns the results page as JSON, so you never scrape or parse HTML. The main options: **SerpApi** parses the full page and many engines ($25 to $3.75 per 1,000), **Serper** sells raw Google results in bulk ($1.00 to $0.30 per 1,000), and Google's own Custom Search API ends on January 1, 2027.
>
> **Keirolabs SERP API** (`/api/v2/search/google`) returns Google's organic results (title, URL and snippet in rank order, up to 20 per call) by country and language for **2 credits a search: $5.33 per 1,000 on Essential, $2.96 on Pro and $1.78 on Startup**, with **500 free searches and no card**. The same key and credits also buy **web search at $0.03 to $0.10 per 1,000** with `/search/lite`, full-page extraction and cited answers, so one account covers both your SEO data and your AI agent's search. It returns organic results only: no ads, maps or People also ask.

## What a SERP API does

A search engine results page (SERP) is the page Google shows after a search. A SERP API sends the query for you, from the right country and language, deals with blocking, and returns that page as structured data:

```json
{
  "query": "serp api",
  "results": [
    { "title": "SerpApi: Google Search API", "url": "https://serpapi.com/", "snippet": "..." },
    { "title": "SERP API - 5K Requests/Month for Free - Bright Data", "url": "https://brightdata.com/products/serp-api", "snippet": "..." }
  ],
  "count": 2,
  "latencyMs": 1180
}
```

That is the Keirolabs response shape, abridged. Results come back in Google's order, so a result's position in the array is its rank.

People use SERP APIs for four jobs:

1. **Rank tracking**: checking where a domain ranks for a keyword, every day or week.
2. **SEO research**: who ranks for a term, what titles and snippets win, how results differ by country.
3. **Grounding AI agents in Google's view of the web**: when "what Google shows" is the question, not just "what's true".
4. **Lead and market research**: finding every company, listing or page that ranks for a set of terms.

For the background (how SERP APIs work, the Google v. SerpApi case and how to choose one), see [What is a SERP API?](https://keirolabs.cloud/blog/what-is-a-serp-api).

## Keirolabs SERP API: what you get

| | Keirolabs `/search/google` |
| :--- | :--- |
| Source | Live Google results |
| Fields per result | `title`, `url`, `snippet`, in rank order |
| Results per call | 1 to 20 (`maxResults`, default 10) |
| Country | `country`: two-letter code where the search runs, such as `US`, `DE`, `IN` |
| Country restrict | `cr`: only results from sites in that country |
| Language | `lang`: language code, such as `en`, `de`, `pt-BR` |
| Price | 2 credits per search, flat |
| Free | 1,000 credits at signup (500 searches), no card |
| Auth | `Authorization: Bearer <key>` |

**What it does not return.** No ads, local pack or maps, People also ask, featured snippets, knowledge panel, images, news, shopping or AI Overviews. No city-level location and no mobile versus desktop switch. No Google Trends, Scholar, Maps or Shopping endpoints. If your product needs any of these, a full-SERP provider such as SerpApi or DataForSEO is the right tool, and we say so below.

## Example request

```bash
curl https://api.keirolabs.cloud/api/v2/search/google \
  -H "Authorization: Bearer $KEIRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "best crm for startups", "maxResults": 10, "country": "US", "lang": "en"}'
```

In Python:

```python
import os, requests

r = requests.post(
    "https://api.keirolabs.cloud/api/v2/search/google",
    headers={"Authorization": f"Bearer {os.environ['KEIRO_API_KEY']}"},
    json={"query": "best crm for startups", "maxResults": 10, "country": "GB"},
    timeout=30,
)
r.raise_for_status()
for rank, item in enumerate(r.json()["results"], start=1):
    print(rank, item["url"])
```

## SERP API pricing compared

Prices per 1,000 searches from each vendor's pricing page, November 20, 2026.

| Provider | Entry | At volume | Free | What you get |
| :--- | :--- | :--- | :--- | :--- |
| **Keirolabs** `/search/google` | $5.33 (Essential, $29.99) | $1.78 (Startup, $99.99) | 500 searches, no card | Organic results, country and language |
| **SerpApi** | $25.00 (Starter, $25 for 1,000) | $3.75 (Cloud 1M, $3,750) | 250 a month | Full SERP plus Maps, Shopping, Scholar, News and other engines |
| **Serper** | $1.00 ($50 for 50,000) | $0.30 ($3,750 for 12.5M) | 2,500 once, no card | Google results as JSON |
| Google Custom Search JSON API | $5.00 | capped at 10,000 a day | 100 a day | Closed to new customers; ends January 1, 2027 |

Keirolabs plan math: a Google search is 2 credits, Essential is $29.99 for 11,250 credits (5,625 searches), Pro $49.99 for 33,750 (16,875) and Startup $99.99 for 112,500 (56,250). Credit packs work too, at $10 to $13.33 per 1,000 searches.

**How to read this table honestly:**

- **Need the full results page?** SerpApi is the broad option. It parses every SERP feature and dozens of engines; you pay for that breadth.
- **Need the cheapest raw Google results in bulk?** Serper is cheaper than us at every volume.
- **Need Google results plus a cheap general search and page extraction on one key?** That is where Keirolabs fits: the same credits pay for Google SERP, `/search/lite` at $0.03 to $0.10 per 1,000, and `/search/content`, which returns results with each page as markdown.

More detail: [SerpApi pricing](https://keirolabs.cloud/blog/serpapi-pricing), [cheapest SERP API](https://keirolabs.cloud/blog/cheapest-serp-api), [SerpApi alternatives](https://keirolabs.cloud/blog/serpapi-alternatives).

## Do you need Google's exact results?

Often you don't, and it is the biggest cost decision you will make.

| If your question is | Use | Price per 1,000 on a plan |
| :--- | :--- | :--- |
| Where does my page rank on Google? | SERP API (`/search/google`) | $1.78 to $5.33 |
| What does Google show for this term in Germany? | SERP API with `country` | $1.78 to $5.33 |
| What are the best pages about this topic? | Search API (`/search/lite`) | $0.03 to $0.10 |
| What do those pages actually say? | Search plus content (`/search/content`) | $1.33 to $4.00 |

An agent that answers questions needs good pages, not Google's ranking of them. Paying for exact Google rank in that case costs 18 to 50 times more than lite on the same plan. Rank tracking and SEO tooling are the jobs where Google's exact order is the product.

## Rank tracking with the SERP API

To track rankings, run each keyword daily or weekly for each country you care about and record the position of your domain:

```python
def rank_of(domain, keyword, country="US"):
    r = requests.post(
        "https://api.keirolabs.cloud/api/v2/search/google",
        headers={"Authorization": f"Bearer {os.environ['KEIRO_API_KEY']}"},
        json={"query": keyword, "maxResults": 20, "country": country},
        timeout=30,
    ).json()
    for i, item in enumerate(r["results"], start=1):
        if domain in item["url"]:
            return i
    return None  # not in the top 20
```

Cost: 500 keywords tracked daily in one country is 15,000 searches a month, or 30,000 credits: inside the Pro plan ($49.99). The limits are the ones in the table above: top 20 only, country-level location, no device split. Our [rank tracking API guide](https://keirolabs.cloud/rank-tracking-api) covers scheduling, storage and when you need a city-level provider instead.

## Is using a SERP API legal?

Google does not sell its organic results, so every SERP API collects them from the public page. In December 2025 Google sued SerpApi under the DMCA. On July 20, 2026 the court dismissed the DMCA claim, holding that ordinary search results are not copyrighted works. Google can still change its pages or block collection, as it did when it removed the `num=100` parameter in September 2025. Treat any SERP API as a dependency that can break, and keep a fallback on an independent index. The full timeline is in [the 2026 search API crackdown](https://keirolabs.cloud/blog/search-api-crackdown-2026-serpapi-lawsuit-bing-shutdown). This is not legal advice.

## Replacing the Google Custom Search JSON API

Google closed the Custom Search JSON API to new customers, and existing integrations stop working on **January 1, 2027**. Its suggested replacement, Vertex AI Search, searches your own content, not the public web. If you used Custom Search to get Google results, a SERP API is the direct replacement. The migration is a request and response mapping; see the [Google search API guide](https://keirolabs.cloud/google-search-api) and the [Custom Search migration guide](https://keirolabs.cloud/blog/google-custom-search-api).

## Rate limits and reliability

- Each plan has a per-minute rate limit; see [pricing](https://keirolabs.cloud/pricing).
- Calls that time out return an empty result set rather than hanging, so your job can retry.
- Only the four documented fields are returned, so the response shape does not change when the upstream does.

## Verdict

Keirolabs' SERP API is a plain, honest Google organic endpoint: rank-ordered results, country and language targeting, 20 results a call, at $1.78 to $5.33 per 1,000 on a plan. It is the right pick when you want Google results and general web search on one key and one bill. It is not the cheapest raw Google feed (Serper is) and not the most complete SERP parser (SerpApi is). Test it with the 1,000 free credits before you decide.

## FAQ

### What is a SERP API?

A SERP API runs a search on a search engine such as Google and returns the results page as structured JSON, so you don't scrape or parse HTML. It is used for rank tracking, SEO research, grounding AI agents and market research.

### How much does the Keirolabs SERP API cost?

2 credits per search: $5.33 per 1,000 on the $29.99 Essential plan, $2.96 on Pro ($49.99) and $1.78 on Startup ($99.99). Signup gives 1,000 free credits, enough for 500 searches, with no card.

### What does the Keirolabs SERP API return?

Google's organic results in rank order: title, URL and snippet for 1 to 20 results per call, filtered by country (country), country of the site (cr) and language (lang).

### Does it return ads, People also ask or local results?

No. It returns organic results only. For ads, maps, People also ask, featured snippets, shopping or Scholar, use a full-SERP provider such as SerpApi or DataForSEO.

### What is the cheapest SERP API?

For raw Google results in bulk, Serper, at $1.00 per 1,000 dropping to $0.30 at 12.5 million searches. Keirolabs costs $1.78 to $5.33 per 1,000 for Google results, and $0.03 to $0.10 per 1,000 for general web search with /search/lite.

### SerpApi vs Keirolabs: which should I use?

SerpApi if you need the full results page, other Google verticals or other engines: $25 per 1,000 on its Starter plan down to $3.75 at a million a month. Keirolabs if you need organic Google results plus cheap general search and page extraction on one key.

### Can I use a SERP API for rank tracking?

Yes. Search each keyword daily or weekly per country and record your domain's position in the results. On Keirolabs, 500 keywords tracked daily in one country is about 30,000 credits a month, inside the $49.99 Pro plan. Location is country-level only and results stop at the top 20.

### Is using a SERP API legal?

SERP APIs collect results from Google's public pages. In July 2026 a US court dismissed Google's DMCA claim against SerpApi, holding that ordinary search results are not copyrighted works. Google can still change or block access, so plan a fallback. This is not legal advice.

### What replaces the Google Custom Search JSON API?

Google closed it to new customers, and it stops working on January 1, 2027. Vertex AI Search only searches your own content, so for public Google results a SERP API is the direct replacement.

## Related

- [What is a SERP API?](https://keirolabs.cloud/blog/what-is-a-serp-api): How SERP APIs work, the Google v. SerpApi case and how to choose.
- [Google search API](https://keirolabs.cloud/google-search-api): Every way to get Google results by API after Custom Search ends.
- [Rank tracking API](https://keirolabs.cloud/rank-tracking-api): Track keyword positions by country with a SERP API.
- [SerpApi pricing](https://keirolabs.cloud/blog/serpapi-pricing): Every SerpApi plan and its price per 1,000.
- [Cheapest SERP API](https://keirolabs.cloud/blog/cheapest-serp-api): SERP APIs ranked by price per 1,000.
