DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
OnPage API 摘要
按 id 获取某次爬取的状态与概要指标。返回 crawl_progress、crawl_status、crawl_gateway_address、crawl_stop_reason、domain_info 和 page_metrics。采用 DataForSEO 的信封结构:数据位于 tasks[0].result,结果状态位于 tasks[0].status_code——被拒绝的请求仍会返回 HTTP 200。这也是判断爬取是否完成的方式——在读取此处任何其他端点之前,先轮询直到 crawl_progress 为 finished,否则你会读到看似真实的局部结果。💰 上游免费:查询已完成的爬取不产生费用,只有爬取本身计费。
计费参考
- 计量方式:按上报的响应成本计量。
- 参考请求估算:0.012 美元。
- 参考客户倍率:1.0。不得对已结算的客户金额再次应用。
仅供参考的元数据,不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。
- 类型: object | null · Response36Afe1097B20_OnPageSummaryResponseInfo200
- 类型: number | null 格式: doublecost
任务总费用,美元
- 类型: integer | nullstatus
_code 通用状态码 完整响应码列表见此处
- 类型: string | nullstatus
_message 通用信息性消息 完整的一般信息性消息列表见此处
- 类型: array (object | null)[] | nulltasks
任务数组
- 类型: object | null · Response36Afe1097B20_OnPageSummaryTaskInfo
- cost类型: number | null 格式: double
任务总费用,美元
- data类型: object | null
包含你在 POST 请求中指定的相同参数
- property类型: object | null
Name
- id类型: string | null
任务标识符 我们系统中 UUID 格式的唯一任务标识符
- path类型: array (string | null)[] | null
URL 路径
- result类型: array (object | null)[] | null
结果数组
- crawl类型: string | null
_gateway _address - crawl类型: string | null
_progress 抓取会话的状态
可能的值:in_progress、finished - crawl类型: object | null · Response36Afe1097B20_CrawlStatusInfo
_status 抓取会话的详细信息
- max类型: integer | null 格式: int64
_crawl _pages 爬取页面数上限 表示设置任务时指定的 max_crawl_pages 限制
- pages类型: integer | null 格式: int64
_crawled 已爬取的页面数量
- pages类型: integer | null 格式: int64
_in _queue 当前在爬取队列中的页面数量
- crawl类型: string | null
_stop _reason - domain类型: object | null · Response36Afe1097B20_DomainInfo
_info 域名范围信息
有关目标域和抓取过程的页面信息- canonicalization类型: integer | null
_status _code 规范化页面返回的状态码
我们的爬虫尝试通过 IP 访问网站时对服务器行为的检查;
大多数情况下,建议规范化页面返回301或302状态码 - checks类型: object | null
网站检查
与网站相关的其他页内检查- property类型: boolean | null
Name
- cms类型: string | null
内容管理系统
网站上识别到的内容管理系统generator元标签的内容
数据取自第一个返回 200 响应码的随机页面
如果我们的爬虫无法识别内容管理系统,该值将为null - crawl类型: string | null
_end 爬取结束时间
爬取完成的日期和时间
采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
示例:2019-11-15 12:57:46 +00:00
注意:仅在"crawl_progress"为"finished"时提供有效信息
如果"crawl_progress"为in_progress,该值将为null - crawl类型: string | null
_start 爬取开始时间
网站被送去爬取的日期和时间
采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
示例:2019-11-15 12:57:46 +00:00 - directory类型: integer | null
_browsing _status _code 目录返回的状态码
目标网站上目录页面返回的状态码
大多数情况下,建议目录返回403或401状态码 - extended类型: string | null
_crawl _status 爬取状态和错误
表示网站未被爬取的原因;
可取以下值:no_errors:未检测到爬取错误;site_unreachable:我们的爬虫无法访问网站,因而无法获取状态码;invalid_page_status_code:首个被爬取页面的状态码 >= 400;forbidden_meta_tag:首个被爬取页面包含 <meta robots="noindex"> 标签;forbidden_robots:robots.txt 禁止爬取该页面;forbidden_http_header:页面 HTTP 头包含 "X-Robots-Tag: noindex" ;too_many_redirects:首个被爬取页面有超过 10 次重定向;unknown:原因未知 - ip类型: string | null
域名 IP 地址
- main类型: string | null
_domain 根域名
- name类型: string | null
域名
- page类型: integer | null
_not _found _status _code 不存在的页面返回的状态码
大多数情况下,建议服务器返回 404 响应码 - server类型: string | null
网站服务器
网站上检测到的服务器版本server头的内容
信息取自响应码为 200 的第一个页面 - ssl类型: object | null · Response36Afe1097B20_SslInfo
_info SSL 证书信息
网站上检测到的安全套接层协议信息- certificate类型: string | null
_expiration _date SSL 证书到期日期
SSL 证书到期的日期和时间
采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
示例:2019-11-15 12:57:46 +00:00 - certificate类型: string | null
_hash SSL 证书哈希
SSL 证书哈希函数的版本 - certificate类型: string | null
_issuer SSL 证书颁发机构
签发检测到的 SSL 证书的实体 - certificate类型: string | null
_subject SSL 证书主体
与公钥关联的实体 - certificate类型: integer | null
_version - valid类型: boolean | null
_certificate SSL 证书有效期
指示网站上检测到的 SSL 证书是否未过期、未暂停、未被吊销且有效
- total类型: integer | null 格式: int64
_pages 已爬取页面总数
已爬取页面的总数 - total类型: integer | null 格式: int64
_uncrawlable _resources 无法爬取资源总数
无法爬取的资源总数;
当资源的实际内容类型与爬虫预期的内容类型不匹配时,该资源即被视为无法爬取 - www类型: integer | null
_redirect _status _code 重定向状态码
www 到非 www 重定向的状态码
大多数情况下,建议该重定向返回301状态码
- page类型: object | null · Response36Afe1097B20_PageMetrics
_metrics 页面特定信息
目标网站页面的指标信息- broken类型: integer | null
_links 损坏链接数
目标网站所有已抓取页面中的损坏链接数 - broken类型: integer | null
_resources 损坏资源数
链接损坏的图片和其他资源数量 - checks类型: object | null
页面特定的页面检查
- property类型: integer | null 格式: int64
Name Signed 64-bit integers (long type).
- duplicate类型: integer | null
_content 内容重复的页面数
- duplicate类型: integer | null
_description 描述重复的页面数
- duplicate类型: integer | null
_title 标题重复的页面数
- links类型: integer | null
_external 外部链接数
指向其他网站的链接数 - links类型: integer | null
_internal 内部链接数
指向目标网站内其他页面的链接数 - links类型: integer | null
_relation _conflict 目标网站上可能存在冲突的链接数
例如,如果"links_relation_conflict": 2,则目标网站通过至少一个带rel="nofollow"属性的内部链接以及至少一个 dofollow 链接引用同一来源 - non类型: integer | null
_indexable - onpage类型: number | null
_score - redirect类型: integer | null
_loop 起始和结束 URL 相同的重定向链数
目标 URL 重定向回原始 URL 的重定向链数量
- result类型: integer | null 格式: int64
_count result 数组中的元素数
- status类型: integer | null
_code 任务的状态码 由 DataForSEO 生成,范围如下:10000-60000 完整响应码列表见此处
- status类型: string | null
_message 任务的信息性消息 完整的一般信息性消息列表见此处
- time类型: string | null
执行时间,秒
- 类型: integer | null 格式: int64tasks
_count tasks 数组中的任务数
- 类型: integer | null 格式: int64tasks
_error tasks 数组中返回错误的任务数
- 类型: string | nulltime
总执行时间,秒
- 类型: string | nullversion
API 的当前版本
application/json - 400
无法处理该请求。请检查请求参数。
- 401
需要有效的 Felo API 密钥。
- 402
由于未满足计费要求,请求无法继续。
- 403
该账户无权执行此操作。
- 429
已达到请求或支出限额。
- 502
服务无法完成该请求。
- 503
API 或计费服务暂时不可用。
- 504
服务在处理请求时超时。
- default
错误响应;上游透传响应可能采用提供方格式
application/json
curl https://openapi.felo.ai/v1/beta/dataforseo/on_page/summary/00000000-0000-0000-0000-000000000000 \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"version": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"tasks_count": null,
"tasks_error": null,
"tasks": [
{
"id": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"result_count": null,
"path": [
null
],
"data": null,
"result": [
{
"crawl_progress": null,
"crawl_status": {
"max_crawl_pages": null,
"pages_in_queue": null,
"pages_crawled": null
},
"crawl_gateway_address": null,
"crawl_stop_reason": null,
"domain_info": {
"name": null,
"cms": null,
"ip": null,
"server": null,
"crawl_start": null,
"crawl_end": null,
"extended_crawl_status": null,
"ssl_info": "[Max Depth Exceeded]",
"checks": null,
"total_pages": null,
"total_uncrawlable_resources": null,
"page_not_found_status_code": null,
"canonicalization_status_code": null,
"directory_browsing_status_code": null,
"www_redirect_status_code": null,
"main_domain": null
},
"page_metrics": {
"links_external": null,
"links_internal": null,
"duplicate_title": null,
"duplicate_description": null,
"duplicate_content": null,
"broken_links": null,
"broken_resources": null,
"links_relation_conflict": null,
"redirect_loop": null,
"onpage_score": null,
"non_indexable": null,
"checks": null
}
}
]
}
]
}