Real-Time Web Search SERP & Related Keywords API
GET/v1/search2 Credits / query (0 if empty)($0.0002 / query ($0.11–$0.20 / 1K queries))· Updated 2026-11-14
Execute a real-time web search query localized by country and language. Returns up to 100 structured canonical organic rankings per call (position, title, direct URL, domain, displayed breadcrumb, favicon, snippet), native cleaned & deduplicated related_keywords array ([] when none), People Also Ask accordions, and Knowledge Graph cards for AI agents, RAG grounding, and SEO keyword/rank intelligence.
Parameters
qstringrequiredSearch query string (supports search operators such as site:, filetype:, intitle:, and exact quotes). Aliases: query, keyword.
Example:
ceramic mugcountrystringTwo-letter ISO 3166-1 alpha-2 country code for geo-localized SERP rankings (e.g., us, gb, de, jp, br). Alias: gl.
Example:
uslangstringISO 639-1 interface & result language code (e.g., en, es, de, fr, ja). Alias: hl.
Example:
enlimitinteger (1 to 100)Number of organic results to return (1 to 100, default 10). Alias: num.
Example:
10offsetintegerZero-based pagination offset (0, 10, 20...). Alias: start.
Example:
0safestringSafeSearch filter mode (off or active).
Example:
offfreshstringSet fresh=1 to bypass the 6-hour SERP hot cache on paid plans.
Example Request (cURL / Python / JavaScript)
curl "https://api.searchdataapi.com/v1/search?q=ceramic+mug" \
-H "x-api-key: sr_live_your_api_key"import requests
res = requests.get(
"https://api.searchdataapi.com/v1/search?q=ceramic+mug",
headers={"x-api-key": "sr_live_your_api_key"},
timeout=30,
)
print(res.json())const res = await fetch("https://api.searchdataapi.com/v1/search?q=ceramic+mug", {
headers: { "x-api-key": "sr_live_your_api_key" },
});
const data = await res.json();
console.log(data);Live Response Preview
{
"code": 0,
"provider": "https://searchdataapi.com",
"status": "ok",
"msg": "success",
"data": {
"query": "ceramic mug",
"country": "US",
"lang": "en",
"total_results_estimate": 87,
"count": 3,
"offset": 0,
"has_more": true,
"next_offset": 3,
"organic_results": [
{
"position": 1,
"title": "Buy Ceramic Cups, Coffee Cups & Travel Coffee Mugs | Nova Ceramics",
"url": "https://novaceramics.co/collections/ceramic-cups",
"domain": "novaceramics.co",
"displayed_url": "novaceramics.co › collections › ceramic-cups",
"snippet": "Shop handcrafted stoneware ceramic cups, coffee mugs, and travel coffee mugs at Nova Ceramics. Microwave and dishwasher safe artisan glazes.",
"favicon": "https://www.google.com/s2/favicons?domain=novaceramics.co&sz=64",
"published_at": null
},
{
"position": 2,
"title": "Ceramic Coffee Mugs & Mug Sets | Microwave Safe — Mora Ceramics",
"url": "https://moraceramics.com/collections/mugs",
"domain": "moraceramics.com",
"displayed_url": "moraceramics.com › collections › mugs",
"snippet": "Shop Mora Paladin clay ceramic coffee mugs and latte cups. Lead-free glaze, extra-strong stoneware, microwave safe, and dishwasher safe.",
"favicon": "https://www.google.com/s2/favicons?domain=moraceramics.com&sz=64",
"published_at": null
},
{
"position": 3,
"title": "Handmade Ceramic Mugs & Cups — Wolf Ceramics",
"url": "https://wolfceramics.com/collections/mugs-cups",
"domain": "wolfceramics.com",
"displayed_url": "wolfceramics.com › collections › mugs-cups",
"snippet": "Shop wheel-thrown handmade stoneware mugs and cups crafted by artisans in Hood River, Oregon. Built for daily pour-over and espresso rituals.",
"favicon": "https://www.google.com/s2/favicons?domain=wolfceramics.com&sz=64",
"published_at": null
}
],
"people_also_ask": [],
"knowledge_graph": null,
"related_keywords": [
"ceramic mugs handmade",
"ceramic coffee mugs",
"stoneware ceramic mug",
"ceramic travel mug with lid",
"japanese ceramic mug",
"large 16oz ceramic mug"
],
"related_searches": [
"ceramic mugs handmade",
"ceramic coffee mugs",
"stoneware ceramic mug",
"ceramic travel mug with lid",
"japanese ceramic mug",
"large 16oz ceramic mug"
]
},
"meta": {
"request_id": "f3b0cb6f-059c-4023-967b-e236e19c29ae",
"endpoint": "/v1/search",
"count": 3,
"credits_charged": 2,
"cached": false,
"took_ms": 642
}
}Response Fields
Structured real-time SERP payload with direct organic URLs, native related_keywords, and PAA.
| Field | Type | Sample / Notes |
|---|---|---|
code | integer | Example: 0 |
provider | string | Example: https://searchdataapi.com |
status | string | Example: ok |
msg | string | Example: success |
data | object | |
query | string | Executed search query. |
country | string | ISO country code. |
lang | string | ISO language code. |
count | integer | Number of organic results returned. |
offset | integer | Current pagination offset. |
has_more | boolean | Whether more organic pages are available. |
next_offset | integer | Next offset value for pagination. |
organic_results | array of OrganicResult | |
position | integer | 1-based SERP organic rank position. |
title | string | Result page title. |
url | string | Canonical destination URL. |
domain | string | Normalized hostname without www. |
displayed_url | string | Breadcrumb URL string shown in SERP. |
snippet | string | Highlighted SERP meta description snippet. |
favicon | string | 64px domain favicon URL. |
published_at | string | Optional publication date string if detected. |
people_also_ask | array of PeopleAlsoAskItem | |
question | string | Expandable People Also Ask question. |
snippet | string | Extracted answer snippet. |
title | string | Cited source page title. |
url | string | Cited source URL. |
related_keywords | array of string | Cleaned, deduplicated related search keywords returned natively from the SERP ([] when none). |
related_searches | array of string | Alias array mirroring related_keywords for SerpApi/Serper drop-in compatibility. |
meta | ResponseMeta | |
request_id | string | Unique UUIDv4 trace identifier. |
endpoint | string | Normalized /v1/* endpoint path. |
count | integer | Number of primary items returned. |
credits_charged | integer | Credits deducted (0 on empty or error). |
cached | boolean | Whether served from L1/L2 edge cache. |
took_ms | integer | End-to-end gateway latency in milliseconds. |
Status Codes
- 200
- Structured real-time SERP payload with direct organic URLs, native related_keywords, and PAA.