keywordstring
Search query, e.g. "openai api".
https://api.sandbase.ai/v1/api/dataforseo/v3/serp/google/organic/live/advancedGet live Google organic search results for any keyword, location and language, including AI Overviews, featured snippets, People Also Ask and other SERP features, with rank positions and URLs.
您的输出将显示在这里
完成输入,然后点击运行。
Live Google search results for a keyword in any location, language and device: organic results with position, title, URL and snippet, plus the other SERP features on the page such as AI Overview, featured snippets, People Also Ask, local pack and video results.
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/serp/google/organic/live/advanced" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "running shoes", "location_code": 2840, "language_code": "en"}'
The result is returned in outputs[0].
| Name | Type | Required | Description |
|---|---|---|---|
depth | integer | No | Number of results to return (default 100). |
keyword | string | No | Search query, e.g. "openai api". |
language_code | string | No | Language code, e.g. "en". |
location_code | integer | No | DataForSEO location code, e.g. 2840 for the United States. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"status_code": 20000,
"tasks": [
{
"result": [
{
"keyword": "running shoes",
"check_url": "https://www.google.com/search?q=running%20shoes&hl=en&gl=US&ie=UTF-8&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
"item_types": [
"ai_overview",
"organic",
"local_pack",
"images",
"perspectives",
"product_considerations",
"related_searches"
],
"se_results_count": 74,
"items": [
{
"type": "organic",
"rank_group": 3,
"rank_absolute": 7,
"domain": "shop.runnersdepot.com",
"title": "Running and Walking Shoes",
"url": "https://shop.runnersdepot.com/",
"description": "Shop online with Runner's. Running and Walking Shoes. Shop by Category Shoes Insoles S…"
}
]
}
]
}
]
}
| Field | Meaning |
|---|---|
result[].item_types | SERP feature types present on the page, e.g. organic, ai_overview, people_also_ask. |
result[].items[] | Every element in page order. Organic rows have type: "organic", rank_group, rank_absolute, title, url, domain and description. |
items[] (type ai_overview) | AI Overview text in markdown and its references (source title, URL, domain). |
result[].check_url | The Google URL that was searched, for manual checks. |
result[].se_results_count | Google's reported number of results. |
depth sets how many results are fetched; the cost grows with the number of result pages.url values come back as google.com/goto?url=... redirect links, as Google serves them; follow the redirect to get the destination. For those results domain is google.com; the site itself is the first part of breadcrumb (e.g. https://example.com). Checked 2026-11-24: all organic results for "deepseek harness vs hermes" (US, English) came back this way.location_code 2840 is the United States; use location_name such as "London,England,United Kingdom" for cities.tasks[0].result[0].Billed at the actual cost of each call, about $0.002 for the request above. Failed calls are not charged.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/serp/google/organic/live/advanced" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "dinq.me company product",
"language_code": "en",
"location_code": 2840,
"depth": 10,
"device": "desktop"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
keywordstringSearch query, e.g. "openai api".
location_codeintegerDataForSEO location code, e.g. 2840 for the United States.
language_codestringLanguage code, e.g. "en".
depthintegerNumber of results to return (default 100).
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"cost": 0.002,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0.002,
"data": {
"api": "serp",
"depth": 10,
"device": "desktop",
"function": "live",
"keyword": "dinq.me company product",
"language_code": "en",
"location_code": 2840,
"os": "windows",
"se": "google",
"se_type": "organic"
},
"id": "08150247-2190-0139-0000-63ea360aeb93",
"path": [
"v3",
"serp",
"google",
"… 3 more items in the full response"
],
"result": [
{
"check_url": "https://www.google.com/search?q=dinq.me%20company%20product&hl=en&gl=US&ie=UTF-8&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
"datetime": "2026-08-15 02:47:14 +00:00",
"item_types": [
"ai_overview",
"organic",
"related_searches"
],
"items": [
{
"asynchronous_ai_overview": true,
"items": null,
"markdown": null,
"page": 1,
"position": "left",
"rank_absolute": 1,
"rank_group": 1,
"rectangle": null,
"references": null,
"type": "ai_overview",
"xpath": "/html[1]/body[1]/div[3]/div[1]/div[13]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]"
},
{
"about_this_result": null,
"amp_version": false,
"breadcrumb": "410+ followers",
"cache_url": null,
"checks": null,
"description": "DINQ is the AI-native talent search platform for modern hiring teams. DINQ helps you discover exceptional AI talent through natural language search",
"domain": "www.linkedin.com",
"extended_people_also_search": null,
"extended_snippet": null,
"faq": null,
"highlighted": [
"AI-native talent search platform"
],
"images": null,
"is_featured_snippet": false,
"is_image": false,
"is_malicious": false,
"is_video": false,
"is_web_story": false,
"links": null,
"page": 1,
"position": "left",
"pre_snippet": null,
"price": null,
"rank_absolute": 2,
"rank_group": 1,
"rating": null,
"rectangle": null,
"related_result": null,
"related_search_url": null,
"timestamp": null,
"title": "DINQ Lab",
"type": "organic",
"url": "https://www.linkedin.com/company/dinq-me",
"website_name": "LinkedIn · DINQ Lab",
"xpath": "/html[1]/body[1]/div[3]/div[1]/div[13]/div[2]/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]"
},
{
"about_this_result": null,
"amp_version": false,
"breadcrumb": "https://finance.yahoo.com › news › dinq-launches-ai-na...",
"cache_url": null,
"checks": null,
"description": "Jan 12, 2026 — DINQ is available now at https://dinq.me. Users can create a DINQ Card at no cost work within minutes. GitHub, Google Scholar, and more.",
"domain": "finance.yahoo.com",
"extended_people_also_search": null,
"extended_snippet": null,
"faq": null,
"highlighted": [
"DINQ",
"dinq",
"me"
],
"images": null,
"is_featured_snippet": false,
"is_image": false,
"is_malicious": false,
"is_video": false,
"is_web_story": false,
"links": null,
"page": 1,
"position": "left",
"pre_snippet": "01/12/2026 00:00:00",
"price": null,
"rank_absolute": 3,
"rank_group": 2,
"rating": null,
"rectangle": null,
"related_result": null,
"related_search_url": null,
"timestamp": "2026-01-12 00:00:00 +00:00",
"title": "DINQ Launches AI-Native Career Network to Address ...",
"type": "organic",
"url": "https://finance.yahoo.com/news/dinq-launches-ai-native-career-120000883.html",
"website_name": "Yahoo Finance",
"xpath": "/html[1]/body[1]/div[3]/div[1]/div[13]/div[2]/div[1]/div[2]/div[1]/div[1]/div[4]/div[1]/div[1]"
},
"… 8 more items in the full response"
],
"items_count": 11,
"keyword": "dinq.me company product",
"language_code": "en",
"location_code": 2840,
"pages_count": 1,
"refinement_chips": null,
"se_domain": "google.com",
"se_results_count": 103,
"spell": null,
"type": "organic"
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "0.6308 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "0.9633 sec.",
"version": "0.1.20260806"
}
]探索更多
| API | 价格 | 响应 |
|---|---|---|
DataForSEO | 每次调用从 $0.002 起 | JSON |
DataForSEO | 每次调用从 $0.0102 起 | JSON |
DataForSEO | 每次调用从 $0.000724 起 | JSON |
DataForSEO | $0.004 每次调用 | JSON |
DataForSEO | 每次调用从 $0.00162 起 | JSON |
DataForSEO | 每次调用从 $0.001105 起 | JSON |
问题
向 https://api.sandbase.ai/v1/api/dataforseo/v3/serp/google/organic/live/advanced 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
起价每次调用 $0.002,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
无需参数。 可选:keyword (string), location_code (integer), language_code (string) 和 depth (integer)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。DataForSEO Google SERP (Advanced) 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 DataForSEO API 访问权限。