serp_rank
查看某域名针对某个关键词在 Google 自然结果中的排名——真实的 SERP 排名位置,而非 Custom Search 的排序。返回目标的自然排名、排名 URL 以及其占据的每一个位置。由 DataForSEO 提供支持。
使用场景
关键词排名追踪
持续监控您的页面在目标关键词上的排名,及早发现排名下滑
竞争对手 SERP 监控
追踪竞争对手域名在对您业务至关重要的关键词上的排名
SEO 排名审计
审计一组关键词的自然排名,以确定页面优化和内容工作的优先级
本地与设备 SEO 检查
按地理位置以及 desktop 与 mobile 对比排名,从而发现地域或设备差异
排名追踪仪表盘
将每日自然排名数据接入您自己的仪表盘和报表流水线
Endpoint
/api/v1/tools/serp_rankParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
keyword | string | Required | - | 要查询排名的搜索关键词 Example: managed wordpress hosting |
target | string | Required | - | 要在结果中定位的域名或 URL Example: example.com |
depth | number | Optional | 100 | 要扫描的结果数量(10-200;100 = 1 页费用) Example: 100 |
device | string | Optional | desktop | 要模拟的设备:"desktop" 或 "mobile" Example: mobile |
location_name | string | Optional | United States | 地理位置,例如 'United States' 或 'London,England,United Kingdom' Example: United States |
location_code | number | Optional | - | 数字形式的 DataForSEO 地理位置代码(会覆盖 location_name) Example: 2840 |
language_code | string | Optional | en | 语言代码(例如 'en') Example: en |
请求示例
curl -X POST https://crawlforge.dev/api/v1/tools/serp_rank \
-H "X-API-Key: cf_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "managed wordpress hosting",
"target": "example.com",
"depth": 100,
"device": "desktop",
"location_name": "United States",
"language_code": "en"
}'响应示例
{ "success": true, "data": { "keyword": "managed wordpress hosting", "target": "example.com", "location": "United States", "language": "en", "device": "desktop", "depth": 100, "found": true, "rank": 3, "url": "https://example.com/", "all_positions": [ 3, 27 ], "results_scanned": 100, "checked_at": "2026-07-01T14:30:00Z" }, "credits_used": 5, "credits_remaining": 995, "processing_time": 1450}data.rank最佳自然排名位置(如果在 depth 范围内未找到目标,则为 null)data.url占据最佳排名位置的 URLdata.all_positions目标在扫描的 depth 范围内占据的每一个自然排名位置data.found目标是否出现在扫描的 depth 范围内credits_used每次查询固定消耗 5 credits(100 条结果 = 1 页费用)processing_time查询通常在 1-2 秒内完成错误处理
缺少 keyword 或 target(400 Bad Request)
keyword 和 target 均为必填项。请提供搜索关键词以及域名或 URL。
depth 无效(400 Bad Request)
depth 必须介于 10 到 200 之间。更大的 depth 会扫描更多结果。
device 无效(400 Bad Request)
device 必须为 "desktop" 或 "mobile"。
配额超限(429 Too Many Requests)
SERP 提供商设有每日限额。升级您的套餐 以获得更高配额。
Credit 费用
包含内容:
真实的自然 SERP 排名位置(而非 Custom Search 排序)
排名 URL 以及目标占据的每一个位置
地理位置和语言定向
desktop 和 mobile 设备模拟
扫描深度最多 200 条结果
套餐推荐:
Free 套餐: 1,000 个一次性试用 credits = 200 次查询
Hobby 套餐: 5,000 credits = 1,000 次查询($19/mo)
Professional 套餐: 50,000 credits = 10,000 次查询($99/mo)