Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

DataForSEO Labs Google Keyword Suggestions

API 文档
https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/keyword_suggestions/live

Returns Google keyword suggestions alongside relevant search metrics from DataForSEO Labs. Enables discovery of related search terms and query opportunities.

价格
起价 $0.0126美元 / 次调用
方法
POST
响应
JSON
参数
0 个必填 · 4 个可选

Playground

输入
Search query.
Maximum number of results (up to 100).
Location code, e.g. 2840 for the United States.
Language code, e.g. "en".
输出示例
响应outputs · 732 B · 33 行
[
  {
    "cost": 0,
    "status_code": 20000,
    "status_message": "Ok.",
    "tasks": [
      {
        "cost": 0,
        "data": {
          "api": "dataforseo_labs",
          "function": "keyword_suggestions",
          "se_type": "google"
        },
        "id": "08200930-2190-0399-0000-84845f452c7b",
        "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.0082 sec.",
    "version": "0.1.20260806"
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

DataForSEO Labs Google Keyword Suggestions API

Long-tail keyword suggestions that contain your seed keyword, each with search volume, CPC, competition, keyword difficulty and search intent, from the DataForSEO Labs database.

Use cases

  • Expand one seed keyword into long-tail variants for content planning.
  • Filter suggestions by volume or difficulty to find easy wins.

Request

curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/keyword_suggestions/live" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "running shoes", "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
keywordstringNoSearch query.
language_codestringNoLanguage code, e.g. "en".
limitintegerNoMaximum number of results (up to 100).
location_codeintegerNoLocation code, e.g. 2840 for the United States.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "status_code": 20000,
  "tasks": [
    {
      "status_code": 20000,
      "result": [
        {
          "se_type": "google",
          "location_code": 2840,
          "language_code": "en",
          "total_count": 87287,
          "items_count": 5,
          "items": [
            {
              "keyword": "sneaker running shoes",
              "keyword_info": {
                "search_volume": 301000,
                "cpc": 1.09,
                "competition": 1,
                "competition_level": "HIGH",
                "low_top_of_page_bid": 0.47,
                "high_top_of_page_bid": 2.17
              },
              "keyword_properties": {
                "keyword_difficulty": 43,
                "core_keyword": "sneakers shoes running"
              },
              "search_intent_info": {
                "main_intent": "transactional"
              }
            }
          ]
        }
      ]
    }
  ]
}

Response fields

FieldMeaning
tasks[].result[].items[]One row per keyword.
keywordThe keyword.
keyword_info.search_volumeAverage monthly Google searches (last 12 months).
keyword_info.cpc / competition_levelAverage cost per click in USD and Google Ads competition (LOW/MEDIUM/HIGH).
keyword_info.monthly_searches[]Searches per month for the last 12 months.
keyword_properties.keyword_difficultyRanking difficulty 0-100 for the top 10 organic results.
search_intent_info.main_intentinformational, navigational, commercial or transactional.
total_countMatching keywords in the database; page with offset.

Notes

  • Suggestions always contain the seed phrase. For related ideas that do not, use Keyword Ideas.
  • limit is capped at 100 per call; page with offset.

Pricing

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

Start with one seed keyword

Use Keyword Suggestions when you have a topic and want candidate queries from the DataForSEO Labs database. Start with keyword, limit, location_code and language_code: for example, running shoes, 5, 2840 and en. The last two select the United States and English; choose the market and language you actually want to study. The current SandBase field description caps limit at 100. A larger limit is not a guarantee of more relevant or available results.

The current schema exposes these four fields and allows additional properties; it is no longer an empty input form. Advanced filters and pagination need their own validation against the current endpoint and provider documentation. This first request does not automatically fetch more pages. Search volume and difficulty are research estimates, not predictions of your clicks or revenue.

If you already have a competitor domain instead, inspect Ranked Keywords.

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.004 每次调用JSON
DataForSEO每次调用从 $0.00162 起JSON
DataForSEO每次调用从 $0.001105 起JSON

问题

常见问题

如何使用 DataForSEO Labs Google Keyword Suggestions API?

向 https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/keyword_suggestions/live 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

DataForSEO Labs Google Keyword Suggestions API 的价格是多少?

起价每次调用 $0.0126,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

DataForSEO Labs Google Keyword Suggestions API 接受哪些参数?

无需参数。 可选:keyword (string), limit (integer), location_code (integer) 和 language_code (string)。 Parameters 表和本页的 Playground 列出了每个字段。

DataForSEO Labs Google Keyword Suggestions API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 DataForSEO 开发者账户或 API key 吗?

不需要。DataForSEO Labs Google Keyword Suggestions 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 DataForSEO API 访问权限。

关键词建议应该先用哪些字段?

发送一个关键词,并显式指定 location_code、language_code 和较小的 limit。例如,使用 running shoes、2840、en 和 5,会请求一个美国英语样本。当前表单暴露了四个字段,并将 limit 描述为最多 100;允许额外属性,但高级选项需要单独校验。

$0.0126 是每次请求的最终费用吗?

不是。2026-11-08 时基础价格是 $0.0126,公式是 usage.provider_reported_cost。执行前请重新确认当前定价,执行后再查看账单记录。这只是目录审查,不是计费测试,也不保证调用免费。

一次完成的调用就能证明关键词结果可用吗?

不能。先读取已完成的 SandBase 响应中的 outputs[0].data,再检查 DataForSEO 的 overall 和 task 状态以及结果结构。缺失值应保留为未知。Volume 和 difficulty 是研究估算,不是流量预测。