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.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
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).
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"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"
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
DataForSEO | Từ $0.002 mỗi lần gọi | JSON |
DataForSEO | Từ $0.0102 mỗi lần gọi | JSON |
DataForSEO | Từ $0.000724 mỗi lần gọi | JSON |
DataForSEO | $0.004 mỗi lần gọi | JSON |
DataForSEO | Từ $0.00162 mỗi lần gọi | JSON |
DataForSEO | Từ $0.001105 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/dataforseo/v3/serp/google/organic/live/advanced với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
Từ $0.002 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Không có tham số bắt buộc. Tùy chọn: keyword (string), location_code (integer), language_code (string) và depth (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. DataForSEO Google SERP (Advanced) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của DataForSEO.