页面分析
POST
/v3/on_page/pages获取已爬取任务的页面级 SEO 指标:title、meta description、H1、canonical、状态码、内部/外部链接数等。
参考价:约 ¥0.0040 / 次(实际以请求返回为准)
请求体
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | string | 是 | task_post 返回的任务 ID |
| limit | integer | 否 | 返回页数 |
| filters | array | 否 | 过滤,如 status_code=404 |
请求示例
curl
curl -X POST "https://api.seermartech.cn/v3/on_page/pages" \
-H "Authorization: Bearer smt_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '[{"id": "YOUR_TASK_ID", "limit": 50}]'Python
import requests
resp = requests.post(
"https://api.seermartech.cn/v3/on_page/pages",
headers={"Authorization": "Bearer smt_live_YOUR_KEY"},
json=[{"id": "YOUR_TASK_ID", "limit": 50}],
timeout=120,
)
for page in resp.json()["tasks"][0]["result"][0]["items"][:10]:
meta = page.get("meta", {})
print(meta.get("title"), page.get("status_code"))TypeScript
const resp = await fetch("https://api.seermartech.cn/v3/on_page/pages", {
method: "POST",
headers: { Authorization: "Bearer smt_live_YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify([{ id: "YOUR_TASK_ID", limit: 50 }]),
});
console.log((await resp.json()).tasks[0].result[0].items.slice(0, 10));常见检查项
| 问题 | 过滤/字段 |
|---|---|
| 缺失 title | meta.title 为空 |
| 重复 title | 聚合统计 |
| 404 页面 | status_code = 404 |
| 缺失 canonical | meta.canonical 为空 |