Bing Videos API

Find videos matching a query.

What is this API?

Serqo’s Bing Videos API returns video results shown for a Bing query as structured JSON. Use engine: "bing" and type: "videos"; available fields can describe the title, source, duration, thumbnail and result link.

Common use cases

  • Find video pages about a topic or product in Bing results.
  • Compare video-result visibility across queries and search markets.
  • Collect result metadata and links for content research.

Request example

POST https://api.serqo.io/v1/search
FieldValue
enginebing
typevideos

Request headers

Create an API key and store it on your server. Send the API key in the x-api-key header.

HeaderValueDescription
Content-Typeapplication/jsonJSON request body.
x-api-keyYOUR_API_KEYAPI key used to authenticate the request.
bash
export SERP_API_KEY='YOUR_API_KEY'

curl https://api.serqo.io/v1/search \
  -H "x-api-key: $SERP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "q": "bread baking tutorial",
  "engine": "bing",
  "type": "videos",
  "gl": "us",
  "hl": "en"
}'

Code examples

Use the same API key with a standard HTTP client. These examples require Node.js 22 or later, or Python 3.

JavaScript
const response = await fetch('https://api.serqo.io/v1/search', {
  method: 'POST',
  headers: { 'x-api-key': process.env.SERP_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({"q": "bread baking tutorial","engine":"bing","type":"videos"}),
});
const result = await response.json();
if (!response.ok) throw new Error(`${response.status}: ${result.error?.message ?? 'Search failed'}`);
console.log(result.data);
Python
import json
import os
from urllib.request import Request, urlopen

payload = {"q": "bread baking tutorial","engine":"bing","type":"videos"}
request = Request(
    'https://api.serqo.io/v1/search',
    data=json.dumps(payload).encode(),
    headers={
        'x-api-key': os.environ['SERP_API_KEY'],
        'Content-Type': 'application/json',
    },
)
with urlopen(request) as response:
    result = json.load(response)
    print(result['data'])

Parameters

The number of results returned per request depends on the search engine and may vary.

FieldTypeRequiredDefaultDescription
qstringYes—Non-empty search query.
enginestringNogoogleUse bing for this API.
typestringNowebUse videos for this API.
glstringNo—Two-letter lowercase country code, for example us.
hlstringNo—Interface language code, for example en.
startintegerNo—Offset from 0 to 1000000. Use nextStart from the response.
safeoff | activeNo—Explicit-content filter: off disables it, active enables it.
tbsstringNo—Not supported by Bing; omit it to avoid INVALID_PARAM.

Only q is required by the API, but keep engine and type as shown for this search. A dash means the API does not assign a default. Unknown parameters return 422 INVALID_PARAM.

Response

HTTP 200. A real API response, trimmed to the first three results for readability. Field availability and result groups vary by the returned page; values can be null.

JSON
{
  "success": true,
  "requestId": "req_856d8a80-a757-44fe-91df-033c285b47ec",
  "data": {
    "engine": "bing",
    "type": "videos",
    "query": {
      "q": "bread baking tutorial",
      "gl": "us",
      "hl": "en"
    },
    "searchInformation": {
      "totalResults": null,
      "timeTakenMs": null,
      "displayed": null
    },
    "results": [
      {
        "position": 1,
        "type": "video",
        "title": "Ultra Soft Coconut Milk Bread Recipe (No Knead & Easy)",
        "url": "https://www.tiktok.com/@cookwithhali/video/7695430221360549151",
        "displayedUrl": "TikTok",
        "domain": "tiktok.com",
        "source": "TikTok",
        "date": "1 week ago",
        "snippet": null,
        "thumbnail": "https://tse1.mm.bing.net/th/id/OVP.9Ylywvn0tYCAlREnFxaIngEkII?w=354&h=199&c=7&rs=1&qlt=70&r=0&o=7&pid=2.1&rm=3",
        "favicon": null,
        "duration": "0:37",
        "price": null,
        "rating": null,
        "sitelinks": [],
        "extensions": {
          "views": "59.9K views",
          "channel": "cookwithhali",
          "platform": "TikTok",
          "bingRedirectUrl": "https://www.bing.com/videos/riverview/relatedvideo?q=bread+baking+tutorial&&mid=7FA8BF9177274DC56F3A7FA8BF9177274DC56F3A&churl=https%3a%2f%2fwww.tiktok.com%2f%40cookwithhali&mmscn=stvo&FORM=VRDGAR",
          "mid": "7FA8BF9177274DC56F3A7FA8BF9177274DC56F3A"
        }
      },
      {
        "position": 2,
        "type": "video",
        "title": "Crispy Baguette Recipe (No-Knead Bakery-Style)",
        "url": "https://www.tiktok.com/@cookwithhali/video/7684390060862541087",
        "displayedUrl": "TikTok",
        "domain": "tiktok.com",
        "source": "TikTok",
        "date": "1 month ago",
        "snippet": null,
        "thumbnail": "https://tse1.mm.bing.net/th/id/OVP.9-ZThTQaXoJuiGSirmdLGQEkII?w=354&h=199&c=7&rs=1&qlt=70&r=0&o=7&pid=2.1&rm=3",
        "favicon": null,
        "duration": "1:02",
        "price": null,
        "rating": null,
        "sitelinks": [],
        "extensions": {
          "views": "1.7M views",
          "channel": "cookwithhali",
          "platform": "TikTok",
          "bingRedirectUrl": "https://www.bing.com/videos/riverview/relatedvideo?q=bread+baking+tutorial&&mid=E71C65EEBF1CA47EBF8DE71C65EEBF1CA47EBF8D&churl=https%3a%2f%2fwww.tiktok.com%2f%40cookwithhali&mmscn=stvo&FORM=VRDGAR",
          "mid": "E71C65EEBF1CA47EBF8DE71C65EEBF1CA47EBF8D"
        }
      },
      {
        "position": 3,
        "type": "video",
        "title": "Farmhouse loaf recipe — beginner-friendly farmhouse loaf",
        "url": "https://www.tiktok.com/@mostly_from_scratch/video/7689184828041743638",
        "displayedUrl": "TikTok",
        "domain": "tiktok.com",
        "source": "TikTok",
        "date": "4 weeks ago",
        "snippet": null,
        "thumbnail": "https://tse4.mm.bing.net/th/id/OVP.oIw2-8DLkwgTlLPQ9k6PywFlII?w=354&h=199&c=7&rs=1&qlt=70&r=0&o=7&pid=2.1&rm=3",
        "favicon": null,
        "duration": "3:38",
        "price": null,
        "rating": null,
        "sitelinks": [],
        "extensions": {
          "views": "39.5K views",
          "channel": "mostly_from_scratch",
          "platform": "TikTok",
          "bingRedirectUrl": "https://www.bing.com/videos/riverview/relatedvideo?q=bread+baking+tutorial&&mid=D7172E07A00AAE739AAAD7172E07A00AAE739AAA&churl=https%3a%2f%2fwww.tiktok.com%2f%40mostly_from_scratch&mmscn=stvo&FORM=VRDGAR",
          "mid": "D7172E07A00AAE739AAAD7172E07A00AAE739AAA"
        }
      }
    ],
    "features": {
      "relatedSearches": [
        {
          "query": "All",
          "url": "https://www.bing.com/search?q=bread+baking+tutorial&FORM=HDRSC1"
        },
        {
          "query": "AI Mode",
          "url": "https://www.bing.com/copilotsearch?q=bread+baking+tutorial&FORM=CSSCOP"
        },
        {
          "query": "Images",
          "url": "https://www.bing.com/images/search?q=bread+baking+tutorial&FORM=HDRSC2"
        },
        {
          "query": "Shorts",
          "url": "https://www.bing.com/videos/search?view=shortvideo&qft=+filterui:filterhint-shortvideo&q=bread+baking+tutorial&FORM=SVFBT"
        },
        {
          "query": "Maps",
          "url": "https://www.bing.com/maps?q=bread+baking+tutorial&FORM=HDRSC4"
        },
        {
          "query": "News",
          "url": "https://www.bing.com/news/search?q=bread+baking+tutorial&FORM=HDRSC6"
        },
        {
          "query": "Shopping",
          "url": "https://www.bing.com/shop/topics?q=bread+baking+tutorial&FORM=SHOPTB"
        },
        {
          "query": "Flights",
          "url": "https://www.bing.com/travel/search?q=bread+baking+tutorial&m=flights&FORM=FBSCOP"
        },
        {
          "query": "Easter Cheese",
          "url": "https://www.bing.com/videos/search?q=Easter+Cheese&&FORM=VRMHRS"
        },
        {
          "query": "Artisan Bread Video",
          "url": "https://www.bing.com/videos/search?q=Artisan+Bread+Video&&FORM=VRMHRS"
        },
        {
          "query": "Bread Making Tips",
          "url": "https://www.bing.com/videos/search?q=Bread+Making+Tips&&FORM=VRMHRS"
        },
        {
          "query": "Paper Flower Making Tutorials",
          "url": "https://www.bing.com/videos/search?q=Paper+Flower+Making+Tutorials&&FORM=VRMHRS"
        }
      ]
    },
    "pagination": {
      "pageSize": 60,
      "page": 1,
      "start": 0,
      "hasNext": false,
      "nextStart": null
    },
    "meta": {
      "elapsedMs": 546
    }
  },
  "meta": {
    "cache": "miss"
  }
}

Response fields

FieldTypeDescription
data.queryobjectSearch query passed to the engine.
data.searchInformationobjectReported result count and search timing, when provided.
successbooleanWhether the request succeeded. True in this example.
requestIdstringRequest identifier to include when troubleshooting.
data.typestringSearch type used for this response.
data.enginestringEngine that returned the results.
data.resultsarrayMain result list. Check feature groups as well when present.
data.featuresobjectAdditional result groups; groups not returned by the engine may be absent.
data.paginationobjectCurrent offset and next-page availability.
data.meta.elapsedMsnumberSearch duration in milliseconds, not a performance guarantee.
meta.cachestring | nullhit, miss, or null if cache status is unknown.

Result fields

Read entries from data.results. Additional groups, when present, are in data.features.

FieldTypeDescription
data.results[].domainstring | nullDestination domain, when available.
data.results[].faviconstring | nullSite icon when provided.
data.results[].sitelinksarrayAdditional links nested under the result.
data.results[].sitelinks[].titlestringSitelink label.
data.results[].sitelinks[].urlstring | nullSitelink destination.
data.results[].extensionsobjectOther result-specific properties.
data.results[].snippetHighlightedWordsstring[], optionalHighlighted terms in the snippet, when provided.
data.results[].positionintegerRank on this results page, starting at 1.
data.results[].typestringResult category: organic, news, image, video, shopping, local, forum, book, patent or ad. This can differ from the request type.
data.results[].titlestring | nullTitle shown in the result.
data.results[].urlstring | nullDestination URL when resolved; it may be null.
data.results[].displayedUrlstring | nullURL or domain displayed by the engine; not always a clickable link.
data.results[].sourcestring | nullSource name or displayed domain.
data.results[].datestring | nullDate text when extracted; not necessarily an ISO timestamp.
data.results[].snippetstring | nullResult summary.
data.results[].thumbnailstring | nullThumbnail URL or inline data URL, when provided.
data.results[].durationstring | nullVideo duration text when provided.
data.results[].pricestring | nullPrice text when provided.
data.results[].ratingnumber | nullRating when provided.

Video duration, thumbnails and playable streams are not guaranteed. A result link points to a page, not a downloadable video file.

Pagination

  1. Check data.pagination.hasNext; stop when it is false.
  2. Use data.pagination.nextStart as start. Keep the other search parameters unchanged.
  3. Send the next request. Each page is a separate search request.
FieldTypeDescription
data.pagination.nextUrlstring | nullSearch-engine URL for the next page, when available; use nextStart with this API.
data.pagination.requestedPageintegerPage requested; may differ from the returned page if the engine does not provide it.
data.pagination.pageintegerCurrent page number.
data.pagination.startintegerCurrent result offset.
data.pagination.hasNextbooleanWhether another page is available.
data.pagination.nextStartinteger | nullOffset for the next request, or null when unavailable.

Errors

JSON
{
  "success": false,
  "requestId": "req_example",
  "error": {
    "code": "INVALID_PARAM",
    "message": "Unknown parameter \"page\"",
    "retryable": false
  }
}
FieldTypeDescription
error.codestringMachine-readable error code.
error.messagestringReason the request failed.
error.retryablebooleanWhether retrying is recommended.
error.retryAfterMsnumber, optionalMinimum wait before retrying, in milliseconds.
HTTP statusMeaningWhat to do
400Invalid request or unsupported search type.Check the query and engine/type combination.
401Missing, invalid or revoked API key.Check the authentication header and API key.
402Insufficient credits.Check your credit balance.
403Permission or plan restriction.Check account access and plan limits.
422Invalid parameter.Correct the parameter identified by error.message.
429Request rate or queue limit.Follow the retry rules below.
5xxServer or search service failure.Keep the requestId; retry only if allowed.

Retry rules

  • Retry only when error.retryable is true.
  • If error.retryAfterMs is present, wait at least that many milliseconds.

Pricing and limits

  • Successful searches use credits at the applicable rate.
  • Failed searches and timeouts are not charged.
  • Cache hits are free at the default rate. Before searching, your available balance must cover the full request cost.

See plan pricing and rate-limit and credit details.

Frequently asked questions

Does the response include a playable video stream?

No. It describes a video result and may include a link or thumbnail when available; it does not provide or guarantee a playable media stream.

How are Bing Videos searches charged?

Successful searches use the applicable credit rate for the engine, type and country. Failed searches and timeouts release the reservation; cache hits are free at the default rate. See Pricing and limits below for the current rules.