Live
SERP API
Google Standard and Advanced search through one normalized contract.
SERP API removes parser drift, retry handling, and search engine branching from your application code. Send one search job, poll for completion, and work with normalized search modules instead of raw markup.
Endpoint
POST /v1/search
Poll GET /v1/search/:jobId for the final result payload.
Credits
Standard: 1 credit; Advanced: 2 credits
Each successful page costs 1 credit in Standard or 2 in Advanced. Polling and idempotent replays cost nothing extra.
Output
Structured JSON + optional markdown
Use include_raw_markdown=true when you need a prompt-ready rendering of the same SERP.
Code examples
Start with cURL, then switch to Python, JavaScript, Java, or PHP for the same SERP API flow.
Start with the raw HTTP request and poll flow.
curl -X POST "https://api.orbitscraper.com/v1/search" \
-H "x-api-key: ORS_live_1234567890" \
-H "Content-Type: application/json" \
-d '{
"q": "best ai chips 2026",
"engine": "google",
"location": "New York",
"gl": "us",
"hl": "en",
"device": "desktop",
"num": 10,
"page": 1,
"safe": "active",
"allow_fallback": false,
"include_raw_markdown": true,
"async": true
}'
curl -X GET "https://api.orbitscraper.com/v1/search/search_123456" \
-H "x-api-key: ORS_live_1234567890"What it's for
- rank tracking across supported engines and locales
- SERP features for SEO analytics dashboards
- search evidence for AI agents and retrieval workflows
- query monitoring for research and ad intelligence
- internal tooling that needs stable search response objects
How it works
- 1Submit a search job with q, engine preference, location context, and output options.
- 2By default, POST /v1/search is synchronous and waits up to about 25 seconds; if unfinished it returns HTTP 202 with a job_id and the job continues.
- 3With async: true, POST /v1/search always returns HTTP 202 immediately. Poll GET /v1/search/:jobId for the top-level completed payload.
Request parameters
These are the fields accepted by the current backend contract for POST /v1/search.
| Field / Parameter | Type | Required | Description |
|---|---|---|---|
search_mode | standard | advanced | Optional | Google only. Defaults to standard (1 credit); advanced costs 2 credits. Richer metadata is possible, not guaranteed; relevance and organic counts may vary. |
q | string | Required | Search query text. Maximum length 1000 characters. |
engine | string | Optional | Google is currently available. Bing and DuckDuckGo are Coming Soon and return 503 even with fallback enabled. |
allow_fallback | boolean | Optional | Defaults to false. Only Google is released; this option never unlocks unavailable engines or substitutes Standard for Advanced. |
location | string | Optional | Google city/location context. Other engines require Global; use gl/hl for country selection. |
gl | string | Optional | Google country code from the supported-region reference; default us. |
hl | string | Optional | Google result language; default en. |
device | desktop | mobile | Optional | Client device context. Defaults to desktop. |
num | integer | Optional | Google num must be 10. Actual result count may be lower. |
page | integer | Optional | One-based Google result page, 1-100. Each successful page is billed at the selected mode rate. |
tbs | string | Optional | Google advanced filter string, at most 1000 characters. |
nfpr | 0 | 1 | Optional | Google spelling correction control. |
safe | active | off | Optional | Google safe-search setting. |
async | boolean | Optional | Defaults to false: POST /v1/search is synchronous and waits up to about 25 seconds; if unfinished it returns HTTP 202 with a job_id and the job continues. With async: true it always returns HTTP 202 immediately. Poll GET /v1/search/:jobId. |
mode | string | Optional | Response mode. Supported values: parsed, llm. raw and hybrid modes and raw HTML are temporarily unavailable. |
include_raw_markdown | boolean | Optional | Return a markdown rendering alongside JSON fields when true. |
include_raw_html | boolean | Optional | raw and hybrid modes and raw HTML are temporarily unavailable. |
truncate_raw_html | integer | Optional | Truncate the raw HTML to this length if included. |
Response fields
These fields describe the completed payload you read from the current public API contract.
| Field / Parameter | Type | Description |
|---|---|---|
ai_overview / featured_snippet / answer_box | object (optional) | Allowlisted rich content when returned. Missing features are not fabricated and retrieval links are never fetched automatically. |
search_metadata | object | Top-level completed payload metadata including id, status, created_at, processing_time_ms, search_mode, and credits_used. Completed result fields are not wrapped in result. |
search_parameters | object | The parameters used to perform the search (q, engine, gl, hl, etc). |
search_information | object | Original submitted query in query_displayed, pagination and returned result counts. Spelling-correction fields and correction statuses are omitted; actual results are unchanged. |
organic_results | array | The main organic search results from the requested engine. |
local_results | array | Local map pack or business results. |
knowledge_graph | object | Knowledge graph panel information if present. |
people_also_ask | array | Related question snippets. |
related_searches | array | Related search queries. |
detected_intent | string | The inferred intent of the query. |
Response examples
This is the shape you get back from the current public API contract for SERP API.
Queued response
The first response confirms the job was accepted and tells you what to poll next.
{
"request_id": "req_123456",
"trace_id": "trace_xyz",
"job_id": "search_123456",
"status": "queued",
"credits_reserved": 1
}Completed response
After polling, this is the final payload shape your app reads.
{
"search_metadata": {
"id": "req_123456",
"status": "Success",
"created_at": "2026-06-15T12:00:00.000Z",
"processing_time_ms": 320,
"credits_used": 1,
"source": "live",
"engine": "google"
},
"search_parameters": {
"q": "best ai chips 2026",
"engine": "google",
"gl": "us",
"hl": "en",
"location": "New York",
"device": "desktop",
"num": 10,
"page": 1,
"safe": "active"
},
"search_information": {
"returned_results": 1,
"page": 1,
"num": 10
},
"organic_results": [
{
"position": 1,
"title": "Best AI chips in 2026",
"link": "https://example.com/ai-chips",
"displayed_link": "example.com",
"snippet": "A breakdown of current inference leaders."
}
],
"local_results": [],
"knowledge_graph": {},
"people_also_ask": [],
"related_searches": [],
"detected_intent": "product"
}Ready to build on SERP API?
The current backend contract is already live. Use the docs page for request details and the pricing page for credit planning.