# Search & SERP APIs

Canonical URL: https://dataroute.dev/apis/search/
Specification Snapshot: 2026-11-22 | Planned Endpoints: 2

Capture search autocomplete suggestions and live Google organic SERP rankings with explicit market, language, and device parameters under the same HTTP-200-only billing guarantee.

DataRoute folds dedicated search-capture capabilities directly into the unified gateway so SEO workflows, AI research agents, and market-sizing pipelines share one API key and one prepaid USD balance alongside Social, Sites, and Web routes.

Every organic SERP response normalizes rank positions, canonical URLs, domains, titles, snippets, and detected SERP features while guaranteeing zero billing when an upstream provider times out or triggers anti-bot blocks.

## Endpoint Catalog
| Method | Planned Path | Platform | Capability | Stage | Engine | MCP Tool |
| --- | --- | --- | --- | --- | --- | --- |
| GET | `/v1/search/suggest` | Autocomplete | Search Autocomplete Suggestions | V1 Flagship | First-Party Search Module | `search_suggest` |
| GET | `/v1/search/serp` | Google SERP | Google Organic SERP Capture | V1 Multi-Upstream | Dual-Upstream SERP Router | `search_serp` |

## Target Fields & Failover Policies
- `GET /v1/search/suggest` (V1 Flagship, Tier 1 · Fast Query): fields `query, gl, hl, suggestions[], captured_at` — Low-latency direct autocomplete capture with regional resolver fallback.
- `GET /v1/search/serp` (V1 Multi-Upstream, Tier 2 · Multi-Upstream SERP): fields `query, gl, hl, device, organic_results[], people_also_ask[], serp_features[]` — Dual commercial SERP upstreams ranked by live success rate; zero billing on blocked responses.

## Questions & Answers
### Which parameters control regional Google SERP results?
The planned /v1/search/serp and /v1/search/suggest routes accept explicit country (gl), interface language (hl), and device profile (desktop or mobile) parameters so rankings reflect deterministic regional markets.

### How does dual-upstream routing protect Google organic SERP reliability?
SERP providers periodically experience regional throttling or parser drift after search layout updates. DataRoute scores two commercial SERP upstreams on rolling HTTP 200 pass rates and latency, routing around degraded providers automatically.

### Are billed SERP responses guaranteed to include structured organic items?
Yes. Every response passes schema validation verifying parsed organic result arrays, canonical URLs, titles, and rank positions before credit deduction occurs. Unparsed HTML blocks or upstream timeouts trigger zero charge.

### Can autocomplete suggestions and SERP captures run inside one AI agent workflow?
Yes. Both search_suggest and search_serp register as first-class tools on https://dataroute.dev/mcp, letting agents expand keywords, capture live organic rankings, and extract top-ranking pages via web_to_markdown under one API key.
