Ahrefs 关键词 API
获取任意搜索词的 Ahrefs 关键词难度指标:难度分数(0-100),以及一个页面进入前 10 名所需的引用域名数量,以标准化 JSON 返回。
US$5.01/千次请求,按请求付费,无需订阅。
Keyword Difficulty
62Hard
Volume
14,800
US
CPC
$12.40
Domains to rank
38
Top 10 median
{"keyword": "seo tools","country": "us","difficulty": 62,"referringDomainsToRank": 38,"searchVolume": 14800,"cpcUsd": 12.4,"updatedUtc": 1735603200}
价格
Ahrefs 关键词 API 价格
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- keywordstring
seo tools
要分析的搜索词(例如 "seo tools")。
- countrystring
us
限定搜索量和难度范围的两字母国家代码(例如 us、gb、de)。
响应
JSON,每个字段一个示例值。
Keyword-difficulty records: the difficulty score and the referring-domain gap needed to rank in the top 10. Populated whenever the provider has data for the entity.
- countrystring
us
Two-letter country code the metrics are scoped to.
- cpcUsdnumber
12.4
Ahrefs' estimated paid-search cost per click in USD.
- difficultyinteger
62
Ahrefs Keyword Difficulty, 0-100.
- keywordstring
seo tools
Populated whenever the provider has data for the entity.
- referringDomainsToRankinteger
38
Estimated number of referring domains a page needs to rank in the top 10 for this keyword.
- searchVolumeinteger
14800
Average monthly search volume for the keyword in the requested country.
- updatedUtcnumber
1735603200
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
常见问题
关于 Ahrefs 关键词 API
AnyAPI 的 Ahrefs 关键词 API 只需一次 POST 请求 /v1/run/ahrefs.keywords,就以统一格式的 JSON 返回 Ahrefs 数据。获取任意搜索词的 Ahrefs 关键词难度指标:难度分数(0-100),以及一个页面进入前 10 名所需的引用域名数量,以标准化 JSON 返回。无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千次请求 US$5.01 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Ahrefs 关键词 API 调用中有 99.3% 成功,响应时间中位数为 9.3 秒,共测量 1,773 次调用。