Skip to main content
POST
实时 Google AI 模式搜索结果页
实时返回 Google AI Mode 搜索结果页结果。每次 Live SERP 调用只能包含一个任务。

示例

授权

Authorization
string
header
必填

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

请求体

application/json
keyword
string
必填

关键词;最多可指定 700 个字符

location_code
integer

搜索引擎位置代码;如果未指定 location_name 或 location_coordinate,则为必填项

location_name
string

搜索引擎位置的完整名称;如果未指定 location_code 或 location_coordinate,则此项为必填项

location_coordinate
string

位置的 GPS 坐标;如果未指定 location_name 或 location_code,则为必填项

language_name
string

搜索引擎语言的完整名称;未指定 language_code 时必填

language_code
string

搜索引擎语言代码;未指定 language_name 时必填

device
string

设备类型:desktop 或 mobile

calculate_rectangles
boolean

启用 SERP 中元素的像素排名计算

browser_screen_width
integer

自定义浏览器屏幕宽度

browser_screen_height
integer

自定义浏览器屏幕高度

browser_screen_resolution_ratio
number

用于矩形计算的屏幕分辨率比例

响应

成功响应

version
string

API 的当前版本

status_code
integer

通用状态码

status_message
string

一般信息消息

time
string

执行时间(秒)

cost
number

任务总成本(美元)

tasks_count
integer

tasks 数组中的任务数量

tasks_error
integer

返回错误的 tasks 数组中的任务数量

tasks
string[]

任务数组

tasks[].result
string[]

实时 SERP 结果数组

tasks[].result[].keyword
string

POST 数组中接收的关键词

tasks[].result[].type
string

POST 数组中的搜索引擎类型

tasks[].result[].se_domain
string

POST 数组中的搜索引擎域名

tasks[].result[].location_code
integer

POST 数组中的位置代码

tasks[].result[].language_code
string

POST 数组中的语言代码

tasks[].result[].check_url
string

带优化参数的搜索 URL

tasks[].result[].item_types
string[]

SERP 中发现的搜索结果类型

tasks[].result[].items_count
integer

items 数组中返回的结果数量

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

SERP 中找到的搜索结果元素