Bing Videos API Documentation
Bing Videos API allows you to retrieve videos and metadata for any search query and filter them based duration, quality, time period, source, and more.
API Parameters
Search Query
-
- Name
-
q - Required
- Required
- Description
-
This parameter is used for the terms you want to search on Bing Videos.
Device
-
- Name
-
device - Required
- Optional
- Description
-
The default parameter
desktopdefines the search on a desktop device. Themobileparameter defines the search on a mobile device. Thetabletparameter defines the search on a tablet device.
Localization
-
- 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_codecodes. Note: themarket_codeparameter can't be used together withcountry_codeparameter.
-
- Name
-
country_code - Required
- Optional
- Description
-
Specifies the country for the search results if
market_codeis not specified. Defaults toUSif unspecified ormarket_codeis not used. Check the full list of supported Bingcoutry_codecountries. Note: thecountry_codeparameter can't be used together withmarket_codeparameter.
-
- 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 Binglanguagelanguages.
Filters
-
- Name
-
safe_search - Required
- Optional
- Description
-
This parameter toggles the
safe_searchfeature for the results. Default isModerate.safe_searchoperates 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_codeparameters,strictis enforced regardless of this setting.
-
- Name
-
duration - Required
- Optional
- Description
-
This parameter controls the duration of the videos. There are few options available:
short,mediumandlong.
-
- Name
-
time_period - Required
- Optional
- Description
-
This parameter restricts results to URLs based on date. Supported values are:
last_day,last_week,last_month,last_year.
-
- Name
-
quality - Required
- Optional
- Description
-
This parameter restricts results based on video quality. Supported values are:
lower_than_360p,360p_or_higher,480p_or_higher,720p_or_higherand1080p_or_higher.
-
- Name
-
source - Required
- Optional
- Description
-
This parameter controls the source of the videos. These options are available:
dailymotion,vimeo,metacafe,hulu,vevo,myspace,mtv,cbs,fox,cnnandmsn.
-
- Name
-
price - Required
- Optional
- Description
-
This parameter controls the price of the videos. These options are available:
free,paid.
Pagination
-
- Name
-
page - Required
- Optional
- Description
-
This parameter indicates which page of results to return. By default, it is set to
1. The fieldpaginationnextin the response specifies if there is a next page of results.
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_videos.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates 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
trueto 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.io/api/v1/search?engine=bing_videos&q=Artificial+Intelligence
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "bing_videos",
"q": "Artificial Intelligence"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_vr7K8ndWgWe1iDjm3P45k2mY",
"status": "Success",
"created_at": "2025-09-05T01:02:13Z",
"request_time_taken": 2.38,
"parsing_time_taken": 0.02,
"total_time_taken": 2.4,
"request_url": "https://www.bing.com/videos/search?q=Artificial+Intelligence&cc=US&first=1",
"html_url": "https://www.searchapi.io/api/v1/searches/search_vr7K8ndWgWe1iDjm3P45k2mY.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_vr7K8ndWgWe1iDjm3P45k2mY"
},
"search_parameters": {
"engine": "bing_videos",
"q": "Artificial Intelligence",
"device": "desktop",
"country_code": "US",
"safe_search": "moderate"
},
"search_information": {
"query_displayed": "Artificial Intelligence",
"safe_search": "Moderate"
},
"suggestions": [
{
"title": "Artificial Intelligence for Beginners",
"link": "https://www.bing.com/videos/search?q=Artificial+Intelligence+for+Beginners&FORM=RESTAB",
"thumbnail": "https://th.bing.com/th?q=Artificial+Intelligence+for+Beginners&w=42&h=42&c=7&rs=1&p=0&o=7&pid=1.7&rm=3&mkt=en-US&cc=US&setlang=en&adlt=moderate&t=1"
},
...
],
"videos": [
{
"position": 1,
"title": "Artificial Intelligence Full Course 2025 | Artificial Intelligence Tutorial For Beginners | Edureka",
"link": "https://www.youtube.com/watch?v=96PSaT2SGDE",
"snippet": "๐ฅPGP in Generative AI and ML in collaboration with Illinois Tech: https://www.edureka.co/executive-programs/pgp-generative-ai-machine-learning-certification-training ๐ฅGenerative AI Course: Masters Program: https://www.edureka.co/masters-program/generative-ai-prompt-engineering-training (Use Code \"๐๐๐๐๐๐๐๐๐ ...",
"length": "9:41:26",
"source": "YouTube",
"date": "1 week ago",
"channel": "edureka!",
"views": 8800,
"thumbnail": "data:image/webp;base64,UklGRmg..."
},
...
],
"shorts": [
{
"position": 1,
"title": "Who's Culture trains AI? | Alvin O. Forteta | TEDxYola",
"link": "https://www.youtube.com/watch?v=zf2nWqBI6HY",
"length": "15:48",
"channel": "TEDx Talks",
"views": 2,
"thumbnail": "data:image/webp;base64..."
},
...
],
"ads": [
{
"position": 1,
"title": "Artificial Intelligence | AI Certificate Programs",
"link": "https://online.cornell.edu/ai/?creative=&keyword=generative%20artificial%20intelligence&matchtype=p&network=o&device=c&utm_source=bing&utm_medium=cpc&utm_campaign=ai_US+-+AI+Certificates+-+Bing&utm_source=bing&utm_medium=cpc&utm_term=generative%20artificial%20intelligence&utm_content=g__p&creative=&keyword=generative%20artificial%20intelligence&matchtype=p&network=o&device=c&url=https%3A%2F%2Fonline.cornell.edu%2Fai%2F%3Fcreative%3D%26keyword%3Dgenerative%2520artificial%2520intelligence%26matchtype%3Dp%26network%3Do%26device%3Dc&target=&position=&msclkid=4a1dc4697c861944f7b0acd34a112cc5",
"displayed_link": "https://online.cornell.edu",
"tracking_link": "https://www.bing.com/aclick?ld=e8ruEVDmu_vJqoCJkNQ70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ayUyNTNEbyUyNTI2ZGV2aWNlJTI1M0RjJTI2dGFyZ2V0JTNkJTI2cG9zaXRpb24lM2QlMjZtc2Nsa2lkJTNkNGExZGM0Njk3Yzg2MTk0NGY3YjBhY2QzNGExMTJjYzU&rlid=4a1dc4697c861944f7b0acd34a112cc5&ntb=1",
"snippet": "AI is here to stay. Learn to harness it with Cornell's AI-focused online certificates. Apโฆ",
"sitelinks": [
{
"title": "Artificial Intelligence",
"link": "https://online.cornell.edu/ai/?msclkid=68d0356cb7501fe8d5fa5dd681c72410&utm_source=bing&utm_medium=cpc&utm_campaign=ai_US+-+AI+Certificates+-+Bing&utm_source=bing&utm_medium=cpc&utm_term=generative%20artificial%20intelligence&utm_content=g__p&creative=&keyword=generative%20artificial%20intelligence&matchtype=p&network=o&device=c&url=https%3A%2F%2Fonline.cornell.edu%2Fai%2F%3Fmsclkid%3D68d0356cb7501fe8d5fa5dd681c72410&target=&position=&msclkid=68d0356cb7501fe8d5fa5dd681c72410"
},
{
"title": "2-Week Online Course",
"link": "https://online.cornell.edu/evaluating-stocks?msclkid=ab62feb002cb13073ec5960a345c0fee&utm_source=bing&utm_medium=cpc&utm_campaign=ai_US+-+AI+Certificates+-+Bing&utm_source=bing&utm_medium=cpc&utm_term=generative%20artificial%20intelligence&utm_content=g__p&creative=&keyword=generative%20artificial%20intelligence&matchtype=p&network=o&device=c&url=https%3A%2F%2Fonline.cornell.edu%2Fevaluating-stocks%3Fmsclkid%3Dab62feb002cb13073ec5960a345c0fee&target=&position=&msclkid=ab62feb002cb13073ec5960a345c0fee"
},
{
"title": "Online Classes",
"link": "https://ecornell.cornell.edu/?msclkid=58a1ce1584b0162ad056a6afb227651b&utm_source=bing&utm_medium=cpc&utm_campaign=ai_US+-+AI+Certificates+-+Bing&utm_source=bing&utm_medium=cpc&utm_term=generative%20artificial%20intelligence&utm_content=g__p&creative=&keyword=generative%20artificial%20intelligence&matchtype=p&network=o&device=c&url=https%3A%2F%2Fecornell.cornell.edu%2F%3Fmsclkid%3D58a1ce1584b0162ad056a6afb227651b&target=&position=&msclkid=58a1ce1584b0162ad056a6afb227651b"
}
],
"extensions": [
"Small Class Sizes ยท Flexible Start Dates ยท Online Program ยท 100% Online",
"Courses: Digital Marketing, Marketing Strategy, Brand Management, Social Media Marketing"
]
},
...
],
"pagination": {
"current": 1,
"next": 2
}
}
Videos
https://www.searchapi.io/api/v1/search?engine=bing_videos&q=Machine+Learning
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "bing_videos",
"q": "Machine Learning"
}
response = requests.get(url, params=params)
print(response.text)
{
"videos": [
{
"position": 1,
"title": "Machine Learning | What Is Machine Learning? | Introduction To Machine Learning | 2024 | Simplilearn",
"link": "https://www.youtube.com/watch?v=ukzFI9rgwfU",
"length": "7:52",
"source": "YouTube",
"date": "Sep 19, 2018",
"channel": "Simplilearn",
"views": 5100000,
"thumbnail": "data:image/webp;base64..."
}
]
}
Shorts
https://www.searchapi.io/api/v1/search?engine=bing_videos&q=Stranger+Things
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "bing_videos",
"q": "Stranger Things"
}
response = requests.get(url, params=params)
print(response.text)
{
"shorts": [
{
"position": 1,
"title": "Stranger Things | Official Finaโฆ",
"link": "https://www.youtube.com/watch?v=b9EkMc79ZSU",
"length": "2:12",
"source": "YouTube",
"date": "Jun 30, 2016",
"channel": "Netflix",
"views": 14400000,
"thumbnail": "https://th.bing.com/th/id/OVP.M9d70jVrvwohKm2WujascAHgFo?w=214&h=380&c=7&rs=1&qlt=70&o=7&pid=1.7&rm=3"
},
...
]
}
Suggestions
https://www.searchapi.io/api/v1/search?engine=bing_videos&q=Alan+Turing
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "bing_videos",
"q": "Alan Turing"
}
response = requests.get(url, params=params)
print(response.text)
{
"suggestions": [
{
"title": "Alan Turing Film",
"link": "https://www.bing.com/videos/search?q=Alan+Turing+Film&FORM=RESTAB",
"thumbnail": "https://th.bing.com/th?q=Alan+Turing+Film&w=42&h=42&c=7&rs=1&p=0&o=5&pid=1.7&mkt=en-US&cc=US&setlang=en&adlt=moderate&t=1"
},
{
"title": "Turing Enigma",
"link": "https://www.bing.com/videos/search?q=Turing+Enigma&FORM=RESTAB",
"thumbnail": "https://th.bing.com/th?q=Turing+Enigma&w=42&h=42&c=7&rs=1&p=0&o=5&pid=1.7&mkt=en-US&cc=US&setlang=en&adlt=moderate&t=1"
},
{
"title": "Alan Turing Imitation Game",
"link": "https://www.bing.com/videos/search?q=Alan+Turing+Imitation+Game&FORM=RESTAB",
"thumbnail": "https://th.bing.com/th?q=Alan+Turing+Imitation+Game&w=42&h=42&c=7&rs=1&p=0&o=5&pid=1.7&mkt=en-US&cc=US&setlang=en&adlt=moderate&t=1"
},
...
]
}
Shopping Ads
https://www.searchapi.io/api/v1/search?engine=bing_videos&q=iphone+15
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "bing_videos",
"q": "iphone 15"
}
response = requests.get(url, params=params)
print(response.text)
{
"shopping_ads": [
{
"position": 1,
"title": "Apple iPhone 15 - Pink - 128GB (With 24 Monthly Payments + Plan)",
"seller": "T-Mobile",
"link": "https://www.t-mobile.com/cell-phone/apple-iphone-15?sku=195949035012",
"price": "$0.00 now",
"extracted_price": 0,
"installment": {
"down_payment": "$0.00 now",
"extracted_down_payment": 0,
"months": "24",
"extracted_months": 24,
"cost_per_month": "$30.42",
"extracted_cost_per_month": 30.42
},
"image": "https://thf.bing.com/th/id/OPHS.wCQCB9EGmynyyw474C474?w=165&h=220&rs=1&o=5&pid=21.1&ucfimg=1"
},
...
]
}