targetstring
Target domain or page, e.g. "nike.com".
https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/ranked_keywords/liveReturns all Google search keywords for which a specified domain currently ranks. Provides ranking keyword metrics and organic search performance data.
[
{
"cost": 0,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0,
"data": {
"api": "dataforseo_labs",
"function": "ranked_keywords",
"se_type": "google"
},
"id": "08200930-2190-0381-0000-69076c4fb620",
"path": [
"v3",
"dataforseo_labs",
"google",
"… 2 more items in the full response"
],
"result": null,
"result_count": 0,
"status_code": 40503,
"status_message": "POST Data Is Invalid.",
"time": "0 sec."
}
],
"tasks_count": 1,
"tasks_error": 1,
"time": "0.0085 sec.",
"version": "0.1.20260806"
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
List the Google keywords a domain or URL ranks for, with each keyword's position, ranking URL, search volume, CPC and estimated traffic. Data comes from the DataForSEO Labs database, which is updated regularly, so a call returns in seconds without running live searches.
etv.curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/ranked_keywords/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"target": "nike.com", "limit": 5, "location_code": 2840, "language_code": "en"}'
For a completed SandBase response, read the provider payload from outputs[0].data. Check provider task status before using the result.
| Name | Type | Required | Description |
|---|---|---|---|
language_code | string | No | Language code, e.g. "en". |
limit | integer | No | Maximum number of results (up to 100). |
location_code | integer | No | Location code, e.g. 2840 for the United States. |
target | string | No | Target domain or page, e.g. "nike.com". |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"status_code": 20000,
"tasks": [
{
"result": [
{
"target": "nike.com",
"total_count": 665898,
"items_count": 5,
"items": [
{
"keyword_data": {
"keyword": "0 3 month nike shoes",
"keyword_info": {
"search_volume": 40,
"cpc": 0.3400000035762787,
"competition": 1,
"competition_level": "HIGH",
"low_top_of_page_bid": 0.15000000596046448,
"high_top_of_page_bid": 0.49000000953674316
}
},
"ranked_serp_element": {
"serp_item": {
"type": "organic",
"rank_group": 1,
"rank_absolute": 2,
"url": "https://www.nike.com/w/baby-toddler-kids-shoes-2j488zv4dhzy7ok",
"title": "Babies & Toddlers (0-3 yrs) Kids Shoes",
"etv": 0.71678626537323
}
}
}
]
}
]
}
]
}
| Field | Meaning |
|---|---|
items[].keyword_data.keyword | The ranking keyword. |
items[].keyword_data.keyword_info | Search volume, CPC, competition and monthly searches for the keyword. |
items[].ranked_serp_element.serp_item.rank_group / rank_absolute | Position among organic results / among all SERP elements. |
items[].ranked_serp_element.serp_item.url | The page of the target that ranks. |
items[].ranked_serp_element.serp_item.etv | Estimated monthly traffic from this keyword. |
total_count | Total ranking keywords; page with offset and limit (max 100). |
filters and order_by from the official schema, e.g. ["ranked_serp_element.serp_item.rank_group", "<=", 10] for top-10 rankings only.Billed at the actual cost of each call, about $0.0126 for the request above. Failed calls are not charged.
Use Ranked Keywords when you have a domain or page and want its database ranking records. Start with target, limit, location_code and language_code: for example, nike.com, 5, 2840 and en. Match the market and language when comparing sites. The current SandBase field description caps limit at 100; the response may contain fewer items.
These records come from the DataForSEO Labs database. The live suffix names the immediate request method; it does not turn the result into a fresh Google search or your site's Search Console data. A rank or estimated traffic value is not a count of clicks your site received. The schema allows additional properties, but this initial request does not add untested filters or paginate automatically.
For ideas from a seed phrase instead, inspect Keyword Suggestions.
Already have a SandBase key? Keep it in the local SANDBASE_API_KEY environment variable and use the API tab's POST route with Bearer authentication. Already connected your agent? Ask it to inspect this endpoint, show the input and pricing, then make only the request you approve. For a new project, give your agent the setup Skill, this endpoint URL and your research question. The Markdown quickstart explains the setup paths without putting a secret into a shared prompt.
Pricing checked on 2026-11-08: the listed base price is $0.0126, while the pricing formula is usage.provider_reported_cost. The base price is not a fixed total for every request, and multiplying it by the keyword count is not a supported quote. Inspect current pricing before execution and check the actual billing record afterward. This review did not run a paid query or verify free-quota eligibility for these endpoints.
For a completed SandBase call, read the documented outputs[0].data payload. Then check DataForSEO's overall and per-task status before using tasks[].result[]. HTTP 200 alone does not mean usable results. The reference sample illustrates provider-shaped data, not a guarantee that every field or row will be present; missing values are unknown, not zero. See the Python keyword-research guide for a single-request example and the separately dated historical workflow.
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/dataforseo_labs/google/ranked_keywords/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 5,
"target": "nike.com",
"language_code": "en",
"location_code": 2840
}'Đặ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.
targetstringTarget domain or page, e.g. "nike.com".
limitintegerMaximum number of results (up to 100).
location_codeintegerLocation code, e.g. 2840 for the United States.
language_codestringLanguage code, e.g. "en".
Đâ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,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0,
"data": {
"api": "dataforseo_labs",
"function": "ranked_keywords",
"se_type": "google"
},
"id": "08200930-2190-0381-0000-69076c4fb620",
"path": [
"v3",
"dataforseo_labs",
"google",
"… 2 more items in the full response"
],
"result": null,
"result_count": 0,
"status_code": 40503,
"status_message": "POST Data Is Invalid.",
"time": "0 sec."
}
],
"tasks_count": 1,
"tasks_error": 1,
"time": "0.0085 sec.",
"version": "0.1.20260806"
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
DataForSEO | Từ $0.0126 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/dataforseo_labs/google/ranked_keywords/live 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.0126 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: target (string), limit (integer), location_code (integer) và language_code (string). 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 Ranked Keywords 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.
Không. Đó là các bản ghi xếp hạng từ cơ sở dữ liệu DataForSEO Labs. Hậu tố live mô tả phương thức request tức thời. Các bản ghi này không phải là kiểm tra SERP mới hay số lượt nhấp từ Search Console của bên thứ nhất.
Chọn target, location_code, language_code và limit rõ ràng cho từng request được phê duyệt riêng. Bắt đầu với limit nhỏ như 5 và giữ thị trường cùng ngôn ngữ nhất quán. Hướng dẫn request đầu tiên này không lặp qua các domain, không lấy thêm trang và không coi xếp hạng vắng mặt là 0.
Hãy cung cấp cho nó Skill thiết lập của SandBase, URL endpoint chính xác này và domain mục tiêu của bạn. Giữ key trong biến môi trường cục bộ. Yêu cầu nó kiểm tra hợp đồng và giá trước khi chạy: theo kiểm tra vào 2026-11-08, base $0.0126 dùng usage.provider_reported_cost, không phải một giá cuối cố định cho mọi request.