Documentation
Bing Search API technical reference
Reference for the Bing Search API: query and market inputs, paging, recency and SafeSearch behaviour, index choices and the fields inside returned rows.
See also: Bing Search API overview and prices · Bing Search API guide: queries, paging and markets
On this page
Bing Search API query and market inputs
body.q also goes by the names query and keyword. Search operators inside the query are applied, for instance site:example.com and an exact phrase in double quotes.
The market inputs have alternative names too. market is accepted for body.mkt. cc and country are accepted for body.gl, and setlang and lang are accepted for body.hl.
body.gl and body.hl together stand in for a missing body.mkt, a call that sends none of the three runs in the en-US market, and an unrecognised value of any of them is ignored. body.gl expects an ISO-3166 country code of two letters (us, gb, de, in, br), and body.hl an ISO-639 language code (en, de, fr).
Fields in this section (9)
bing-autocomplete, bing-images, bing-news, bing-search, bing-videos, body.q, body.mkt, body.gl, body.hl
Bing Search API autocomplete reference
suggestions is an ordered list of query suggestions, and its order is the order in which Bing shows them while a query is typed.
query shows the text that was answered, mkt the market that applied and count how many suggestions came back. Calling the operation again with another body.gl or body.mkt reads the suggestions of another market, which lets you compare keyword ideas between countries.
Fields in this section (5)
bing-autocomplete, body.q, body.mkt, body.gl, body.hl
Bing image search reference
A page of bing-images holds about 35 images. body.page is a 1-based page number. body.first is a 1-based result offset that can be used instead of it, and start is accepted as another name for body.first.
body.count can also be written as num. An invalid body.page or body.first is ignored. A body.count outside the range 1 to 60 is ignored too, and 35 images come back.
body.safe sets the SafeSearch level, where off applies no filtering. It can also be written as safesearch, and an unrecognised level is ignored.
In each row of images, image_url is the full-size file, source_url is the page that shows it, thumbnail_url is the thumbnail and domain is the host of the source page. width and height give the pixel size and description the text describing the image, and Bing supplies them when they are available.
Fields in this section (5)
bing-images, body.page, body.first, body.count, body.safe
Bing news search reference
bing-news lists articles newest first. body.freshness restricts them to a recency window: hour is the past hour, day the past 24 hours, week the past 7 days and month the past 30 days.
Short forms such as 24h, 7d, 30d and d, w, m are accepted, time_range is an alternative name, and an unrecognised value is ignored. body.count can also be written as num; a value outside the range 1 to 100 is ignored, and 15 articles come back.
Each row of news has a source naming the outlet and a published field that shows the publish age of the article. Bing News indexes recent articles only, so a query on an old or very niche topic can match no articles.
Fields in this section (3)
bing-news, body.freshness, body.count
Bing Search API web search reference
A page of bing-search holds about 10 results. body.page is a 1-based page number, and body.first is a 1-based offset that serves as an alternative, so 11 starts page 2; start is accepted as another name for it.
body.count can also be written as num, and above 10 the operation reads several result pages in one go. A body.count outside the range 1 to 50 is ignored, and 10 results come back; an invalid body.page or body.first is ignored as well.
On web search body.freshness offers day, week and month only, with the same short forms and the same time_range name as for news, and an unrecognised value is ignored. body.safe and its safesearch name behave as they do for images. body.device accepts desktop and mobile, and mobile returns the desktop ranking.
Each entry of people_also_ask is a related question carrying its question, while related_searches holds the related queries Bing shows. total_estimate is the estimated number of matches, and page_offset shows the offset of the returned page.
Fields in this section (7)
bing-search, body.page, body.first, body.count, body.freshness, body.safe, body.device
Choosing an index with the engine input
body.engine defaults to auto, which queries Bing, and bing means the same. brave queries an independent index. gnews returns ordinary web pages rather than news, with a publication date on every row and no snippet, and site:example.com and an exact phrase both apply.
gemini returns about 5 results per request with only a URL and a domain on each row, and it is the one index that supports the date operators after:2026-06-01 and before:2020-01-01; it drops site:. yandex is currently unavailable.
body.depth applies to gemini only, and the other indexes ignore it. exact runs the query once, while deep keeps searching around the query and returns tens of results that may drift from the exact query.
Fields in this section (3)
bing-search, body.engine, body.depth
Bing video search reference
A page of bing-videos holds about 30 videos. body.page, body.first, body.count and body.safe behave as they do for images, including their alternative names, and an invalid or unrecognised value is ignored. A body.count outside the range 1 to 60 falls back to 30 videos.
Rows of videos mix fields that are always present with optional ones. position, title, url, duration and platform are present on every row.
Here url leads to the watch page, duration gives the length of the video and platform names the hosting site, for instance YouTube, TikTok or Dailymotion. thumbnail_url, publisher, views, published and description appear when Bing shows them, and they give the thumbnail address, the channel or publisher that posted the video, how often it was watched, how long ago it was uploaded and its text description.
Fields in this section (5)
bing-videos, body.page, body.first, body.count, body.safe
Operations
Every public gateway operation uses POST /api/v1/{project}/{action}.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
Autocomplete suggestions
POST /api/v1/bing/bing-autocomplete
Returns the ordered query suggestions Bing offers for a partial search, which suits keyword research.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.q | string | Required | — | — |
body.gl | string | Optional | — | — |
body.hl | string | Optional | — | — |
body.mkt | string | Optional | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/bing/bing-autocomplete' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"gl":"us","q":"best lap"}}'Response fields
enginequerymktcountsuggestions[]
Image search
POST /api/v1/bing/bing-images
Searches Bing images and returns full-size image URLs, source pages, thumbnails and domains, with pixel size when available.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.q | string | Required | — | — | — |
body.count | integer | Optional | 35 | — | 1–60 |
body.first | integer | Optional | — | — | 1–9007199254740991 |
body.gl | string | Optional | — | — | — |
body.hl | string | Optional | — | — | — |
body.mkt | string | Optional | — | — | — |
body.page | integer | Optional | — | — | 1–9007199254740991 |
body.safe | string | Optional | — | "off""moderate""strict" | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/bing/bing-images' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"gl":"us","q":"eiffel tower at night"}}'Response fields
enginequerymktpage_offsetcountimages[]positiontitleimage_urlsource_urlthumbnail_urldomainwidthheightdescription
News search
POST /api/v1/bing/bing-news
Returns Bing News articles for a keyword with source, snippet, publish age and thumbnail, newest first.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.q | string | Required | — | — | — |
body.count | integer | Optional | 15 | — | 1–100 |
body.freshness | string | Optional | — | "hour""day""week""month" | — |
body.gl | string | Optional | — | — | — |
body.hl | string | Optional | — | — | — |
body.mkt | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/bing/bing-news' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"gl":"us","q":"tesla"}}'Response fields
enginequerymktcountnews[]positiontitleurlsourcesnippetpublishedthumbnail_url
Web search
POST /api/v1/bing/bing-search
Returns ranked Bing web results with title, URL, snippet and date, plus the extra blocks of the results page when Bing shows them.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.q | string | Required | — | — | — |
body.count | integer | Optional | 10 | — | 1–50 |
body.depth | string | Optional | "exact" | "exact""deep" | — |
body.device | string | Optional | — | "desktop""mobile" | — |
body.engine | string | Optional | "auto" | "auto""bing""brave""gnews""gemini""yandex" | — |
body.first | integer | Optional | — | — | 1–9007199254740991 |
body.freshness | string | Optional | — | "day""week""month" | — |
body.gl | string | Optional | — | — | — |
body.hl | string | Optional | — | — | — |
body.mkt | string | Optional | — | — | — |
body.page | integer | Optional | — | — | 1–9007199254740991 |
body.safe | string | Optional | — | "off""moderate""strict" | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/bing/bing-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"gl":"us","q":"best laptop 2026"}}'Response fields
enginequerymktpagepage_offsettotal_estimatecountresults[]positiontitleurldisplayed_urldomainsite_namefaviconsnippetdate
related_searches[]people_also_ask[]ads[]positionblocktitleurldisplayed_urldomaindescription
knowledge_paneltitledescriptionurl
answer_box
Video search
POST /api/v1/bing/bing-videos
Searches Bing videos and returns the watch-page URL, title, duration and hosting platform, with channel, views and upload age when shown.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.q | string | Required | — | — | — |
body.count | integer | Optional | 30 | — | 1–60 |
body.first | integer | Optional | — | — | 1–9007199254740991 |
body.gl | string | Optional | — | — | — |
body.hl | string | Optional | — | — | — |
body.mkt | string | Optional | — | — | — |
body.page | integer | Optional | — | — | 1–9007199254740991 |
body.safe | string | Optional | — | "off""moderate""strict" | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/bing/bing-videos' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"gl":"us","q":"how to make pizza"}}'Response fields
enginequerymktpage_offsetcountvideos[]
How calls work
POST /api/v1/bing/<action>withx-api-key,Content-Type: application/jsonand a requiredIdempotency-Key.- A successful call returns
ok: true:datais the result of the operation,meta.requestIdidentifies the recorded request andmeta.chargedCreditUnitsis the amount charged. Otherwiseokisfalseanderror.codenames the reason; readokanderror.coderather than relying on the HTTP status alone. Every gateway reply carries a request id for support:meta.requestId, or a top-levelrequestIdin a reply withoutmeta(such as a refusal before admission). - Charged the listed price only when a call succeeds. Failures are not charged; an unconfirmed outcome is released after at most 900 seconds without a charge.
- Repeating the same request with the same Idempotency-Key after it has finished returns the stored response for 24 hours without a new charge.
In the gateway reference: