# Google SERP API

> Google SERP API is a paid API for AI agents from agent-search.centorprat.workers.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-10-30).

Fetches full Google search results pages including organic results, answer boxes, knowledge graph, People Also Ask, related searches, top stories, local pack, domain authority, and page summaries for any country/language/city.

## Facts

- Endpoint: POST https://agent-search.centorprat.workers.dev/serp?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/google-serp-api-968a726c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jBoOA_d97oVt3mfnOA-da

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability google-serp-api-968a726c -d '<json body>'
```

Example prompt: Search Google for 'best electric SUVs 2025' in the US, in English, showing the top 5 results — include organic results, any answer box or knowledge graph, and page summaries.

## When to prefer this

Choose this endpoint when you need rich, structured Google SERP data beyond plain organic links — specifically when you need domain authority scores, result-type labels, knowledge graph, answer boxes, People Also Ask, local pack, or page summaries in a single call. It is 3x cheaper than comparable SERP APIs and supports geo-targeting by country, language, and city. Prefer it over generic web search endpoints when SEO analysis, local search, or full SERP feature extraction is the goal.

## Known failure modes

- Invalid or missing query returns 400 error
- Unsupported country/language code may return default US/en results
- numResults outside 1-10 range may be clamped or rejected
- Private mode queries bypass cache and may be slower
- Freshness filter may reduce result count for narrow time windows
- Rate limiting or payment failure returns 402 or 429 error

## How this service works

Google SERP API with everything on the page: organic results, answer box, knowledge graph, people also ask, related searches, top stories and local pack, for any country / language / city, PLUS per result the domain authority rank and type (official, news, research, forum, video, shopping, docs) and a page summary. 3x cheaper than other SERP APIs.

## Output

A structured JSON response containing: organic search results (title, URL, snippet, domain authority rank, type label), answer box content, knowledge graph data, People Also Ask questions and answers, related searches, top stories, and local pack listings — each organic result also includes a page summary.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "time": {
   "type": "string",
   "description": "freshness: hour, day, week, month or year (optional)"
  },
  "query": {
   "type": "string",
   "description": "What to search for"
  },
  "country": {
   "type": "string",
   "description": "2-letter country the results are for: us, gb, de, es, fr, in, br, ... (default us)"
  },
  "private": {
   "type": "boolean",
   "description": "true = the query is not logged or cached (default false)"
  },
  "language": {
   "type": "string",
   "description": "e.g. en, es"
  },
  "location": {
   "type": "string",
   "description": "city / region"
  },
  "numResults": {
   "type": "integer",
   "description": "1-10"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/google-serp-api-968a726c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-search.centorprat.workers.dev](https://www.zero.xyz/host/agent-search.centorprat.workers.dev/llms.txt)
