BING_SEARCH 加载某个查询的 bing.com 结果页,返回其中的自然结果、广告和相关搜索,以及 Bing 在其上方展示的 AI 摘要(aioverview)。页面在其周围展示的地点、视频、新闻、天气、股价、商品广告和步骤卡片模块也各自作为字段返回。不涉及账户或登录。
taskType | BING_SEARCH(别名 BING) |
| 输入 | query 或 prompt(必填),最多 4,000 个字符;country、include |
| 积分 | 每个任务 1 积分 |
| 国家 | 默认 US。可使用任意 ISO 3166-1 alpha-2 代码。 |
| 位置 | 不支持(422 LOCATION_UNSUPPORTED)。 |
请求
curl -X POST https://api.querying.ai/v1/async/task \
-H "Authorization: Bearer $QUERYING_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "taskType": "BING_SEARCH", "payload": { "query": "how does a heat pump work in cold weather", "country": "US", "include": { "markdown": true } } }'
参数
| 字段 | 必填 | 说明 |
|---|---|---|
query | 是,或 prompt | 搜索查询,最多 4,000 个字符。 |
prompt | 是,或 query | 可代替 query。请求同时包含两者时,BING_SEARCH 读取 prompt。 |
country | 否 | 要搜索的市场,默认 US。 |
include.markdown | 否 | 设为 true 时附带 aioverview.markdown,即保留标题、列表和表格的摘要。 |
include.rawResponse | 否 | 设为 true 时以 rawContent 附带完整结果页 HTML。 |
响应
页面未展示的模块会被省略。下面的示例合并了多个查询的模块:{
"surface": "bing_search",
"organicResults": [
{ "position": 1, "title": "...", "link": "https://...", "displayedLink": "...", "snippet": "...", "date": "Aug 3, 2026", "page": 1 }
],
"ads": [{ "position": 1, "title": "...", "link": "https://...", "displayedLink": "...", "description": "...", "blockPosition": "top", "advertiser": "...", "sitelinks": [{ "title": "...", "link": "https://...", "snippet": "..." }], "notes": ["Site visitors: Over 100K in the past month"] }],
"sponsoredProducts": [{ "position": 1, "title": "...", "url": "https://...", "merchant": "Amazon.com", "price": "$69.91", "originalPrice": "$319.89", "badge": "Sale", "shipping": "Free shipping", "category": "See How To Change a Tire" }],
"map": [{ "position": 1, "name": "Sushi Gen", "placeId": "YN88FB00953DE2A13", "category": "Sushi", "location": { "address": "422 E 2nd St, Los Angeles", "latitude": 34.046749, "longitude": -118.238754 }, "phoneNumber": "(213) 617-0552", "url": "http://www.sushigen-dtla.com/", "mapsUrl": "https://www.bing.com/maps?...", "reviews": [{ "rating": 4.5, "count": 4656, "countText": "4.7K", "providerName": "Yelp" }], "openState": "Closed · Opens tomorrow 11 AM", "serviceOptions": ["Dine-in", "Takeout", "Delivery"] }],
"videos": [{ "position": 1, "title": "5 Best Sushi in Los Angeles", "link": "https://www.youtube.com/watch?v=PFQF5lPYC0w", "platform": "YouTube", "channel": "Atmosfy Los Angeles", "duration": "1:06", "views": "296 views", "date": "6 months ago" }],
"topStories": [{ "title": "...", "link": "https://...", "source": "24/7 Wall St.", "date": "4d", "snippet": "..." }],
"weather": { "location": "Seattle, Washington", "current": { "temperature": "47°F", "condition": "Cloudy", "humidity": "93%", "airQuality": { "index": 39, "category": "Good" } }, "daily": [{ "day": "Today", "date": "2026-11-09", "condition": "Light rain", "high": "53°F", "low": "51°F" }], "hourly": [{ "date": "2026-11-09", "time": "1 AM", "temperature": "47°F", "feelsLike": "50°F", "precipitation": { "chance": "0%" } }] },
"stock": { "name": "Tesla Inc", "symbol": "TSLA", "exchange": "NASDAQ", "currency": "USD", "price": 358.22, "change": 14.53, "changePercent": 4.23, "marketStatus": "Market Closed", "open": 348.92, "volumeText": "36.73 M", "marketCapText": "1.42 T" },
"answerCards": [{ "title": "Changing a Tire on Your Vehicle", "sections": [{ "title": "Changing a Tire", "text": "...", "items": ["Pull over to a safe, level location ...", "..."] }] }],
"suggestedSearches": [{ "query": "Seattle hourly forecast", "link": "https://www.bing.com/..." }],
"relatedSearches": [{ "query": "...", "link": "https://www.bing.com/search?q=..." }],
"aioverview": {
"text": "Heat pumps move heat instead of generating it [1]. ...",
"sources": [{ "position": 1, "url": "https://...", "label": "..." }],
"citationPills": [{ "citationPillId": 1, "position": 1, "url": "https://...", "label": "...", "domain": "example.com" }],
"markdown": "..."
},
"text": "Heat pumps move heat instead of generating it [1]. ...",
"sources": [{ "position": 1, "url": "https://...", "label": "..." }]
}
| 字段 | 说明 |
|---|---|
surface | 始终为 bing_search。 |
organicResults | 最多 10 条自然结果。Bing 把第一页的部分结果移到下一页时,其余结果从第 2 页补齐。 |
organicResults[].page | 第一页的结果为 1,从下一页补齐的结果为 2。 |
organicResults[].date | Bing 在结果旁显示的日期,按该市场的写法返回(例如 US 为 Aug 3, 2026)。没有显示时省略。 |
ads | 结果上方和下方的广告,页面没有时省略。在两处都展示的同一广告只返回一次。 |
ads[].advertiser、ads[].badge | 广告图标旁的广告主名称,以及 URL 旁的标签(例如 Deal)。 |
ads[].sitelinks | 描述下方的链接:title、link,链接有自己的说明行时还有 snippet。 |
ads[].notes | 描述下方的其他行,按显示原样:宣传语、Types: … 列表、评分、促销。 |
sponsoredProducts | 商品广告卡片:title、url(落地页)、merchant、按显示原样的 price 和 originalPrice、installment(例如 $33.33/mo x 36)、image、badge、shipping、notes,以及作为 category 的轮播标题。 |
map | 地点组,字段名与 Google 搜索的 map 相同:name、placeId(Bing 的 ID)、category、location、phoneNumber、url(网站)、mapsUrl(Bing 地图)、reviews、openState(与 Gemini、Copilot 一样为显示的营业状态)、serviceOptions、image。赞助地点带有 sponsored: true。 |
map[].reviews | 满分 5 分的 rating、精确的评论数 count、卡片显示的评论数 countText(例如 4.7K),以及评论网站 providerName(例如 Yelp)。 |
videos | 视频轮播:title、link、platform、channel、按显示原样的 duration、date 和 views、thumbnail。 |
topStories | 新闻组:title、link、source、按显示原样的 date(例如 4d)、snippet、thumbnail。 |
weather | 天气小组件。current 包含气温、天气状况、最高和最低气温、能见度、气压、空气质量指数、紫外线指数、风、湿度和露点,并附 Bing 在旁边显示的说明。数值保留小组件的单位(47°F、9.9 mi)。daily 是 10 天预报,hourly 是图表中的逐小时预报,含 feelsLike 和降水概率,astronomy 是月亮或太阳卡片,source 是数据来源。 |
stock | 股价小组件。price、change、changePercent、afterHours、open、high、low 和 52 周区间为数字。volumeText、averageVolumeText 和 marketCapText 保留 Bing 的缩写(36.73 M)。updated 和 marketStatus 按显示原样。还包含 analystRating、news、relatedStocks 和数据来源 source。没有专门字段的指标以标签和值放在 details 中。 |
answerCards | 结果旁的 AI 步骤卡片:title、link,以及 sections,每节含 title、text 和作为 items 的步骤。 |
suggestedSearches | 地点、天气或股价模块下方的搜索标签。 |
relatedSearches | 相关搜索,页面没有时省略。有些页面为同一列表加上 “People also search for” 标题。 |
aioverview | Bing 的 AI 摘要;Bing 未展示时为 null。 |
aioverview.text | 摘要正文。[n] 指向 aioverview.sources[n-1]。 |
aioverview.sources | 摘要引用的页面。 |
aioverview.citationPills | 每个内联引用背后的每个来源各一项;一起被引用的来源共享同一个 citationPillId。摘要中没有内联引用时省略。 |
aioverview.markdown | 需设置 include.markdown: true。 |
rawContent | 结果页 HTML,需设置 include.rawResponse: true。 |
text、sources | aioverview.text 与 aioverview.sources 的已弃用副本,无摘要时为空。新代码请读取 aioverview。 |
aioverview: null 表示 Bing 没有为该查询展示 AI 摘要,或者极少数情况下已开始的摘要在三次尝试内未能加载。它不是错误,周围的结果仍会返回。限制与错误
query(或prompt)超过 4,000 个字符时返回422 VALIDATION_ERROR。- Bing 并非为每个查询都生成摘要;搜索型问题比指令型问题更常获得摘要。
organicResults偶尔少于 10 条:该查询的结果本身较少、下一页与第一页结果重复,或三次尝试都未能加载下一页。- 如果 Bing 三次都只返回精简版结果页,任务以
502 BING_LIGHT_PAGE失败,不扣费。该页面可能列出与查询不符的结果,因此不会返回。 - 其他请求错误见错误。
相关内容
- Microsoft Copilot:Microsoft 的聊天回答
- Markdown 与原始响应