Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

DataForSEO Google Ranked Keywords

API 文件
https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/ranked_keywords/live

Returns all Google search keywords for which a specified domain currently ranks. Provides ranking keyword metrics and organic search performance data.

價格
自 $0.0126 起美元/次呼叫
方法
POST
回應
JSON
參數
0 個必填 · 4 個選填

Playground

輸入
Target domain or page, e.g. "nike.com".
Maximum number of results (up to 100).
Location code, e.g. 2840 for the United States.
Language code, e.g. "en".
輸出範例
回應outputs · 728 B · 33 行
[
  {
    "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"
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

DataForSEO Google Ranked Keywords API

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.

Use cases

  • See which keywords bring a competitor its organic traffic.
  • Find pages on your site that rank on page two and are worth improving.
  • Estimate a domain's organic visibility by summing etv.

Request

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.

Parameters

NameTypeRequiredDescription
language_codestringNoLanguage code, e.g. "en".
limitintegerNoMaximum number of results (up to 100).
location_codeintegerNoLocation code, e.g. 2840 for the United States.
targetstringNoTarget domain or page, e.g. "nike.com".

Example response

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
                }
              }
            }
          ]
        }
      ]
    }
  ]
}

Response fields

FieldMeaning
items[].keyword_data.keywordThe ranking keyword.
items[].keyword_data.keyword_infoSearch volume, CPC, competition and monthly searches for the keyword.
items[].ranked_serp_element.serp_item.rank_group / rank_absolutePosition among organic results / among all SERP elements.
items[].ranked_serp_element.serp_item.urlThe page of the target that ranks.
items[].ranked_serp_element.serp_item.etvEstimated monthly traffic from this keyword.
total_countTotal ranking keywords; page with offset and limit (max 100).

Notes

  • Use filters and order_by from the official schema, e.g. ["ranked_serp_element.serp_item.rank_group", "<=", 10] for top-10 rankings only.
  • Positions come from the latest database update, not a live search. For live positions use Google Organic SERP.

Pricing

Billed at the actual cost of each call, about $0.0126 for the request above. Failed calls are not charged.

Start with one competitor domain

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.

Connect one request and review its cost

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.

探索更多

相關 APIs

所有 APIs
API價格回應
DataForSEO每次呼叫 $0.0126 起JSON
DataForSEO每次呼叫 $0.0102 起JSON
DataForSEO每次呼叫 $0.000724 起JSON
DataForSEO每次呼叫 $0.004JSON
DataForSEO每次呼叫 $0.00162 起JSON
DataForSEO每次呼叫 $0.001105 起JSON

問題

常見問題

我要如何使用 DataForSEO Google Ranked Keywords API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/ranked_keywords/live。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

DataForSEO Google Ranked Keywords API 的費用是多少?

每次起 $0.0126,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

DataForSEO Google Ranked Keywords API 接受哪些參數?

不需要任何參數。 選填:target (string), limit (integer), location_code (integer) 和 language_code (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

DataForSEO Google Ranked Keywords API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 DataForSEO 開發者帳號或 API 金鑰嗎?

不需要。DataForSEO Google Ranked Keywords 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 DataForSEO API 存取權。

Ranked Keywords 的結果代表即時的 Google 搜尋嗎?

不是。它們是來自 DataForSEO Labs 資料庫的排名紀錄。live 後綴描述的是即時請求方法。這些紀錄既不是最新的 SERP 檢查,也不是第一方 Search Console 點擊。

我要如何用相同設定比較網域?

對每個已單獨核准的請求,都明確指定 target、location_code、language_code 與 limit。先用像 5 這樣的小 limit,並保持市場與語言一致。這份第一次請求指南不會迴圈處理網域、不會抓取額外頁面,也不會把缺少的排名視為 0。

我的 agent 應該如何設定並為這個請求定價?

請提供 SandBase 設定 Skill、這個精確的 endpoint URL,以及你的目標網域。把 key 放在本機環境變數中。請要求它在執行前檢查契約與價格:如 2026-11-08 所查,基礎 $0.0126 使用的是 usage.provider_reported_cost,不是每次請求都固定的最終價格。