Skip to main content
POST
SERP API AI 摘要
Live SERP API AI Summary 端点对任意 SERP 中找到的内容进行摘要,并根据用户提示生成响应。每次请求都会向您的账户收费。

示例

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
task_id
string
必填

关联任务的 UUID 格式唯一标识符;可在 30 天内使用

prompt
string

附加 AI 提示词;最多 2000 个字符

support_extra
boolean

是否考虑额外的 SERP 特性,例如 answer_box、knowledge_graph 和 featured_snippet;默认为 true

fetch_content
boolean

是否从 SERP 页面中获取内容;默认为 false

是否在摘要中包含来源链接;默认为 false

响应

成功响应

version
string

API 的当前版本

status_code
integer

通用状态码

status_message
string

一般信息消息

time
string

执行时间(秒)

cost
number

任务总成本(美元)

tasks
string[]

任务数组

tasks[].id
string

UUID 格式的任务标识符

tasks[].status_code
integer

任务状态码

tasks[].status_message
string

任务状态消息

tasks[].result_count
integer

结果数组中的元素数量

tasks[].path
string[]

URL 路径

tasks[].data
object

包含 POST 请求中指定的相同参数

tasks[].result
string[]

结果数组

tasks[].result[].items_count
integer

结果数组中的项目数

tasks[].result[].items
string[]

项目数组

tasks[].result[].items[].summary
string

生成的摘要