Google search modes
Standard costs 1 credit; Advanced costs 2 credits per successful request, including valid empty results. Failed requests cost 0. Advanced may return richer metadata, but does not guarantee better relevance or more results. Bing and DuckDuckGo are Coming Soon.
{
"engine": "google",
"q": "Primodato.com",
"gl": "us",
"hl": "en",
"page": 1,
"search_mode": "advanced"
}Use search_mode: standard (the default) for Standard. Completed responses report search_metadata.search_mode and credits_used as standard / 1 or advanced / 2. Optional rich features appear only when returned. Usage history includes search_mode and creditsCharged.
SERP API
Product overviewSERP 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.
Request Parameters
Parameters accepted in the JSON body of 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
Structure of the normalized payload returned upon completed job execution.
| 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. |
Code Examples
Integration examples for SERP API across popular languages and HTTP clients.
Code examples
Switch between cURL, Python, JavaScript, Java, and PHP for the identical SERP API workflow.
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"Response Payloads
Actual JSON response schemas returned by the public API.
Initial Queued Response (202 Accepted)
Provides the durable job identifier to poll for execution completion.
{
"request_id": "req_123456",
"trace_id": "trace_xyz",
"job_id": "search_123456",
"status": "queued",
"credits_reserved": 1
}Final Completed Response (200 OK)
Normalized data payload returned once execution finishes.
{
"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"
}Operational Guidelines
- Job status response: queued/running returns { job_id, request_id, trace_id, status }; failed returns { success:false, status:"failed", job_id, error:{ code, message, details:{ job_id } } }.
- Use x-api-key for all search endpoints. Bearer auth is rejected by the current backend contract.
- POST /v1/:engine is also supported when you want to force a single engine in the path.
- Set search_mode to advanced in the same request to receive Advanced results. search_metadata.search_mode and credits_used report the actual mode and charge. GET /jobs includes search_mode and creditsCharged for usage history.
- Google Standard costs 1 credit; Google Advanced costs 2 credits per successful search, including valid empty results. Failed requests cost 0.
- You can fetch your recent jobs using GET /v1/usage/jobs.