跳到导航

从种子词扩词并导出含搜索量、难度和月度趋势的选题表

以 Markdown 格式查看

手头只有几个大方向词、又不想订阅包月 SEO 套件时,先用 POST /v1/seo/keyword-ideas 扩展候选长尾词,在本地剔除无关词,再把精选词表批量送进 POST /v1/seo/keyword-overview 补齐 monthly_searches 月度趋势,最终导出一张可直接排序排期的选题 CSV。

准备输入与费用控制

  • 输入:1–20 个种子词(每个最多 80 字符)、目标市场 country(如 us)与 language(如 en),不支持中国大陆(cn)。
  • 费用控制:keyword-ideas 和 keyword-overview 均为每次基础费 $0.018 + 每行 $0.0003。先用 limit: 50 扩词最高花费 $0.033,确认方向对路后再查月度趋势。详见 BeatAPI 价格页。

1. 限定 limit 扩展种子词

如果你已经在 Claude Code 或 Cursor 里接好 BeatAPI MCP,可以直接把整条任务交给 Agent:

调用 BeatAPI data:seo.keyword_ideas(country: "us",language: "en",limit: 50)扩展 ["redis cluster", "redis sentinel", "redis failover"]。去掉跑题词后,挑前 25 个词调用 data:seo.keyword_overview 查 monthly_searches。导出 CSV(缺失搜索量留空),并汇总 billed_rows 和 usage.price_usd。

用 HTTP 直接执行时,向 POST https://api.beatapi.io/v1/seo/keyword-ideas 发请求(附带 BeatAPI Bearer 鉴权和 Idempotency-Key):

curl -sS https://api.beatapi.io/v1/seo/keyword-ideas \
-H "Authorization: Bearer $BEATAPI_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: seo-ideas-redis-2026-11-23-p0" \
-d '{"keywords":["redis cluster","redis sentinel","redis failover"],"country":"us","language":"en","limit":50,"offset":0}' \
-o keyword-ideas-p0.json

保存原始 JSON 以及 request_id、billed_rows、usage.price_usd。若前 50 条相关度高,再按 offset: 50 翻页;一旦候选词开始跑偏立即停止翻页。

2. 本地初筛后再查月度趋势

按 keyword、search_volume、keyword_difficulty、cpc_usd 和 intent 做一轮本地筛选:

  • 去掉不打算覆盖的竞品品牌词和同义重复词。
  • 缺失的 search_volume 或 keyword_difficulty 留空,不要填成 0。
  • 按每批最多 100 个精选词整理给下一步。

3. 批量拉取 12 个月搜索趋势

把精选词(每批 1–100 个,系统自动转小写并去重)传给 POST https://api.beatapi.io/v1/seo/keyword-overview:

{
"keywords": [
"redis cluster setup",
"redis sentinel vs cluster",
"redis automatic failover"
],
"country": "us",
"language": "en"
}

返回记录会新增 monthly_searches[](year、month、search_volume)和 updated_at:

{
"object": "seo.keyword_overview",
"request_id": "task_xxx",
"results": [
{
"keyword": "redis cluster setup",
"search_volume": 590,
"cpc_usd": 15.62,
"keyword_difficulty": 15,
"intent": "informational",
"monthly_searches": [{ "year": 2026, "month": 9, "search_volume": 590 }]
}
],
"billed_rows": 25,
"usage": { "price_usd": "0.0255" }
}

示例花费小计

步骤接口示例用量费用
扩展 3 个种子词POST /v1/seo/keyword-ideas1 次调用,50 行$0.0330
拉取 12 个月趋势POST /v1/seo/keyword-overview1 次调用,25 个精选词$0.0255
合计2 次调用75 个计费行$0.0585

参数校验拦截(400)与服务端失败(503)均不扣费。

4. 导出选题 CSV 并留存花费记录

按以下列导出 UTF-8 CSV:

列名来源字段说明
keywordkeyword小写化后的关键词
intentintent如 informational、commercial
search_volumesearch_volume缺失留空(表示未知,非零)
keyword_difficultykeyword_difficultyBeatAPI 0–100 独立口径,勿与其他工具直比
cpc_usdcpc_usd付费投放参考单价
trend_3m由 monthly_searches[] 计算对比近 3 个月与前 3 个月判断走势
updated_atupdated_at数据刷新时间

遇到 503 可按退避重试(400 与 503 均不扣费);若 200 之后本地落盘失败,用 GET /v1/tasks/{request_id} 免费取回结果,不必重新付费查询。

相关文档