Bing Search API
API Parameters
Search Query
-
- Name
-
q
- Required
- Required
- Description
-
This parameter is used for the terms you want to search on Bing. Queries can include operators and advanced filters like "machine learning models",
site:
,feed:
,AND
, orOR
.
Device
-
- Name
-
device
- Required
- Optional
- Description
-
The default parameter
desktop
defines the search on a desktop device. Themobile
parameter defines the search on a mobile device.
Geographic Location
-
- Name
-
location
- Required
- Optional
- Description
-
This parameter is used to specify the canonical location of the search. For exact targeting or to see all available options, check out the Locations API. If multiple locations match your input, the most popular one will be selected. For example -
location=New York
would selectNew York,United States
orlocation=London
would selectLondon TV Region,England,United Kingdom
.
-
- Name
-
market_code
- Required
- Optional
- Description
-
Defines the country for search results. Format is
language-country
, likeen-US
. For a list of market values, check the full list of supported Bingmarket_code
codes. Note: themarket_code
parameter can't be used together withcountry_code
parameter.
-
- Name
-
lat
- Required
- Optional
- Description
-
Parameter defines the latitude of the location you want to use for the search.
-
- Name
-
lon
- Required
- Optional
- Description
-
Parameter defines the longitude of the location you want to use for the search.
Localization
-
- Name
-
country_code
- Required
- Optional
- Description
-
Specifies the country for the search results if
market_code
is not specified. Defaults toUS
if unspecified ormarket_code
is not used. Check the full list of supported Bingcoutry_code
countries. Note: thecountry_code
parameter can't be used together withmarket_code
parameter.
-
- Name
-
language
- Required
- Optional
- Description
-
Sets the language for user interface text. Use 2-letter (ISO 639-1) or 4-letter codes ('
- '). Defaults to en
(English) if unspecified or unsupported. Check the full list of supported Binglanguage
languages.
Filters
-
- Name
-
safe_search
- Required
- Optional
- Description
-
This parameter toggles the
safe_search
feature for the results. Default isModerate
.safe_search
operates by filtering out adult content from your search results. Options are:off
- returns results with adult text, images, and videosmoderate
- returns results with adult text.strict
- don't return results with adult text, images, and videos
market_code
parameters,strict
is enforced regardless of this setting.
-
- Name
-
filters
- Required
- Optional
- Description
-
This parameter allows to use various filters to restrict search results. It supports a wide range of filtering options, including date-based:
ex1%3a"ez1"
- data from the past 24 hours.ex1%3a"ez2"
- data from the past week.ex1%3a"ez3"
- data from the past month.
Pagination
-
- Name
-
num
- Required
- Optional
- Description
-
This parameter specifies the number of results to display per page. Maximum number -
50
. Use in combination with thepage
parameter to implement pagination functionality.
-
- Name
-
page
- Required
- Optional
- Description
-
This parameter indicates which page of results to return. By default, it is set to
1
. Use in combination with the num parameter to implement pagination.
Engine
-
- Name
-
engine
- Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
bing
.
API key
-
- Name
-
api_key
- Required
- Required
- Description
-
The
api_key
authenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY
) or in the Authorization header (Bearer YOUR_API_KEY
).
Zero Data Retention
-
- Name
-
zero_retention
- Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
true
to disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Full Response

https://www.searchapi.org/api/v1/search?engine=bing&location=10003%2CNew+York%2CUnited+States&q=Restaurants+near+me
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "Restaurants near me",
"location": "10003,New York,United States"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_lLDb6vP7p7aJueKoA5jqWZw2",
"status": "Success",
"created_at": "2024-02-05T13:17:49Z",
"request_time_taken": 1.59,
"parsing_time_taken": 0.1,
"total_time_taken": 1.69,
"request_url": "https://www.bing.com/search?form=QBRE&q=Restaurants+near+me&lq=0&count=10&rdr=1",
"html_url": "https://www.searchapi.io/api/v1/searches/search_lLDb6vP7p7aJueKoA5jqWZw2.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_lLDb6vP7p7aJueKoA5jqWZw2"
},
"search_parameters": {
"engine": "bing",
"q": "Restaurants near me",
"device": "desktop",
"location": "10003,New York,United States",
"location_used": "10003,New York,United States"
},
"search_information": {
"query_displayed": "Restaurants near me",
"page": 1,
"detected_location": "New York, New York",
"detected_latitude": "40.73225402832031",
"detected_longtitude": "-73.98741149902344"
},
"ads": [
{
"position": 1,
"block_position": "middle",
"title": "Panera Bread | Visit Your Local Cafe Today",
"tracking_link": "https://www.bing.com/aclk?",
"source": "panerabread.com",
"displayed_link": "https://www.panerabread.com",
"snippet": "Sandwiches, soup, salad & more. Find classic flavors you love at a Panera near you. You'll find all the dishes you crave and options for everyone in the family at Panera.",
"sitelinks": {
"inline": [
{
"title": "$1 Delivery From Panera",
"tracking_link": "https://www.bing.com/aclk?"
},
...
]
},
"assets": {
"extensions": [
"Order in the App · Positively Good Food · Order Online · Quality Ingredients"
]
}
},
...
],
"organic_results": [
{
"position": 1,
"title": "Book the best restaurants nearby | OpenTable",
"source": "OpenTable",
"link": "https://www.opentable.com/nearby",
"domain": "www.opentable.com",
"displayed_link": "https://www.opentable.com/nearby",
"snippet": "Restaurants near you. OpenTable connects you with the right restaurant for any craving or occasion. Share your location with us and we’ll put together a delicious list …",
"snippet_highlighted_words": ["Restaurants near", "restaurant"],
"rich_snippet": {
"detected_extensions": {
"questions": [
{
"question": "What dining occasions can I find?",
"link": "https://www.opentable.com/nearby",
"answer": "You can find a la carte dining, set menus, happy hours, ticketed events and much more."
},
...
]
}
},
"date": "4 days ago",
"explore_futher": [
{
"title": "List Of All Restaurants Near Me",
"link": "https://near-me.store/en/list-of-all-restaurants-near-me",
"domain": "near-me.store"
},
...
],
"cached_page_link": "https://cc.bingj.com/cache.aspx?Restaurants%20near%20me&d=5039044971212218&w=jsySTeOKjMLzfnFVaSSkSuEm0H0Usm1b",
"favicon": "https://www.bing.com/th?id=ODLS.ce021d77-7e29-4145-aa6d-3a59ce63d39e&w=32&h=32&qlt=90&pcl=fffffa&o=6&pid=1.2"
}
...
],
"local_map": {
"link": "https://www.bing.com/maps?&mepi=34~Restaurant~Pole~Map_Image&ty=17&q=restaurants%20near%20me&ss=filter.entitylisttype%3A%22Restaurant%22&cacheid=9930aad9-9a5b-4448-bf8a-ef571e11c7ef&segment=Restaurant&mb=40.736885~-73.991325~40.728252~-73.983856&ppois=40.730926513671875_-73.99024963378906_IPPUDO%20NY%20East%20village_YN618x401896293~40.73222351074219_-73.98821258544922_Han%20Dynasty_YN873x128887742~40.72923278808594_-73.98451232910156_Momofuku%20Noodle%20Bar_YN618x43720538~40.731746673583984_-73.98390197753906_Artichoke%20Pizza_YN618x162106270~40.729637145996094_-73.98793029785156_Sobaya_YN618x33177190~&v=2&sV=1&FORM=MPSRPL",
"gps_coordinates": {
"latitude": "40.732569",
"longitude": "-73.987591"
},
"image": "https://www.bing.com/maps/geoplat/REST/v1/Imagery/Map/RoadVibrant/40.732569,-73.987591/14?ms=200,277&ml=Basemap,LandCover,Landmarks,OsmBuildings&key=AnTcaqBi2ypp0xI-OZNi4W_ik2KhjgpqioTAtXLC8GzkMBQRMlyxvxyTnd5b73im&c=en-US&fmt=png&od=2&shading=hill&logo=n&da=ro&ppsc=dpss,rstp&pp=40.730927,-73.99025;S575;IPPUDO+NY+East+village&pp=40.732224,-73.988213;S575;Han+Dynasty&pp=40.729233,-73.984512;S575;Momofuku+Noodle+Bar&pp=40.731747,-73.983902;S575;Artichoke+Pizza&pp=40.729637,-73.98793;S575;Sobaya&pp=40.730606,-73.98587;S575;Cacio+e+Pepe&pp=40.732433,-73.987556;S575;The+Penny+Farthing&pp=40.728252,-73.988129;S575;Pommes+Frites&pp=40.730598,-73.986496;S575;Kanoyama&pp=40.736885,-73.991325;S575;Union+Square+Cafe&pp=40.732746,-73.985207;S575;The+Winslow&pp=40.732964,-73.986275;S575;Bite&pp=40.733662,-73.989586;S575;Dos+Toros+Taqueria&pp=40.73035,-73.983856;S575;Motorino"
},
"local_results": [
{
"position": 1,
"id": "YN618x401896293",
"title": "IPPUDO NY East village",
"link": "https://www.bing.com/search?q=IPPUDO+NY+East+village+New+York&filters=segment%3a%22Restaurant%22+local_ypid%3a%22YN618x401896293%22+cacheid%3a%229930aad9-9a5b-4448-bf8a-ef571e11c7ef%22+cq%3a%22restaurants+near+me%22+ufn%3a%22IPPUDO+NY+East+village+New+York%22&FORM=SNAPCR",
"rating": 4.5,
"reviews": 4900,
"reviews_source": "Facebook",
"price": "$$",
"price_description": "Cheap",
"type": "Japanese East Village",
"extensions": [
"Delivery",
"Takeout",
"Good for ramen noodles, spicy ramen, excellent ramen"
],
"gps_coordinates": {
"latitude": "40.730926513671875",
"longitude": "-73.99024963378906"
},
"thumbnail": "https://www.bing.com/th?id=OLC.D8jkwv4UOSS%2foQ480x360&w=200&h=200&c=7&rs=1&qlt=80&o=6&cdv=1&pid=Local"
},
...
],
"related_searches": [
{
"query": "restaurant restaurants near my location",
"link": "https://www.bing.com/search?q=restaurant+restaurants+near+my+location&FORM=QSRE1"
},
...
],
"pagination": {
"current": 1,
"next": "https://www.bing.com/search?lq=0&count=10&rdr=1&q=Restaurants+near+me&FPIG=649846703F8146F1B80F208F3F33472B&first=11&FORM=PORE",
"other_pages": {
"2": "https://www.bing.com/search?lq=0&count=10&rdr=1&q=Restaurants+near+me&FPIG=649846703F8146F1B80F208F3F33472B&first=11&FORM=PERE",
...
}
}
}
Knowledge Graph - Local Business Entity

https://www.searchapi.org/api/v1/search?engine=bing&q=Apple+Crossgates
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "Apple Crossgates"
}
response = requests.get(url, params=params)
print(response.text)
{
"knowledge_graph": {
"title": "Apple Crossgates",
"website": "www.apple.com",
"address": "1 Crossgates Mall Road, Albany, NY 12203",
"phone": "(518) 389-0140",
"hours": "Open · Closes 8 PM",
"open_hours": [
{
"name": "Thursday",
"value": "10 AM - 8 PM"
},
...
]
}
}
Organic Results

https://www.searchapi.org/api/v1/search?engine=bing&location=New+York&q=Apple
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "Apple",
"location": "New York"
}
response = requests.get(url, params=params)
print(response.text)
{
"organic_results": [
{
"position": 1,
"title": "Apple",
"source": "Apple",
"link": "https://www.apple.com/",
"domain": "www.apple.com",
"displayed_link": "https://www.apple.com",
"snippet": "Apple Store Apple Store. Find a Store; Genius Bar; Today at Apple; Apple Camp; Apple Store App; Certified Refurbished; Apple Trade In; Financing; Carrier Deals at Apple; …",
"sitelinks": {
"expanded": [
{
"title": "Support",
"link": "https://support.apple.com/",
"snippet": "Some counterfeit and third party power adapters and batterie…"
},
...
]
},
"cached_page_link": "https://cc.bingj.com/cache.aspx?Apple&d=4626564896986713&w=w9Yh0oyjdbw363dfiQa7FqhKB7DP5Ymk",
"favicon": "https://www.bing.com/th?id=ODLS.39da22a0-9d13-45b0-a8d6-19146873a815&w=32&h=32&qlt=90&pcl=fffffa&o=6&pid=1.2"
},
...
]
}
Ads

https://www.searchapi.org/api/v1/search?engine=bing&location=New+York&q=VPN
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "VPN",
"location": "New York"
}
response = requests.get(url, params=params)
print(response.text)
{
"ads": [
{
"position": 1,
"block_position": "top",
"title": "Top 10 VPN Providers for 2024 | Updated 5 Minutes Ago",
"tracking_link": "https://www.bing.com/aclk?...",
"displayed_link": "https://www.vpncenter.com/Best-VPN",
"snippet": "Save up to 83% on Best VPNs for Your Devices. Get the Best VPN Now! Stay Secure & Private Online With the Best VPN. Compare & Find the Best VPN Today!",
"sitelinks": {
"inline": [
{
"title": "Best VPN For Windows",
"tracking_link": "https://www.bing.com/aclk?..."
},
...
]
}
},
...
]
}
Shopping Ads

https://www.searchapi.org/api/v1/search?engine=bing&q=iphone+15
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "iphone 15"
}
response = requests.get(url, params=params)
print(response.text)
{
"shopping_ads": [
{
"position": 1,
"title": "Apple iPhone 15 - Blue - 128GB (With 24 Monthly Payments + Plan)",
"seller": "T-Mobile",
"link": "https://www.t-mobile.com/cell-phone/apple-iphone-15?sku=195949035036&cmpid=MGPO_PL_P_SHOPIPN15_92700077951723296_&gclid=6df6f9c7340e12c4dfd791d5361a9ae2&gclsrc=3p.ds&&cmpid=ADV_PL__92700077951723296&msclkid=6df6f9c7340e12c4dfd791d5361a9ae2",
"price": "$0.00 now",
"extracted_price": 0.0,
"installment": {
"down_payment": "$0.00 now",
"extracted_down_payment": 0.0,
"months": "24",
"extracted_months": 24,
"cost_per_month": "$30.42",
"extracted_cost_per_month": 30.42
},
"image": "https://thcf.bing.com/th/id/OPHS.nHLU4AE9OlZShQ474C474?w=116&h=176&o=5&bw=6&bc=ffffff&pid=21.1"
},
...
]
}
Top Stories

https://www.searchapi.org/api/v1/search?engine=bing&q=Dire+wolf
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "Dire wolf"
}
response = requests.get(url, params=params)
print(response.text)
{
"top_stories": [
{
"position": 1,
"title": "Colossal scientist now admits they haven’t really made dire wolves",
"snippet": "Despite a huge media fanfare in which Colossal Biosciences claimed to have …",
"link": "https://www.msn.com/en-us/news/other/colossal-scientist-now-admits-they-haven-t-really-made-dire-wolves/ar-AA1FhLmr?ocid=BingNewsSerp",
"source": "New Scientist on MSN",
"date": "4h",
"thumbnail": "https://th.bing.com/th?id=OVFT.0zeqc5hQOtr9ygudbB3UYC&pid=News&w=300&h=186&c=14&rs=2&qlt=90"
},
{
"position": 2,
"title": "How Colossal Biosciences’ Dire Wolf De-Extinction Advances Conservation Science",
"link": "https://www.msn.com/en-us/news/world/how-colossal-biosciences-dire-wolf-de-extinction-advances-conservation-science/ar-AA1ERlJO?ocid=BingNewsSerp",
"source": "Green Matters on MSN",
"date": "6d",
"tag": "Opinion",
"thumbnail": "https://th.bing.com/th?id=OVFT.3Vpv3w3OkgeQ0cugbJD0Ii&pid=News&w=80&h=80&c=14&rs=2&qlt=90"
},
...
]
}
Local Results

https://www.searchapi.org/api/v1/search?engine=bing&location=New+York%2CUnited+States&q=Best+restaurants+near+me
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "Best restaurants near me",
"location": "New York,United States"
}
response = requests.get(url, params=params)
print(response.text)
{
"local_map": {
"link": "https://www.bing.com/maps?&mepi=34~Restaurant~Pole~Map_Image&ty=17&q=best%20restaurants%20near%20me&ss=filter....",
"gps_coordinates": {
"latitude": "43.188219",
"longitude": "-74.184807"
},
"image": "https://www.bing.com/maps/geoplat/REST/v1/Imagery/Map/RoadVibrant/43.188219,-74.184807/9?ms=200,277&ml=Basema..."
},
"local_results": [
{
"position": 1,
"id": "YN639x11260746",
"title": "Sport Island Pub & Restaurant",
"link": "https://www.bing.com/search?q=Sport+Island+Pub+%26+Restaurant+Northville&filters=segment%3a%22Restaurant%22...",
"rating": 3.5,
"rating_source": "Tripadvisor",
"reviews": 77,
"price": "$$",
"price_description": "Cheap",
"type": "American, Bar, Pub",
"extensions": [
"Delivery",
...
],
"gps_coordinates": {
"latitude": "43.21641540527344",
"longitude": "-74.18236541748047"
},
"thumbnail": "https://www.bing.com/th?id=OLC.QiQ4un070LK97w480x360&w=200&h=200&c=7&rs=1&qlt=80&o=6&cdv=1&pid=Local"
},
...
]
}
Related Questions

https://www.searchapi.org/api/v1/search?engine=bing&q=What+is+GPT-4%3F
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "What is GPT-4?"
}
response = requests.get(url, params=params)
print(response.text)
{
"related_questions": [
{
"question": "What does GPT 4 mean?",
"snippet": "GPT stands for Generative Pre-trained Transformer (GPT), a type of language model that uses deep learning to generate human-like, conversational text. What can GPT-4 do? Since GPT-4 is a large multimodal model (emphasis on multimodal), it is able to accept both text and image inputs and output human-like text.",
"source": {
"title": "What is GPT-4? Here's everything you need to know | ZDNET",
"answer": "https://www.bing.com/ck/a?!&&p=a93eae11872bbd05JmltdHM9MTcwNDkzMTIwMCZpZ3VpZD0xODEzOWFjOC00NWFiLTZlOGUtMmI3NC04ZWNiNDQ5YjZmZDImaW5zaWQ9NTU2OQ&ptn=3&ver=2&hsh=3&fclid=18139ac8-45ab-6e8e-2b74-8ecb449b6fd2&psq=What+is+GPT-4%3f&u=a1aHR0cHM6Ly93d3cuemRuZXQuY29tL2FydGljbGUvd2hhdC1pcy1ncHQtNC1oZXJlcy1ldmVyeXRoaW5nLXlvdS1uZWVkLXRvLWtub3cv&ntb=1",
"domain": "www.bing.com",
"displayed_link": "www.zdnet.com/article/what-is-gpt-4-heres-everything-yo…"
}
},
...
]
}
Related Searches

https://www.searchapi.org/api/v1/search?engine=bing&q=Cars
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "Cars"
}
response = requests.get(url, params=params)
print(response.text)
{
"related_searches": [
{
"query": "www.cars.co.za",
"link": "https://www.bing.com/search?q=www.cars.co.za&FORM=QSRE1"
},
...
]
}
Inline Videos and Shorts

https://www.searchapi.org/api/v1/search?engine=bing&q=Animal+Videos
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "Animal Videos"
}
response = requests.get(url, params=params)
print(response.text)
{
"inline_videos": [
{
"position": 1,
"title": "50 Funny Animal Videos To Crack You Up All Long Day",
"link": "https://www.youtube.com/watch?v=kj1-rR3udNs",
"video_link": "https://www.bing.com/th?id=OM.3cr9tnA0yD5vWw_1721769740&pid=1.7",
"source": "YouTube",
"channel": "Funny Pet's Life",
"description": "🐶Do you have a cute animal you want to see featured in our next compilation?",
"is_adult": "false",
"views": 539500,
"duration": "15:46",
"date": "7 months ago",
"thumbnail": "https://www.bing.com/th?id=OVP.oUZA30pbWnfg-stWoYJoUQHgFo&w=530&h=298&c=7&rs=1&qlt=90&o=6&pid=1.7"
},
...
],
"inline_shorts": [
{
"position": 1,
"title": "Funny Dog and Cat Videos - Cats vs Dogs - Funny Moments Animals",
"link": "https://www.tiktok.com/@animals.clips/video/7184497062795398406",
"source": "TikTok",
"channel": "viralweeklyofficial",
"duration": "01:00",
"thumbnail": "https://www.bing.com/th?id=OVP.mwvyBL9_4nmk3faRxxn5BAEkII&w=150&h=266&c=7&rs=1&qlt=90&o=6&pid=1.7"
},
...
]
}
Inline Images

https://www.searchapi.org/api/v1/search?engine=bing&q=Animals
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "Animals"
}
response = requests.get(url, params=params)
print(response.text)
{
"inline_images": {
"suggestions": [
{
"title": "Cute Babies",
"link": "https://www.bing.com/images/search?q=Animals+Cute+Babies&FORM=IARSLK",
"thumbnail": "https://www.bing.com/th?q=Animals+Cute+Babies&w=120&h=50&c=7&o=5&pid=1.7&mkt=en-US&cc=US&setlang=en&adlt=moderate"
} ...
],
"images": [
{
"title": "Group of African safari animals toge | High-Quality Animal Stock Photos ...",
"link": "https://www.bing.com/images/search?q=animals&id=F0D44DF91DFF05726034E9A6DCBB299EC1DAB497&FORM=IQFRBA",
"source": {
"name": "creativemarket.com"
},
"thumbnail": "https://www.bing.com/th?id=OIP.KCb7Up4aqeX5cKdvS3h_dAHaE7&w=225&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
} ...
]
}
}
Inline Shopping

https://www.searchapi.org/api/v1/search?engine=bing&location=New+York&q=Keyboard
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "Keyboard",
"location": "New York"
}
response = requests.get(url, params=params)
print(response.text)
{
"inline_shopping": [
{
"position": 1,
"title": "Logitech K120 Wired Keyboard For Windows, USB Plug-And-Play, Full-Size, Spill-Resistant, Curved Space Bar, Compatible With PC, Laptop, Black",
"link": "https://www.bing.com/shop/productpage?q=Logitech K120 Wired Keyboard For Windows, USB Plug-And-Play, Full-Size, Spill-Resistant, Curved Space Bar, Compatible With PC, Laptop, Black&filters=scenario:\"17\" gType:\"12\" gId:\"118724195429\" gGlobalOfferIds:\"118724195429\" NonSponsoredOffer:\"True\"&productpage=true&FORM=SSAPC1",
"seller": "Walmart",
"rating": 4.4,
"reviews": 198,
"price": "$18.42",
"extracted_price": 18.42,
"thumbnail": "https://www.bing.com/th/id/OPHS.kvffVb6WDoJ7UQ474C474?w=145&h=145&c=17&o=6&pid=21.1"
},
...
]
}
Answer Box

https://www.searchapi.org/api/v1/search?engine=bing&q=Berlin
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "bing",
"q": "Berlin"
}
response = requests.get(url, params=params)
print(response.text)
{
"answer_box": {
"type": "core_answer",
"answer": "Berlin",
"thumbnail": "https://th.bing.com/th/id/OSK.guCr01rE0juM1FRsZZW9w2Du34gOTNzVm7XQIaDglYI?w=200&h=200&c=12&o=6&pid=SANGAM",
"related_answers": [
"Switzerland: Bern",
"France: Paris",
"Italy: Rome",
"Poland: Warsaw",
"United States: Washington, D.C."
]
}
}