DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
反向链接
指向同一 target 的各条入站链接,每条链接占一行。返回 total_count、items_count、items 以及用于分页的 search_after_token——翻过前几页后请改用该令牌,而不要用 offset。mode 和 custom_mode 控制分组,backlinks_status_type 选择实时、丢失或全部。若只需要计数而非逐行记录,请使用 post_dataforseo_backlinks_summary_live;若要查看分组后的链接域名,请使用 post_dataforseo_backlinks_referring_domains_live。
计费参考
- 计量方式:按上报的响应成本计量。
- 参考请求估算:0.06 美元。
- 参考客户倍率:1.0。不得对已结算的客户金额再次应用。
仅供参考的元数据,不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。
- 类型: array (object | null)[]
- backlinks类型: string | null
_status _type 设置要返回和计数的反向链接
可选字段
可使用此字段选择要为target返回并用于聚合指标的反向链接;
可能的值:all- 将返回并计数所有反向链接;live- 将返回并计数上次检查中发现的反向链接;lost- 将返回并计数丢失的反向链接;默认值:
live - custom类型: object | null
_mode 详细结果分组类型
可选字段
使用此对象可获取每个field指定数量的反向链接
如果使用custom_mode,则mode将被忽略
示例:"custom_mode": {"field": "domain", "value": 100}- property类型: object | null
Name
- exclude类型: boolean | null
_internal _backlinks 表示是否从结果中排除从子域名指向
target的内部反向链接
可选字段
如果设为true,结果将不包含来自与target同域名的子域名的内部反向链接数据
如果设为false,结果将包含内部链接
默认值:true - filters类型: array (object | null)[] | null
结果筛选参数数组
可选字段
可同时添加多个筛选条件(最多 8 个)
应在条件之间设置逻辑运算符and、or
支持以下运算符:=,<>,in,not_in,like,not_like,ilike,not_ilike,regex,not_regex,match,not_match
可将%运算符与like、not_like配合使用,匹配任意长度(含零个字符)的字符串
示例:["rank",">","80"][["page_from_rank",">","55"],
"and",
["dofollow","=",true]][["first_seen",">","2017-10-23 11:31:45 +00:00"],
"and",
[["anchor","like","%seo%"],"or",["text_pre","like","%seo%"]]]空对象 - include类型: boolean | null
_subdomains 表示
target的子域名是否包含在搜索中
可选字段
如果设为false,将忽略子域名
默认值:true - limit类型: integer | null
返回的反向链接数量上限
可选字段默认值:
100
最大值:1000 - mode类型: string | null
结果分组类型
可选字段
可用的分组类型:as_is- 返回所有反向链接one_per_domain- 每个域名返回一条反向链接one_per_anchor- 每个锚文本返回一条反向链接默认值:
as_is - offset类型: integer | null
返回的反向链接在结果数组中的偏移量
可选字段默认值:
0
如果指定10,结果数组中的前十条反向链接将被跳过,并返回后续反向链接的数据;
注意:最大值为20,000,如需偏移更多结果,请使用search_after_token - order类型: array string[] | null
_by 结果排序规则
可选字段
可使用与filters数组相同的值对结果排序
可用的排序类型:asc- 结果按升序排列desc- 结果按降序排列
应使用逗号设置排序类型
示例:["rank,desc"]
注意,单个请求中最多可设置三条排序规则
应使用逗号分隔多条排序规则
示例:["domain_from_rank,desc","page_from_rank,asc"] - rank类型: string | null
_scale - search类型: string | null
_after _token 后续请求的令牌
可选字段
在每个请求响应的对应字段中提供;
使用此参数可避免在单个请求中尝试获取超过20,000条结果时超时;
通过指定响应数组中的唯一search_after_token值,可获取初始任务的后续结果;search_after_token值对每个后续任务都是唯一的;
注意:如果请求中指定了search_after_token,其他所有参数都应与此前的请求完全相同 - tag类型: string | null
用户自定义任务标识符
可选字段
字符数上限为 255
可使用此参数标识任务,并将其与结果对应
可在响应的data对象中找到指定的tag值 - target类型: string
要获取反向链接的域名、子域名或网页
必填字段
域名或子域名不应包含https://和www.
网页应使用绝对 URL(包含http://或https://)
- 类型: object | null · Response36Afe1097B20_BacklinksBacklinksLiveResponseInfo200
- 类型: number | null 格式: doublecost
任务总费用,美元
- 类型: integer | nullstatus
_code 通用状态码 完整响应码列表见此处
- 类型: string | nullstatus
_message 通用信息性消息 完整的一般信息性消息列表见此处
- 类型: array (object | null)[] | nulltasks
任务数组
- 类型: object | null · Response36Afe1097B20_BacklinksBacklinksLiveTaskInfo
- 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
结果数组
- custom类型: object | null
_mode POST 数组中指定的自定义模式
- property类型: object | null
Name
- items类型: array (object | null)[] | null
包含相关的反向链接和引用域名数据
- alt类型: string | null
图片的替代文本
如果反向链接type不是 image,此字段将为null - anchor类型: string | null
反向链接的锚文本
- attributes类型: array (string | null)[] | null
引用链接的链接属性
示例:nofollow - backlink类型: integer | null
_spam _score - dofollow类型: boolean | null
表示反向链接是否为 dofollow
如果为false,则该反向链接为 nofollow - domain类型: string | null
_from 指向目标域名或网页的域名
- domain类型: string | null
_from _country 引用域名的 ISO 国家代码
- domain类型: string | null
_from _ip 引用域名的 IP 地址
- domain类型: boolean | null
_from _is _ip 表示该域名是否为 IP
如果为true,则该域名为 IP 地址形式,没有域名 - domain类型: array (string | null)[] | null
_from _platform _type 引用域名的平台类型
可能的值:
cms、blogs、ecommerce、message-boards、wikis、news、organization - domain类型: integer | null
_from _rank - domain类型: string | null
_to 反向链接所指向的域名
- first类型: string | null
_seen 我们的爬虫首次发现该反向链接的日期和时间
采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
示例:2019-11-15 12:57:46 +00:00 - group类型: integer | null 格式: int64
_count 表示来自该域名的反向链接总数
例如,如果mode设为one_per_domain,此字段将表示来自该域名的反向链接总数 - image类型: string | null
_url 图片的 URL
指向原始资源或 DataForSEO 存储中该图片的 URL(原始来源不可用时) - indirect类型: array (object | null)[] | null
_link _path 间接链接路径
表示通向url_to的一个 URL 或一系列 URL- status类型: integer | null
_code 通用状态码
可在此处找到响应码的完整列表
注意:我们强烈建议设计必要的系统来处理相关的异常或错误情况 - type类型: string | null
元素类型
- url类型: string | null
间接链接 URL
- is类型: boolean | null
_broken 表示反向链接是否已失效
如果为true,则该反向链接指向响应 4xx 或 5xx 状态码的页面 - is类型: boolean | null
_indirect _link 表示反向链接是否为间接链接
如果为true,则该反向链接是指向以下页面的间接链接:该页面重定向到url_to,或指向某个规范页面 - is类型: boolean | null
_lost 表示反向链接是否已被移除
如果为true,则该反向链接或整个页面已被移除 - is类型: boolean | null
_new 表示反向链接是否为新增
如果为true,则该反向链接是在我们的爬虫上一次访问该页面时发现的 - item类型: string | null
_type 链接类型
可能的值:anchor、image、meta、canonical、alternate、redirect - last类型: string | null
_seen 我们的爬虫最近一次访问该反向链接的日期
采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
示例:2019-11-15 12:57:46 +00:00 - links类型: integer | null 格式: int64
_count 在引用页面上发现的相同反向链接数量
- original类型: boolean | null
表示我们的爬虫首次访问时该反向链接是否已存在于引用页面上
- page类型: string | null
_from _encoding 引用页面的字符编码
示例:utf-8 - page类型: integer | null
_from _external _links 引用页面上发现的外部链接数量
- page类型: integer | null
_from _internal _links 引用页面上发现的内部链接数量
- page类型: string | null
_from _language 引用页面的语言
采用 ISO 639-1 格式
示例:en - page类型: integer | null
_from _rank - page类型: integer | null
_from _size 引用页面的大小,单位为字节
示例:63357 - page类型: integer | null
_from _status _code 引用页面返回的 HTTP 状态码
示例:200 - page类型: string | null
_from _title 引用页面的标题
- prev类型: string | null
_seen 我们的爬虫最近一次访问该反向链接之前的日期
采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
示例:2019-11-15 12:57:46 +00:00 - rank类型: integer | null
- ranked类型: object | null · Response36Afe1097B20_RankedKeywordsInfo
_keywords _info - page类型: integer | null 格式: int64
_from _keywords _count _top _10 Signed 64-bit integers (long type).
- page类型: integer | null 格式: int64
_from _keywords _count _top _100 Signed 64-bit integers (long type).
- page类型: integer | null 格式: int64
_from _keywords _count _top _3 Signed 64-bit integers (long type).
- semantic类型: string | null
_location - text类型: string | null
_post 锚文本之后的片段
- text类型: string | null
_pre 锚文本之前的片段
- tld类型: string | null
_from 引用 URL 的顶级域名
- type类型: string | null
元素类型
- url类型: string | null
_from 找到该反向链接的页面 URL
- url类型: boolean | null
_from _https 表示引用 URL 是否使用 HTTPS 加密
如果为true,则该引用 URL 使用 HTTPS 加密 - url类型: string | null
_to 反向链接所指向的 URL
- url类型: boolean | null
_to _https 表示反向链接所指向的 URL 是否使用 HTTPS 加密
如果为true,则该 URL 使用 HTTPS 加密 - url类型: string | null
_to _redirect _target 重定向的目标 URL
重定向所指向的目标页面 - url类型: integer | null
_to _spam _score - url类型: integer | null
_to _status _code 被引用页面的状态码
如果值为null,说明我们的爬虫尚未访问该链接指向的网页
示例:200
- items类型: integer | null 格式: int64
_count items数组中返回的结果数 - mode类型: string | null
POST 数组中指定的模式
- search类型: string | null
_after _token 用于后续请求的令牌
设置新任务时指定唯一的search_after_token,即可获取初始任务的后续结果;search_after_token的值对每个后续任务都是唯一的 - target类型: string | null
POST 数组中的目标域名
- total类型: integer | null 格式: int64
_count 与请求相关的结果总数
- 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/backlinks/backlinks/live \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '[
{
"target": "forbes.com",
"mode": "as_is",
"filters": [
"dofollow",
"=",
true
],
"limit": 5
}
]'
{
"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": [
{
"target": null,
"mode": null,
"custom_mode": null,
"total_count": null,
"items_count": null,
"items": [
{
"type": null,
"domain_from": null,
"url_from": null,
"url_from_https": null,
"domain_to": null,
"url_to": null,
"url_to_https": null,
"tld_from": null,
"is_new": null,
"is_lost": null,
"backlink_spam_score": null,
"rank": null,
"page_from_rank": null,
"domain_from_rank": null,
"domain_from_platform_type": [
"[Max Depth Exceeded]"
],
"domain_from_is_ip": null,
"domain_from_ip": null,
"domain_from_country": null,
"page_from_external_links": null,
"page_from_internal_links": null,
"page_from_size": null,
"page_from_encoding": null,
"page_from_language": null,
"page_from_title": null,
"page_from_status_code": null,
"first_seen": null,
"prev_seen": null,
"last_seen": null,
"item_type": null,
"attributes": [
"[Max Depth Exceeded]"
],
"dofollow": null,
"original": null,
"alt": null,
"image_url": null,
"anchor": null,
"text_pre": null,
"text_post": null,
"semantic_location": null,
"links_count": null,
"group_count": null,
"is_broken": null,
"url_to_status_code": null,
"url_to_spam_score": null,
"url_to_redirect_target": null,
"ranked_keywords_info": "[Max Depth Exceeded]",
"is_indirect_link": null,
"indirect_link_path": [
"[Max Depth Exceeded]"
]
}
],
"search_after_token": null
}
]
}
]
}