Markdown
All endpoints

Bing search results

GET/v1/serp/bing/search

Organic results and related searches. The full tier adds the AI summary and ads.

Price

Price
$0.0013 per call; full tier $0.00375
Nothing found
Not charged when nothing is found
No data fetched
Not charged

Each call holds this price, charges it only when data is returned and releases it otherwise. This rule is for data endpoints only: when collecting AI answers, a no-answer or refused result is still a result and is charged.

Parameters

querystringRequired

The search query. Up to 500 characters.

countryUS, default US

Two-letter country code. Only tested countries are available.

tierbasic or full, default basic

Basic or full tier. The full tier returns more fields at a different price.

Headers

AuthorizationRequired

Bearer followed by your API key.

Idempotency-KeyRecommended

An ID you choose, up to 255 characters with no spaces. After a network error, resend with the same value and nothing is run or charged twice. It is remembered for 24 hours. The same value with different parameters returns idempotency_conflict.

X-Max-PriceOptional

The most you are willing to spend in US dollars, such as 0.50. If the request could cost more, it is refused: nothing runs and nothing is charged.

X-SourceOptional

Your own label, such as the product the call came from, up to 100 characters. Usage can be broken down by it.

X-End-UserOptional

Your own label for the end user this call serves, up to 100 characters. Do not put names, emails or other personal data in it.

Response

A successful call returns HTTP 200 with the data in data.item, one SearchPage object. Every field is always present: [] means none this time and null means not available or unknown. What the call cost is in meta.billing.

FieldTypeDescription
resultsSearchResult[]Organic results
featuresFeature[]The search engine’s own blocks, which take no organic position
adsAd[] | nullAds
related_searchesstring[] | nullRelated searches
people_also_askstring[] | nullPeople also ask
videosVideo[] | nullVideo results
productsProduct[] | nullProduct results
ai_summary{ text: string, citations: Citation[] } | nullThe AI summary on the page, with its sources

Nested objects

SearchResult6 fields
FieldTypeDescription
positionintegerPosition in the list, starting at 1
titlestring | nullTitle
urlstringURL
domainstringDomain
snippetstring | nullSnippet
published_atstring | nullWhen it was published; null if the platform does not say
Feature3 fields
FieldTypeDescription
type"engine_block"Type of block
titlestring | nullTitle
urlstring | nullURL
Ad8 fields
FieldTypeDescription
positioninteger | nullPosition in the list, starting at 1
titlestring | nullTitle
urlstring | nullURL
advertiserstring | nullAdvertiser
textstring | nullAd copy
blockstring | nullWhere the ad appears
sitelinks(string | null)[] | nullSitelinks
badges(string | null)[] | nullBadges
Video9 fields
FieldTypeDescription
positionintegerPosition in the list, starting at 1
titlestring | nullTitle
urlstring | nullURL
platformstring | nullThe platform it is on
authorstring | nullAuthor
duration_secondsinteger | nullLength in seconds
video_idstring | nullVideo ID
viewsinteger | nullViews
published_atstring | nullWhen it was published; null if the platform does not say
Product21 fields
FieldTypeDescription
positionintegerPosition in the list, starting at 1
titlestring | nullTitle
urlstring | nullURL
pricenumber | nullThe price, given only when it can be read exactly; masked prices and ranges are null
currencystring | nullCurrency
price_textstring | nullThe price exactly as the platform shows it
original_pricenumber | nullList price
sellerstring | nullSeller
platformstring | nullThe platform it is on
ratingnumber | nullRating
review_countinteger | nullNumber of reviews
product_idstring | nullProduct ID
sku_idstring | nullSKU ID
brandstring | nullBrand
image_urlstring | nullProduct image
labelstring | nullA recommendation or promotion label from the platform
availabilitystring | nullAvailability
deliverystring | nullDelivery note
discountstring | nullDiscount note
offersOffer[] | nullOffers from individual sellers
sponsoredboolean | nullWhether it is sponsored
Offer7 fields
FieldTypeDescription
sellerstring | nullSeller
pricenumber | nullPrice
currencystring | nullCurrency
price_textstring | nullThe price exactly as the platform shows it
urlstring | nullURL
availableboolean | nullWhether it is in stock
labelstring | nullA recommendation or promotion label from the platform
Citation12 fields
FieldTypeDescription
positionintegerPosition in the list, starting at 1
urlstringThe real URL, with redirect links resolved
domainstringDomain
titlestring | nullTitle
snippetstring | nullSnippet
site_namestring | nullSite name
published_atstring | nullWhen it was published; null if the platform does not say
authorstring | nullAuthor
platformstring | nullThe platform the source is on, such as a blogging site
quotesstring[] | nullThe passages of the source that were used
anchorsAnchor[] | nullWhich parts of the answer this source supports
citedboolean | nulltrue: used in the answer. false: only found while searching. null: cannot be told
Anchor2 fields
FieldTypeDescription
textstring | nullThe part of the answer this source supports, not text from the source
offsetinteger | nullCharacter offset in markdown
meta7 fields
FieldTypeDescription
capabilitystringEndpoint ID
result_status"complete" | "partial" | "empty"complete: everything. partial: only part of it. empty: nothing found
fetched_atstringWhen the data was fetched
cachedbooleanWhether the result came from a cache. Always false at present
replayedbooleanWhether this is the earlier result returned again for the same Idempotency-Key
unavailablestring[]Fields that could not be provided this time
billing{ amount: string, currency: "USD", balance_after: string | null }What this call was charged and the balance afterwards

Common errors

An error means nothing was charged, except settlement_unknown: it means billing is not known yet, so ask again with the same Idempotency-Key. See every error code.

ErrorHTTPMeaningCharged?
invalid_params400A parameter is invalidNot charged
max_price_exceeded400The most this could cost is above the limit you setNot charged
insufficient_balance402The balance is too lowNot charged
key_budget_exceeded402This key's spending limit does not cover itNot charged
idempotency_conflict409This Idempotency-Key was used for a different requestNot charged
upstream_failed502No result came back this time and nothing was charged; retry shortlyNot charged
timeout504The data did not arrive in time; nothing was chargedNot charged
upstream_busy503Busy now; retry shortlyNot charged
call_in_progress409The call under this Idempotency-Key is still running; ask again with the same key shortlyNot charged
settlement_unknown500Whether this was charged is not known yet; ask again with the same Idempotency-KeyUnknown yet
unauthorized401No credential was sent, or it is invalid, disabled or expiredNot charged
rate_limited429Too many requests, or too many calls in progressNot charged