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.

json
{
  "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 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.

POST /v1/searchLive• Standard: 1 credit; Advanced: 2 credits• Poll GET /v1/search/:jobId for the final result payload.

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 / ParameterTypeRequiredDescription
search_modestandard | advancedOptional

Google only. Defaults to standard (1 credit); advanced costs 2 credits. Richer metadata is possible, not guaranteed; relevance and organic counts may vary.

qstringRequired

Search query text. Maximum length 1000 characters.

enginestringOptional

Google is currently available. Bing and DuckDuckGo are Coming Soon and return 503 even with fallback enabled.

allow_fallbackbooleanOptional

Defaults to false. Only Google is released; this option never unlocks unavailable engines or substitutes Standard for Advanced.

locationstringOptional

Google city/location context. Other engines require Global; use gl/hl for country selection.

glstringOptional

Google country code from the supported-region reference; default us.

hlstringOptional

Google result language; default en.

devicedesktop | mobileOptional

Client device context. Defaults to desktop.

numintegerOptional

Google num must be 10. Actual result count may be lower.

pageintegerOptional

One-based Google result page, 1-100. Each successful page is billed at the selected mode rate.

tbsstringOptional

Google advanced filter string, at most 1000 characters.

nfpr0 | 1Optional

Google spelling correction control.

safeactive | offOptional

Google safe-search setting.

asyncbooleanOptional

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.

modestringOptional

Response mode. Supported values: parsed, llm. raw and hybrid modes and raw HTML are temporarily unavailable.

include_raw_markdownbooleanOptional

Return a markdown rendering alongside JSON fields when true.

include_raw_htmlbooleanOptional

raw and hybrid modes and raw HTML are temporarily unavailable.

truncate_raw_htmlintegerOptional

Truncate the raw HTML to this length if included.

Response Fields

Structure of the normalized payload returned upon completed job execution.

Field / ParameterTypeDescription
ai_overview / featured_snippet / answer_boxobject (optional)

Allowlisted rich content when returned. Missing features are not fabricated and retrieval links are never fetched automatically.

search_metadataobject

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_parametersobject

The parameters used to perform the search (q, engine, gl, hl, etc).

search_informationobject

Original submitted query in query_displayed, pagination and returned result counts. Spelling-correction fields and correction statuses are omitted; actual results are unchanged.

organic_resultsarray

The main organic search results from the requested engine.

local_resultsarray

Local map pack or business results.

knowledge_graphobject

Knowledge graph panel information if present.

people_also_askarray

Related question snippets.

related_searchesarray

Related search queries.

detected_intentstring

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.

bash
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.

json
{
  "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.

json
{
  "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.

Start scraping faster - ask Orbit AI.