Skip to content

Bing 自然搜索实时高级结果接口

POST /v3/serp/bing/organic/live/advanced

接口说明

实时 SERP 接口用于获取指定关键词、搜索引擎和地区下的实时搜索结果,最多可返回前 100 条结果。高级版结果会补更多 SERP素明细精选摘要、图片、新闻、视频、本地结果、搜索、AI Overview 等扩展模块。

  • 请求方式:POST
  • 接口路径:/v3/serp/bing/organic/live/advanced
  • 完整地址:https://api.seermartech.cn/v3/serp/bing/organic/live/advanced

计费说明

每次请求都会产生扣费。

  • 实扣费以响应头 X-SeerMarTech-Charge-CNY 为准
  • depth 大于 10 且搜索引擎返回 10 条结果时,可能产生额外费用
  • calculate_rectangles=true 时会额外收费,参考价约 ¥0.0320 / 次
  • 账户支持最高 2000 次/分钟 API 调用
  • 每次 Live SERP 请求只能提交 1 个任务

请求格式

所有 POST 数据使用 UTF-8 编码的 JSON,并且请求体为 JSON 数组格式:

json
[
 {
 "keyword": "flight ticket new york san francisco",
 "location_code": 2840,
 "language_code": "en"
 }
]

主要参数

字段名类型说明
keywordstring。,最长支持 700 个字符。所有 %## 会被解码,字符 + 会被解码为空格。如需传 %,请写为 %25;如需传 +,请写为 %2B
location_codeinteger当未传 location_namelocation_coordinate 时填。搜索地区代码。使用该字段时无需再传 location_namelocation_coordinate。地区列表可通过 /v3/serp/bing/locations 获取。示例:2840
language_codestring当未传 language_name 时填。搜索语言代码。使用该字段时无需再传 language_name。语言列表可通过 /v3/serp/bing/languages 获取。示例:en
depthinteger可选。SERP 解析深度,即返回结果数量。默认 10,最大 200每 10 条结果按一个 SERP 单位计费;若设置 10,在搜索引擎返回更多结果时可能产生额外费用。
devicestring可选。设备类型,可选值:desktopmobile。默认 desktop

附加参数

字段名类型说明
location_namestring当未传 location_codelocation_coordinate 时填。搜索地区名。使用该字段时无需再传 location_codelocation_coordinate。地区列表可通过 /v3/serp/bing/locations 获取。示例:London,England,United Kingdom
language_namestring当未传 language_code 时填。搜索语言名。使用该字段时无需再传 language_code。语言列表可通过 /v3/serp/bing/languages 获取。示例:English
osstring可选。设备操作系统。若 device=desktop,可选 windowsmacos,默认 windows;若 device=mobile,可选 androidios,默认 android
tagstring可选。自定义任务标识,最长 255 个字符。响应中会在 data 对象里原样返回,便于业务对账与结果匹。
targetstring可选。限定返回指定域名、子域名或页面 URL 的 SERP素。域名或子域名不要带 https://www.url 字段的 SERP素会被纳结果。支持使用 * 通符。
stop_crawl_on_matcharray可选。停止抓取条件数组,最多支持 10 个目标对象。命中指定条件后,返回结果截至该命中项为止。会按抓取到命中条件前的 SERP 数量计费
max_crawl_pagesinteger可选。最多抓取的搜索结果页数。默认 1,最大 100。该参数与 depth 结合决定最终抓取范围。
search_paramstring可选。搜索引擎附加查询参数。
calculate_rectanglesboolean可选。是否计算高级结果中各 SERP素的像素位置与尺寸。默认 false。开启后会返回 rectangle 信息,并产生额外费用。
browser_screen_widthinteger可选。浏览器屏幕宽度,用于计算像素排名。范围 240-9999。需合 calculate_rectangles=true 使用。默认:桌面端 1920;Android 移动端 360;iOS 移动端 375
browser_screen_heightinteger可选。浏览器屏幕高度,用于计算像素排名。范围 240-9999。需合 calculate_rectangles=true 使用。默认:桌面端 1080;Android 移动端 640;iOS 移动端 812
browser_screen_resolution_ratiointeger可选。浏览器分辨率比例,用于计算像素排名。范围 0.5-3。需合 calculate_rectangles=true 使用。默认:桌面端 1;Android/iOS 移动端 3
urlstring可选。可直接传搜索结果页 URL,本接口会自动拆解字段。但这种方式处理难度更高,并要求 URL 中已准确语言和地区信息,通常不建议使用。
location_coordinatestring当未传 location_namelocation_code 时填。GPS 坐标,格式为 "latitude,longitude",经纬度最多支持 7 位小数。示例:53.476225,-2.243572

target 参数示例

写法含义
example.com返回站点首页结果,如 https://example.comhttps://www.example.com/
example.com*返回该域名下所有页面
*example.com*返回该域名及所有子域名、页面
*example.com返回任意子域名下的首页结果,如 https://en.example.com
example.com/example-page返回指定精确 URL
example.com/example-page*返回所有以该路径前缀开头的页面

stop_crawl_on_match 对象结构

字段名类型说明
match_typestring当设置 stop_crawl_on_match 时填。匹类型,可选值:domainwith_subdomainswildcard
match_valuestring当设置 stop_crawl_on_match 时填。目标域名、子域名或通符表达式。不要带请求协议。示例:"match_value": "example.com""match_value": "/blog/post-*"

请求示例

cURL

bash
curl --location --request POST "https://api.seermartech.cn/v3/serp/bing/organic/live/advanced" \
--header "Authorization: Bearer smt_live_YOUR_KEY" \
--header "Content-Type: application/json" \
--data-raw '[
 {
 "language_code": "en",
 "location_code": 2840,
 "keyword": "flight ticket new york san francisco"
 }
]'

Python

python
import requests

url = "https://api.seermartech.cn/v3/serp/bing/organic/live/advanced"
headers = {
 "Authorization": "Bearer smt_live_YOUR_KEY",
 "Content-Type": "application/json"
}
data = [
 {
 "language_code": "en",
 "location_code": 2840,
 "keyword": "flight ticket new york san francisco"
 }
]

response = requests.post(url, headers=headers, json=data)
print(response.json)

TypeScript

typescript
import axios from "axios";

async function main {
 const response = await axios.post(
 "https://api.seermartech.cn/v3/serp/bing/organic/live/advanced",
 [
 {
 language_code: "en",
 location_code: 2840,
 keyword: "flight ticket new york san francisco",
 },
 ],
 {
 headers: {
 Authorization: "Bearer smt_live_YOUR_KEY",
 "Content-Type": "application/json",
 },
 }
 );

 console.log(response.data);
}

main.catch(console.error);

响应说明

接口返回 JSON 数据,顶层 tasks 数组,每个任务对应一次获取结果。

顶层字段

字段名类型说明
versionstring当前 API 版本
status_codeinteger通用状态码。完整错误码见 /v3/appendix/errors
status_messagestring通用状态信息
timestring执行耗时,单位秒
costfloat本次请求总费用
tasks_countintegertasks 数组中的任务数量
tasks_errorinteger返回错误的任务数量
tasksarray任务结果数组

任务级字段

字段名类型说明
idstring任务唯一标识,UUID 格式
status_codeinteger任务状态码,范围通常为 10000-60000
status_messagestring任务状态信息
timestring任务执行耗时
costfloat任务费用
result_countintegerresult 数组中的数量
patharrayURL 路径
dataobject与请求中提交的参数基本一致
resultarray获取结果数组

result 结果字段

字段名类型说明
keywordstring请求中的;返回时 %## 会被解码,+ 会被解码为空格
typestring搜索类型
se_domainstring搜索引擎域名
location_codeinteger地区代码
language_codestring语言代码
check_urlstring搜索结果直达链接,可用于人工校验结果准确性
datetimestring抓取时间,UTC 格式:yyyy-mm-dd hh-mm-ss +00:00
spellobject搜索引擎自动纠错信息;如无则为 null
refinement_chipsobject搜索细分建议;如无则为 null
item_typesarray当前 SERP 中出现的结果类型
se_results_countintegerSERP 总结果数
pages_countinteger实抓取到的页数
items_countintegeritems 数组中的数量
itemsarraySERP素列表

item_types 可能值

answer_boxcarouseleventsfeatured_snippethotels_packimagesjobslocal_packmaporganicpaidpeople_also_askpeople_also_searchquestions_and_answersrecipesrelated_searchesshoppingtop_storiesvideoai_overview


SERP素字段说明

不同 type 的字段结构不同,以下保留核心字段说明。

1)organic 自然结果

字段名类型说明
typestring固定为 organic
rank_groupinteger同类型分组排名
rank_absoluteintegerSERP局绝对排名
pageinteger所在搜索结果页码
positionstring位置,可为 leftright
xpathstring素 XPath
domainstring域名
titlestring标题
urlstring结果 URL
cache_urlstring缓存页 URL
related_search_urlstring搜索 URL
breadcrumbstring面屑
website_namestring网站名称
is_imageboolean是否图片
is_videoboolean是否视频
is_featured_snippetboolean是否为精选摘要来源
is_maliciousboolean是否被标记为恶意
is_web_storyboolean是否为 Web Story
descriptionstring摘要描述
pre_snippetstring摘要前附加信息
extended_snippetstring摘要后附加信息
imagesarray图片列表
amp_versionboolean是否有 AMP 版本
ratingobject评分信息
priceobject价格信息
highlightedarray摘要中加粗
linksarray附加站点链接
faqobjectFAQ 扩展
extended_people_also_searcharray回退搜索结果后出现的搜索扩展
about_this_resultobject“此结果”信息。Bing 中始终为 null
related_resultarray同域名结果。Bing 中始终为 null
timestampstring发布时间,UTC 格式
rectangleobject像素坐标与尺寸;在 calculate_rectangles=true 时返回

images 子项

字段名类型说明
typestring固定为 images_element
altstring图片 alt 文本
urlstring页面 URL
image_urlstring图片 URL

rating 子项

字段名类型说明
rating_typestring评分类型:Max5PercentsCustomMax
valuefloat评分值
votes_countinteger评价数
rating_maxinteger评分上限

price 子项

字段名类型说明
currentfloat当前价格
regularfloat原价
max_valuefloat最高价格
currencystring币种 ISO 代码
is_price_rangeboolean是否为区间价格
displayed_pricestring页面展示的原始价格文本
字段名类型说明
typestring固定为 link_element
titlestring链接标题
descriptionstring链接描述
urlstring链接 URL

faq 子项

字段名类型说明
typestring固定为 faq_box
itemsarrayFAQ 项目列表

FAQ 项目:

字段名类型说明
typestring固定为 faq_box_element
titlestring问题
descriptionstring回答
linksarrayFAQ 中的链接

2)paid 广告结果

字段名类型说明
typestring固定为 paid
rank_groupinteger同类型分组排名
rank_absoluteintegerSERP局绝对排名
pageinteger所在页码
positionstringleftright
xpathstring素 XPath
domainstring广告域名
descriptionstring广告描述
titlestring广告标题
urlstring广告落地页
breadcrumbstring面屑
highlightedarray高亮词
extraobject扩展信息,如 ad_aclk
description_rowsarray扩展描述行
linksarray附加链接
priceobject价格信息
rectangleobject像素坐标与尺寸

3)answer_box 答案框

字段名类型说明
typestring固定为 answer_box
rank_groupinteger同类型分组排名
rank_absoluteintegerSERP局绝对排名
pageinteger页码
positionstringleftright
xpathstringXPath
textarray文本,无则为 null
linksarray链接列表
rectangleobject像素坐标与尺寸
字段名类型说明
typestring固定为 related_searches
rank_groupinteger同类型分组排名
rank_absoluteintegerSERP局绝对排名
pageinteger页码
positionstringleftright
xpathstringXPath
itemsarray搜索项
rectangleobject像素坐标与尺寸

5)people_also_search 用户也在搜

字段名类型说明
typestring固定为 people_also_search
rank_groupinteger同类型分组排名
rank_absoluteintegerSERP局绝对排名
pageinteger页码
positionstringleftright
xpathstringXPath
titlestring模块标题
itemsarray扩展项
rectangleobject像素坐标与尺寸

6)local_pack 本地结果

字段名类型说明
typestring固定为 local_pack
rank_groupinteger同类型分组排名
rank_absoluteintegerSERP局绝对排名
pageinteger页码
positionstringleftright
xpathstringXPath
titlestring商户名称
descriptionstring描述
domainstring域名
phonestring电话
urlstring页面 URL
is_paidboolean是否广告
ratingobject评分信息
cidstring本地商户唯一 ID
is_claimedboolean是否已认领
rectangleobject像素坐标与尺寸

7)hotels_pack店结果

字段名类型说明
typestring固定为 hotels_pack
rank_groupinteger同类型分组排名
rank_absoluteintegerSERP局绝对排名
pageinteger页码
positionstringleftright
xpathstringXPath
titlestring模块标题
date_fromstring住日期,格式 yyyy-mm-dd
date_tostring离店日期,格式 yyyy-mm-dd
itemsarray店列表
rectangleobject像素坐标与尺寸

子项 hotels_pack_element含:pricetitledescriptionhotel_identifierdomainurlis_paidratingrectangle 等字段。

字段:typerank_grouprank_absolutepagepositionxpathtitleitemsrectangle。 子项 carousel_element 一般:titlesubtitle

9)events 活动结果

字段:typerank_grouprank_absolutepagepositionxpathtitleurlitemsrectangle。 子项 events_element 一般:titledescriptionurl

字段:typerank_grouprank_absolutepagepositionxpathdomaintitlefeatured_titledescriptiontimestampurlimagestablerectangle

说明:

  • images:图片列表
  • table:表格结果, table_headertable_content

11)images 图片结果

字段:typerank_grouprank_absolutepagepositionxpathtitleurlitemsrelated_image_searchesrectangle

图片子项 images_element

  • alt
  • url
  • image_url

图片搜索子项 related_image_searches_element

  • title
  • alt
  • url
  • image_url

12)shopping 购物结果

字段:typerank_grouprank_absolutepagepositionxpathtitleitemsrectangle

购物子项 shopping_element 常见字段:

  • title
  • price
  • source
  • description
  • marketplace
  • marketplace_url
  • url

13)jobs 职位结果

字段:typerank_grouprank_absolutepagepositionxpathtitleurlitemsrectangle

职位子项 jobs_element 常见字段:

  • title
  • description
  • location
  • author
  • job_posted_time
  • timestamp
  • contract_type
  • salary
  • url

14)map 地图结果

字段:typerank_grouprank_absolutepagepositionxpathtitleurlrectangle

15)people_also_ask 用户还问

字段:typerank_grouprank_absolutepagepositionxpathitemsrectangle

子项 people_also_ask_element

  • title
  • xpath
  • expanded_element

展开项 people_also_ask_expanded_element

  • featured_title
  • url
  • domain
  • title
  • description
  • timestamp
  • table
  • rectangle

16)questions_and_answers 问答结果

子项 questions_and_answers_element 常见字段:

  • url
  • question_text
  • answer_text
  • source
  • domain
  • rectangle

17)recipes 菜谱结果

子项 recipes_element 常见字段:

  • title
  • url
  • domain
  • source
  • description
  • time
  • rating
  • rectangle

18)top_stories 热门新闻

子项 top_stories_element 常见字段:

  • source
  • domain
  • title
  • date
  • amp_version
  • timestamp
  • url
  • image_url
  • badges
  • rectangle

19)video 视频结果

子项 video_element 常见字段:

  • source
  • title
  • timestamp
  • url
  • rectangle

20)ai_overview AI 概览

ai_overview 用于返回搜索结果中的 AI 概览模块。

顶层常见字段:

字段名类型说明
typestring固定为 ai_overview
rank_groupinteger同类型分组排名
rank_absoluteintegerSERP局绝对排名
pageinteger页码
positionstringleftright
xpathstringXPath
markdownstringMarkdown 格式
itemsarrayAI 概览项
referencesarray参考来源
rectangleobject像素坐标与尺寸

可能出现的 AI 子类型:

  • ai_overview_element
  • ai_overview_video_element
  • ai_overview_videos_element
  • ai_overview_images_element
  • ai_overview_organic_element
  • ai_overview_reference

常见字段:

  • 文本类:titletext
  • 图片类:imagesimage_url
  • 视频类:snippetsourcedatetimestamp
  • 引用类:sourcedomainurltitletext
  • 自然结果类:titleurldomainsnippetbreadcrumbwebsite_namelinkshighlighted

rectangle 像素坐标对象

calculate_rectangles=true 时,多数 SERP素会返回 rectangle

字段名类型说明
xinteger左上角相对于屏幕原点的 X 坐标
yinteger左上角相对于屏幕原点的 Y 坐标
widthinteger素宽度(像素)
heightinteger素高度(像素)

响应示例

json
{
 "version": "0.1.20200129",
 "status_code": 20000,
 "status_message": "Ok.",
 "time": "0.2347 sec.",
 "cost": 0,
 "tasks_count": 1,
 "tasks_error": 0,
 "tasks": [
 {
 "data": {
 "api": "serp",
 "function": "task_get",
 "se": "bing",
 "se_type": "organic",
 "language_name": "English",
 "location_name": "United States",
 "keyword": "flight ticket new york san francisco",
 "tag": "tag2",
 "device": "desktop",
 "os": "windows"
 },
 "result": [
 {
 "se_results_count": 99148,
 "pages_count": 1,
 "items_count": 110,
 "items": [
 {
 "type": "organic",
 "rank_group": 1,
 "rank_absolute": 2,
 "page": 1,
 "position": "left",
 "xpath": "/html/body/div/main/ol/li",
 "domain": "www.imdb.com",
 "title": "Star Wars Cast(1977-Present) - IMDb",
 "url": "https://www.imdb.com/list/ls070679507/",
 "breadcrumb": "https://www.imdb.com/list/ls070679507",
 "website_name": "IMDb",
 "is_image": false,
 "is_video": false,
 "is_featured_snippet": false,
 "is_malicious": false,
 "is_web_story": false,
 "description": "Star Wars Cast (1977-Present) 1. Mark Hamill...",
 "rectangle": {
 "x": 160,
 "y": 571,
 "width": 648,
 "height": 986
 }
 },
 {
 "type": "images",
 "rank_group": 1,
 "rank_absolute": 4,
 "page": 1,
 "position": "left",
 "xpath": "/html/body/div/main/ol/li",
 "title": "Images of Star Wars Cast",
 "url": "https://www.bing.com/images/search?q=star+wars+cast",
 "items": [],
 "related_image_searches": [],
 "rectangle": {
 "x": 160,
 "y": 571,
 "width": 648,
 "height": 986
 }
 },
 {
 "type": "top_stories",
 "rank_group": 1,
 "rank_absolute": 7,
 "page": 1,
 "position": "left",
 "xpath": "/html/body/div/main/ol/li",
 "title": "News about Star Wars Cast",
 "items": [],
 "rectangle": {
 "x": 160,
 "y": 571,
 "width": 648,
 "height": 986
 }
 },
 {
 "type": "ai_overview",
 "rank_group": 1,
 "rank_absolute": 1,
 "page": 1,
 "position": "left",
 "xpath": "XPatha2ffe97b-67c8-4aca-a1a3-e96ef3817da8",
 "markdown": null,
 "items": [
 {
 "type": "ai_overview_element",
 "title": "示例标题",
 "text": "示例文本",
 "images": [],
 "references": []
 }
 ],
 "references": [],
 "rectangle": {
 "x": 165,
 "y": 197,
 "width": 149,
 "height": 141
 }
 }
 ]
 }
 ]
 }
 ]
}

错误处理

  • 请根据顶层 status_code 和任务级 status_code 判断请求是否成功
  • 完整错误码与状态说明请参考:/v3/appendix/errors
  • 建议业务侧实现完善的异常处理机制:
  • 请求参数校验失败
  • 认证失败
  • 频控限
  • 平台返回空结果
  • 单任务执行失败但整体请求成功

使用建议

  1. 优使用 location_code + language_code,比传名称更稳定。
  2. 如需做页面可视化排名分析,再开启 calculate_rectangles,不成本。
  3. 如果只心某个域名的,可使用 target 缩小返回范围。
  4. 若需控制抓取页数与成本,应结合 depthmax_crawl_pages 一起设计。
  5. Bing 下 about_this_resultrelated_result 当前通常返回 null,解析时请做好容。

实用场景

  • 监控实时排名:抓取 Bing 自然结果与绝对排名,及时发现目标页面波动,支持日报、预警和竞品追踪。
  • 识别 SERP 机会位:分析 featured_snippetpeople_also_asktop_storiesimages 等模块,判断优化应优争取哪些搜索展现位。
  • 评估本地搜索:提取 local_packmaphotels_pack 等本地模块,帮助连锁门店、、生活服务品牌评估区域可见度。
  • 筛选域名级竞争结果:结合 target 或结果中的 domain 字段,定位竞品在指定下的出现位置与页面类型,支持竞争报分析。
  • 计算像素级可见性:启用 calculate_rectangles 后获取屏幕坐标与尺寸,用于研究首屏占位、模块遮挡和真实可见。

统一入口:官网 · LLM API · 控制台