Markdown
所有接口

取任务的回答

GET/v1/answers

取一个任务的回答。任务还没结束时,也能先取已有的。

价格

价格
不收费

这个接口不收费,所以不接受 Idempotency-Key 和 X-Max-Price;带了会返回 invalid_params。

参数

job_id编号(UUID)必填

任务编号。

cursor文字

上一页返回的 next_cursor。不带就从第一页开始。最多 200 个字符。

请求头

Authorization必填

Bearer 加你的 API Key。

返回

成功时返回 HTTP 200,数据在 data.items,列表里每一项是一个 Answer。字段一直都在:[] 是这次没有,null 是平台不提供或看不出来。 一次返回一页,page.next_cursor 不是 null 就还有下一页。

字段类型说明
idstring回答编号
job_idstring所属的任务
enginestring平台编号
promptstring问的问题
sample{ index: integer, of: integer }这道题在这个平台的第几次,一共几次
status"pending" | "answered" | "no_answer" | "refused" | "failed"pending 还没完成;answered 有回答;no_answer 这次没有出现 AI 回答;refused AI 拒绝回答;failed 没采到。前三种结果收费,failed 不收费
failure_reason"upstream_failed" | "timeout" | "invalid_content" | "region_mismatch" | "account_closed" | "key_closed" | null没采到的原因,只在 failed 时有。都不收费
search_triggeredboolean | null回答前有没有搜索。null 是看不出来,不等于没搜
textstring | null去掉引用编号的回答正文
markdownstring | null保留原格式的回答正文。引用编号的写法各平台不同,不一定和 citations.position 对应
modelstring | null平台显示的模型名
citationsCitation[] | null来源列表。能分清时,会标出用在回答里还是只找到
search_queriesstring[] | nullAI 回答前实际搜索的词
search_stepsSearchStep[] | null每次搜索用了哪些词、找到了哪些网页
follow_upsstring[] | nullAI 推荐接着问的问题
productsProduct[] | null回答里推荐的商品
imagesImage[] | null回答里的图片
videosVideo[] | null回答里的视频
live_roomsLiveRoom[] | null回答里的直播间
adsAd[] | null回答旁边的广告
entitiesEntity[] | null平台自己标出的品牌、商品等名称
reasoningstring | null平台展示出来的思考过程
search_pageSearchPage | null同一次采集里的搜索结果页
extobject只有个别平台才有的字段
conditionsConditions采集条件:入口、登录状态、要求的地区和实际的地区
channelChannel走的哪条线路。统计按线路分开
evidenceEvidence存了哪些证据,什么时候采的,保存到什么时候

里面的对象

Citation12 个字段
字段类型说明
positioninteger排在第几个,从 1 开始
urlstring真实网址,跳转链接已经还原
domainstring域名
titlestring | null标题
snippetstring | null摘要
site_namestring | null网站名
published_atstring | null发布时间。平台没给就是 null
authorstring | null作者
platformstring | null来源所在的平台,例如某个博客平台
quotesstring[] | null来源里被用到的原文
anchorsAnchor[] | null这条来源对应回答里的哪一段
citedboolean | nulltrue 用在了回答里;false 只在搜索时找到;null 看不出来
Anchor2 个字段
字段类型说明
textstring | null这条来源对应的那段回答,不是来源的原文
offsetinteger | null在 markdown 里的字符位置
SearchStep2 个字段
字段类型说明
queriesstring[]这次搜索用的词
results({ url: string, title: string | null })[]这次搜索找到的网页
Product21 个字段
字段类型说明
positioninteger排在第几个,从 1 开始
titlestring | null标题
urlstring | null网址
pricenumber | null价格。读得准才给;打码的价格和价格区间是 null
currencystring | null货币
price_textstring | null平台显示的价格原文
original_pricenumber | null原价
sellerstring | null卖家
platformstring | null所在的平台
ratingnumber | null评分
review_countinteger | null评论数
product_idstring | null商品编号
sku_idstring | null规格编号
brandstring | null品牌
image_urlstring | null商品图片
labelstring | null平台给的推荐语或促销标签
availabilitystring | null有没有货
deliverystring | null配送说明
discountstring | null折扣说明
offersOffer[] | null各个卖家的报价
sponsoredboolean | null是不是广告
Offer7 个字段
字段类型说明
sellerstring | null卖家
pricenumber | null价格
currencystring | null货币
price_textstring | null平台显示的价格原文
urlstring | null网址
availableboolean | null有没有货
labelstring | null平台给的推荐语或促销标签
Image3 个字段
字段类型说明
image_urlstring图片网址
page_urlstring | null图片所在的网页
titlestring | null标题
Video9 个字段
字段类型说明
positioninteger排在第几个,从 1 开始
titlestring | null标题
urlstring | null网址
platformstring | null所在的平台
authorstring | null作者
duration_secondsinteger | null时长,秒
video_idstring | null视频编号
viewsinteger | null播放量
published_atstring | null发布时间。平台没给就是 null
LiveRoom7 个字段
字段类型说明
positioninteger排在第几个,从 1 开始
platformstring | null所在的平台
room_idstring | null直播间编号
titlestring | null标题
accountstring | null开播的账号
statusstring | null直播状态
products({ product_id: string | null, title: string | null, sales_text: string | null })[]带货的商品。sales_text 是平台显示的销量原文,不换算
Ad8 个字段
字段类型说明
positioninteger | null排在第几个,从 1 开始
titlestring | null标题
urlstring | null网址
advertiserstring | null广告主
textstring | null广告文案
blockstring | null广告所在的位置
sitelinks(string | null)[] | null附加链接
badges(string | null)[] | null标记
Entity2 个字段
字段类型说明
namestring | null名称
typestring | null类别,例如品牌或商品
SearchPage8 个字段
字段类型说明
resultsSearchResult[]自然结果
featuresFeature[]搜索引擎自己的聚合块,不占自然排名
adsAd[] | null广告
related_searchesstring[] | null相关搜索
people_also_askstring[] | null相关问题
videosVideo[] | null视频结果
productsProduct[] | null商品结果
ai_summary{ text: string, citations: Citation[] } | null页面上的 AI 摘要和它的来源
SearchResult6 个字段
字段类型说明
positioninteger排在第几个,从 1 开始
titlestring | null标题
urlstring网址
domainstring域名
snippetstring | null摘要
published_atstring | null发布时间。平台没给就是 null
Feature3 个字段
字段类型说明
type"engine_block"聚合块的类型
titlestring | null标题
urlstring | null网址
Conditions6 个字段
字段类型说明
surface"web" | "app" | "api" | null入口:网页、App 或官方接口
interfacestring | null更细的入口,例如电脑网页或手机网页
login"signed_in" | "signed_out" | null登录状态。确认不了就是 null
thinkingboolean | null有没有用深度思考
requested{ country: string | null, region: string | null }你要求的地区
actual{ country: string | null, region: string | null }能确认的实际地区。确认不了就是 null,不会用要求的地区代替
Channel3 个字段
字段类型说明
idstring线路代号
tier"basic" | "full"基础版或完整版
fallbackboolean是不是换到了备用线路
Evidence6 个字段
字段类型说明
rawboolean有没有原始返回
htmlboolean有没有页面存档
screenshotboolean有没有截图
share_urlstring | null平台自己的分享链接
captured_atstring | null采集时间
expires_atstring | null这条回答保存到什么时候
page4 个字段
字段类型说明
next_cursorstring | null取下一页用的游标。没有下一页是 null
cursor_expires_atstring | null游标的失效时间。null 表示不会失效
has_moreboolean还有没有下一页
returnedinteger这一页有几条

常见错误

返回错误就没有收费,只有 settlement_unknown:它表示暂时不知道有没有扣费,要用同一个 Idempotency-Key 再查。查看每个错误码。

错误HTTP意思收费吗
not_found404对象不存在、私密或已删除没有收费
cursor_invalid400游标不存在没有收费
invalid_params400参数不合法没有收费
unauthorized401没有带凭证,或凭证无效、已停用、已过期没有收费
rate_limited429请求过快,或同时进行的调用过多没有收费