DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
实时 ChatGPT LLM Scraper
像用户一样向 ChatGPT 提问 keyword,并返回解析后的回答。返回 keyword、location_code、language_code、model、datetime、markdown、sources、fan_out_queries 和 brand_entities——markdown 是助手渲染的回答,sources 是它引用的页面,brand_entities 是它提及的品牌。force_web_search 会让它浏览网页,而不是仅凭训练数据作答。采用 DataForSEO 的信封结构:数据位于 tasks[0].result,结果状态位于 tasks[0].status_code——被拒绝的请求仍会返回 HTTP 200。这就是回答“ChatGPT 如何评价我们”的端点;要在大量回答中统计提及次数,请使用 post_dataforseo_ai_llm_mentions_aggregated_metrics_live,而不是反复抓取。原始形式为 post_dataforseo_ai_chat_gpt_llm_scraper_live_html。
计费参考
- 计量方式:按上报的响应成本计量。
- 参考请求估算:0.004 美元。
- 参考客户倍率:1.0。不得对已结算的客户金额再次应用。
仅供参考的元数据,不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。
- 类型: array (object | null)[]
- force类型: boolean | null
_web _search 强制 AI 智能体使用网络搜索
可选字段
启用后,AI 模型会被强制访问并引用当前网络信息;
默认值:false;
注意:即使参数设为true,也不能保证响应中会引用网络来源 - keyword类型: string
- language类型: string
_code 搜索引擎语言代码
未指定language_name时为必填字段;
如果使用此字段,则无需指定language_name;
可单独向https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/languages发起请求,获取搜索引擎支持的语言及其language_code列表 - language类型: string
_name 搜索引擎语言全名
未指定language_code时为必填字段;
如果使用此字段,则无需指定language_code;
可单独向https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/languages发起请求,获取搜索引擎支持的语言及其language_name列表 - location类型: integer
_code 搜索引擎地点代码
未指定location_name时为必填字段
如果使用此字段,则无需指定location_name
可单独向https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/locations发起请求,获取搜索引擎的可用地点及其location_code列表
示例:2840 - location类型: string
_name 搜索引擎地点全名
未指定location_code时为必填字段
如果使用此字段,则无需指定location_code
可单独向https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/locations发起请求,获取搜索引擎的可用地点及其location_name列表
示例:United States - tag类型: string | null
用户自定义任务标识符
可选字段
字符数上限为 255
可使用此参数标识任务,并将其与结果对应
可在响应的data对象中找到指定的tag值
- 类型: object | null · Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedResponseInfo200
- 类型: number | null 格式: doublecost
任务总费用,美元
- 类型: integer | nullstatus
_code 通用状态码 完整响应码列表见此处
- 类型: string | nullstatus
_message 通用信息性消息 完整的一般信息性消息列表见此处
- 类型: array (object | null)[] | nulltasks
任务数组
- 类型: object | null · Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedTaskInfo
- 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
结果数组
- brand类型: array (object | null)[] | null
_entities 品牌实体数组
包含响应中提及的品牌的信息 - check类型: string | null
_url 搜索引擎结果的直接 URL
可用于确保我们提供了准确的结果 - datetime类型: string | null
收到结果的日期和时间
采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
示例:2019-11-15 12:57:46 +00:00 - fan类型: array (string | null)[] | null
_out _queries 扇出查询数组
包含从主查询派生出的相关搜索查询,以提供更全面的回答 - item类型: array (string | null)[] | null
_types 搜索结果类型
包含在 SERP 中找到的搜索结果类型(items)。
可能的条目类型:chat_gpt_text、chat_gpt_table、chat_gpt_navigation_list、chat_gpt_images、chat_gpt_local_businesses、chat_gpt_products - items类型: array (object | null)[] | null
ChatGPT 结果的元素
- rank类型: integer | null
_absolute SERP 中的绝对排名
所有元素中的绝对位置 - rank类型: integer | null
_group SERP 中的组内排名
在具有相同type值的元素组内的位置
具有不同type值的元素位置不包含在rank_group中 - type类型: string | null
元素类型
- items类型: integer | null 格式: int64
_count items数组中返回的结果数 - keyword类型: string | null
POST 数组中收到的关键词
返回的关键词会解码 %##(加号“+”将解码为空格字符) - language类型: string | null
_code POST 数组中的语言代码
- location类型: integer | null
_code POST 数组中的位置代码
- markdown类型: string | null
- model类型: string | null
表示模型版本
- se类型: integer | null 格式: int64
_results _count 结果总数
- search类型: array (object | null)[] | null
_results 搜索结果数组
模型在查找信息时获取的所有网络搜索输出,包括重复项和未使用的条目- breadcrumb类型: string | null
面包屑导航
- description类型: string | null
结果描述
- domain类型: string | null
结果域名
- title类型: string | null
结果标题
- type类型: string | null
元素类型
- url类型: string | null
结果 URL
- sources类型: array (object | null)[] | null
来源数组
模型在最终答案中实际引用或依据的来源- domain类型: string | null
SERP 中的来源域名
- markdown类型: string | null
- publication类型: string | null
_date 结果发布时的日期和时间
格式:“year-month-date:minutes:UTC_difference_hours:UTC_difference_minutes”
示例:2019-11-15 12:57:46 +00:00 - snippet类型: string | null
来源描述
- source类型: string | null
_name 来源名称
- thumbnail类型: string | null
来源缩略图
- title类型: string | null
来源标题
- type类型: string | null
元素类型
- url类型: string | null
来源 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/ai_optimization/chat_gpt/llm_scraper/live/advanced \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '[
{
"language_code": "en",
"location_code": 2840,
"keyword": "albert einstein"
}
]'
{
"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": [
{
"keyword": null,
"location_code": null,
"language_code": null,
"model": null,
"check_url": null,
"datetime": null,
"markdown": null,
"search_results": [
{
"type": null,
"url": null,
"domain": null,
"title": null,
"description": null,
"breadcrumb": null
}
],
"sources": [
{
"type": null,
"title": null,
"snippet": null,
"domain": null,
"url": null,
"thumbnail": null,
"source_name": null,
"publication_date": null,
"markdown": null
}
],
"fan_out_queries": [
null
],
"brand_entities": [
{
"type": null,
"title": null,
"category": null,
"markdown": null,
"urls": null
}
],
"se_results_count": null,
"item_types": [
null
],
"items_count": null,
"items": [
{
"type": null,
"rank_group": null,
"rank_absolute": null
}
]
}
]
}
]
}