Skip to documentation
ScraperData

SERP API

Bing search

The same /v1/search endpoint with engine=bing returns Bing's results as JSON: web results, images, news, videos and shopping.

Send the API key in the X-API-Key header, or as the api_key query parameter, exactly like Google searches (Authentication). Bing searches can also run as async tasks with pingback_url.

Parameters

FieldTypeDescription
enginestringrequired Set it to bing. Without it the search goes to Google.Values:bing
qstringrequired The search query, up to 2,048 characters.Example: best laptop 2026
typestringoptional Leave it out (or send search) for web results; images, news, videos or shopping for those lists. Any other value answers 400 invalid_type.Values:searchimagesnewsvideosshoppingDefault: search
glstringoptional Country, as a two-letter code. us, in, gb, de, es, it, jp, kr and br search from their own region with their own market. Any other country is searched as the US: the answer then says gl: "us" and keeps what you sent in gl_requested.Default: usExample: in
hlstringoptional Language of the results page, as a code.Default: enExample: de
locationstringoptional A city or region in any words. Bing searches the query in that place ("plumber" with Austin, Texas searches "plumber in Austin, Texas"), while gl and hl still pick the market and the language. It is passed on as written; Google's place names are not needed.Example: Austin, Texas
devicestringoptional Search as a desktop or a phone.Values:desktopmobileDefault: desktop
pageintegeroptional Web results only: the first results page to get, starting at 1. Images, news, videos and shopping ignore it and always return their first page (search_parameters.page then says 1).Default: 1
num_pagesintegeroptional Web results only: how many results pages to get, from 1 to 10; each page costs a credit. Images, news, videos and shopping ignore it: one page, one credit.Default: 1
response_typestringoptional json for the parsed results, html for Bing's own page, or both. One page comes back as html (a string), several pages as html_pages: a list of { page, html }.Values:jsonhtmlbothDefault: json
pingback_urlstringoptional Queue the search and get the answer later; see Async tasks.

What comes back

FieldTypeDescription
search_metadataobjectAbout this request.
idstringA unique id for the search.
statusstringSuccess when Bing's page came back.
created_atstringWhen the search ran, in ISO 8601 (UTC).
pagesintegerHow many results pages came back.
credits_chargedintegerCredits this request cost: one per page that came back.
task_idstringOnly for async tasks: the task the result belongs to.
search_parametersobjectWhat the search used.
enginestringbing
qstringThe query.
locationstringThe location you sent, or null.
glstringThe country searched.
gl_requestedstringOnly when your country was searched as the US: the country you sent.
hlstringThe language.
page, num_pagesintegerThe first page and the number of pages that came back.
devicestringdesktop or mobile.
typestringsearch, images, news, videos or shopping.
response_typestringjson, html or both.
search_informationobjectAbout the results.
query_displayedstringThe query.
total_resultsintegerWeb results only: how many results Bing counts.
organic_resultsarrayWeb results.
positionintegerIts place in the list, counting on across pages.
pageintegerThe results page it came from.
title, linkstringThe title and the real address (not Bing's click-tracking link).
displayed_link, sourcestringThe address as Bing shows it, and the site's name.
snippet, datestringThe text under the title, and its date when Bing shows one.
adsarrayWeb: text ads with title, displayed_link, snippet, and link when Bing gives the real address. Shopping: sponsored products with title, price, extracted_price, old_price, seller, image and offer_id, and no link (their only links are paid ad clicks). Ad redirect links are never included, so reading them never counts as a click.
related_searchesarrayWeb: query and link of each search Bing suggests.
images_resultsarraytype=images.
positionintegerIts place in the list, counting on across pages.
pageintegerThe results page it came from.
title, link, sourcestringThe title, the page the image is on and its site.
thumbnail, originalstringBing's thumbnail and the original file.
news_resultsarraytype=news.
positionintegerIts place in the list, counting on across pages.
pageintegerThe results page it came from.
title, link, sourcestringThe headline, the article and its publisher.
snippetstringThe text under the headline, only when Bing shows one: specific queries ("india cricket") usually have it, broad ones ("technology") often do not.
date, thumbnailstringHow long ago it was published, and the picture, when Bing shows them.
video_resultsarraytype=videos.
positionintegerIts place in the list, counting on across pages.
pageintegerThe results page it came from.
title, linkstringThe title and the video page.
platform, channel, views, date, duration, thumbnailstringWhere it is, who posted it, views, when, length and the picture.
shopping_resultsarraytype=shopping.
positionintegerIts place in the list, counting on across pages.
pageintegerThe results page it came from.
titlestringThe full product name.
linkstringBing's product page, which lists the stores and their prices. Bing's results page has no direct store address, so none is given (most shopping APIs work this way). Only shopping_results have a link; ads do not.
price, extracted_price, old_pricestring / numberThe price as shown, as a number, and the price before a sale when there is one.
sellerstringThe store, when Bing names one.
rating, reviewsnumber / stringThe star rating and the number of reviews, only on products where Bing shows them; many searches have none.
image, offer_idstringThe product picture and Bing's offer id.

Examples

The rest of the answer has the same search_metadata, search_parameters and search_information as the web example.

type=images
"images_results": [
  {
    "position": 1,
    "page": 1,
    "title": "Eiffel Tower at sunset",
    "link": "https://www.example.com/paris/eiffel-tower",
    "source": "example.com",
    "thumbnail": "https://ts2.mm.bing.net/th?id=OIF.example&pid=15.1",
    "original": "https://www.example.com/images/eiffel-tower.jpg"
  }
]
type=news
"news_results": [
  {
    "position": 1,
    "page": 1,
    "title": "Stock market today: Nasdaq, S&P 500 pare losses",
    "link": "https://www.msn.com/en-us/money/general/stock-market-today/ar-AA2icWxW",
    "source": "Investopedia on MSN",
    "snippet": "Major indexes are mixed in afternoon trading...",
    "date": "10 hours ago",
    "thumbnail": "https://www.bing.com/th?id=ONUT.example&pid=News"
  }
]
type=videos
"video_results": [
  {
    "position": 1,
    "page": 1,
    "title": "Python Full Course | Python Tutorial For Beginners",
    "link": "https://www.youtube.com/watch?v=o1fjWjReodE",
    "platform": "YouTube",
    "channel": "Simplilearn",
    "views": "11.8K views",
    "date": "5 months ago",
    "duration": "22:45:50",
    "thumbnail": "https://ts2.mm.bing.net/th?id=OVP.example&pid=15.1"
  }
]
type=shopping
"shopping_results": [
  {
    "position": 1,
    "page": 1,
    "title": "ASICS Women's GEL-Nimbus 27 Road-Running Shoes Cream/Edo Purple 6.5",
    "link": "https://www.bing.com/shop/entitydetails?q=running+shoes&...",
    "price": "$89.95",
    "extracted_price": 89.95,
    "seller": "Amazon.com",
    "rating": 4.6,
    "reviews": "10K+",
    "image": "https://th.bing.com/th/id/OPHS.example?w=220&h=220",
    "offer_id": "427740188071"
  }
],
"ads": [
  {
    "title": "Under Armour Mens Charged Gemini Men's Running Shoes - White, 13",
    "price": "$83.97",
    "extracted_price": 83.97,
    "old_price": "$110.00",
    "seller": "Under Armour",
    "image": "https://th.bing.com/th?id=OPHS.example&w=180&h=180",
    "offer_id": "485180602969"
  }
]

Response headers

FieldTypeDescription
X-Credits-ChargedintegerCredits this request cost.
X-Credits-UsedintegerCredits used this period, this request included.
X-Credits-LimitintegerYour plan's credits for the period (only when the plan has a cap).
X-Credits-LeftintegerCredits left this period (only when the plan has a cap).
X-PlanstringYour plan's id.

Errors

Errors never cost credits. Every error code is on the Errors page; these are the ones a Bing search meets most:

FieldTypeDescription
invalid_engine400engine is not google, bing, google_maps, zumper, realtor, redfin, squareyards, nobroker, commonfloor, forsalebyowner or rsvpre.
invalid_type400With engine=bing, type is not search, images, news, videos or shopping.
missing_query, query_too_long400q is missing or longer than 2,048 characters.
invalid_response_type, invalid_pingback_url400response_type or pingback_url has a value it cannot take.
quota_exceeded, concurrency_limit_reached429Not enough credits, or too many searches at once for your plan. Retry after Retry-After seconds.
upstream_error, upstream_unavailable, upstream_timeout502 / 503 / 504Bing could not be reached in time. Retry in a few seconds.
api_paused503Bing Search is paused for maintenance. Retry after Retry-After seconds.
400 Bad Request
{
  "error": {
    "code": "invalid_type",
    "message": "With engine=bing the type parameter must be search, images, news, videos or shopping."
  },
  "charged": false
}

Credits

Each results page costs one credit, the same as Google; images, news, videos and shopping are one page each. Failed searches are free.