{"openapi":"3.0.3","info":{"title":"Bing Search API (ReefAPI)","version":"3.0.5","description":"Bing Search API — web, news, image & video search results (SERP scraper) Call POST /bing/v1/{action} with an x-api-key header; every response is the { ok, data, meta, error } envelope.","contact":{"name":"ReefAPI","url":"https://reefapi.com/bing-api","email":"support@reefapi.com"},"license":{"name":"ReefAPI Terms","url":"https://reefapi.com/terms"},"termsOfService":"https://reefapi.com/terms"},"externalDocs":{"description":"Bing Search API documentation","url":"https://reefapi.com/docs/bing"},"servers":[{"url":"https://api.reefapi.com"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"bing","description":"Bing Search API — web, news, image & video search results (SERP scraper)"}],"paths":{"/bing/v1/search":{"post":{"operationId":"bing_search","summary":"Bing web search results: ranked organic pages with title, URL, snippet, date and site name, plus ads, related searches, people-also-ask questions and a knowledge panel when Bing shows them","description":"Bing web search results: ranked organic pages with title, URL, snippet, date and site name, plus ads, related searches, people-also-ask questions and a knowledge panel when Bing shows them. Filter by country and language (mkt, or gl + hl), SafeSearch and recency; up to 50 results per call; paginate with page or first. Every result set is verified against a second read of Bing's index before it is returned, so you never receive confident-looking rows about a different subject. A query with no matches returns 404; a temporary failure returns a retryable error, never a false 404.","tags":["bing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","example":"best laptop 2026","description":"Search query. Search operators such as site:example.com and \"exact phrase\" are applied."},"engine":{"type":"string","enum":["auto","bing","brave","gnews","gemini","yandex"],"default":"auto","example":"auto","description":"Which search index to query. Leave on auto for Bing."},"depth":{"type":"string","enum":["exact","deep"],"default":"exact","example":"exact","description":"engine=gemini only. Ignored by the other backends."},"mkt":{"type":"string","example":"en-US","description":"Bing market as lang-COUNTRY (e.g. en-US, en-GB, de-DE, fr-FR, ja-JP). Sets the country and language of the results. If omitted it is built from gl + hl (default en-US)."},"gl":{"type":"string","example":"us","description":"Country as a 2-letter ISO-3166 code (us, gb, de, in, br, …). `cc` is accepted as the same parameter."},"hl":{"type":"string","example":"en","description":"Language as an ISO-639 code (en, de, fr, …). `setlang` is accepted as the same parameter."},"count":{"type":"integer","minimum":1,"maximum":50,"default":10,"example":10,"description":"How many results to return (1-50, default 10). Above 10 the engine reads several result pages at once."},"page":{"type":"integer","minimum":1,"example":2,"description":"1-based result page (about 10 items per page)."},"first":{"type":"integer","minimum":1,"example":11,"description":"1-based result offset (alternative to page; first=11 is page 2)."},"safe":{"type":"string","enum":["off","moderate","strict"],"example":"moderate","description":"SafeSearch level. An unrecognized value is ignored."},"freshness":{"type":"string","enum":["day","week","month"],"example":"week","pattern":"(?i)(d|w|m|h|1h|24h|1d|7d|30d|31d|today|past_(hour|day|week|month))","description":"Restrict results to a recency window. Short forms (24h, 7d, 30d, d/w/m) are accepted; an unrecognized value is ignored."},"device":{"type":"string","enum":["desktop","mobile"],"example":"desktop","description":"Device profile."}},"required":["q"]},"example":{"q":"best laptop 2026","gl":"us"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/bing/v1/news":{"post":{"operationId":"bing_news","summary":"Bing News articles for a keyword — title, URL, source, snippet, publish age and thumbnail, newest first","description":"Bing News articles for a keyword — title, URL, source, snippet, publish age and thumbnail, newest first. Filter by country/language and recency (past hour, day, week, month); up to 100 articles per call. Bing News only indexes recent articles, so an old or very niche topic can legitimately return 404.","tags":["bing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","example":"best laptop 2026","description":"Search query. Search operators such as site:example.com and \"exact phrase\" are applied."},"mkt":{"type":"string","example":"en-US","description":"Bing market as lang-COUNTRY (e.g. en-US, en-GB, de-DE, fr-FR, ja-JP). Sets the country and language of the results. If omitted it is built from gl + hl (default en-US)."},"gl":{"type":"string","example":"us","description":"Country as a 2-letter ISO-3166 code (us, gb, de, in, br, …). `cc` is accepted as the same parameter."},"hl":{"type":"string","example":"en","description":"Language as an ISO-639 code (en, de, fr, …). `setlang` is accepted as the same parameter."},"count":{"type":"integer","minimum":1,"maximum":100,"default":15,"example":15,"description":"How many articles to return (1-100, default 15). "},"freshness":{"type":"string","enum":["hour","day","week","month"],"example":"week","pattern":"(?i)(d|w|m|h|1h|24h|1d|7d|30d|31d|today|past_(hour|day|week|month))","description":"Restrict results to a recency window. Short forms (24h, 7d, 30d, d/w/m) are accepted; an unrecognized value is ignored."}},"required":["q"]},"example":{"q":"tesla","gl":"us"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/bing/v1/images":{"post":{"operationId":"bing_images","summary":"Bing image search — full-size image URL, the page it appears on, title, thumbnail and (when available) pixel size and description","description":"Bing image search — full-size image URL, the page it appears on, title, thumbnail and (when available) pixel size and description. About 35 images per page; paginate with page or first.","tags":["bing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","example":"best laptop 2026","description":"Search query. Search operators such as site:example.com and \"exact phrase\" are applied."},"mkt":{"type":"string","example":"en-US","description":"Bing market as lang-COUNTRY (e.g. en-US, en-GB, de-DE, fr-FR, ja-JP). Sets the country and language of the results. If omitted it is built from gl + hl (default en-US)."},"gl":{"type":"string","example":"us","description":"Country as a 2-letter ISO-3166 code (us, gb, de, in, br, …). `cc` is accepted as the same parameter."},"hl":{"type":"string","example":"en","description":"Language as an ISO-639 code (en, de, fr, …). `setlang` is accepted as the same parameter."},"count":{"type":"integer","minimum":1,"maximum":60,"default":35,"example":35,"description":"How many images to return (1-60, default 35). "},"page":{"type":"integer","minimum":1,"example":2,"description":"1-based result page (about 35 items per page)."},"first":{"type":"integer","minimum":1,"example":11,"description":"1-based result offset (alternative to page; first=11 is page 2)."},"safe":{"type":"string","enum":["off","moderate","strict"],"example":"moderate","description":"SafeSearch level. An unrecognized value is ignored."}},"required":["q"]},"example":{"q":"eiffel tower at night","gl":"us"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/bing/v1/videos":{"post":{"operationId":"bing_videos","summary":"Bing video search — watch-page URL, title, thumbnail, duration and hosting platform (YouTube, TikTok, Dailymotion, …) for every result; publisher/channel, views, upload age and description when Bing s","description":"Bing video search — watch-page URL, title, thumbnail, duration and hosting platform (YouTube, TikTok, Dailymotion, …) for every result; publisher/channel, views, upload age and description when Bing shows them. About 30 videos per page.","tags":["bing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","example":"best laptop 2026","description":"Search query. Search operators such as site:example.com and \"exact phrase\" are applied."},"mkt":{"type":"string","example":"en-US","description":"Bing market as lang-COUNTRY (e.g. en-US, en-GB, de-DE, fr-FR, ja-JP). Sets the country and language of the results. If omitted it is built from gl + hl (default en-US)."},"gl":{"type":"string","example":"us","description":"Country as a 2-letter ISO-3166 code (us, gb, de, in, br, …). `cc` is accepted as the same parameter."},"hl":{"type":"string","example":"en","description":"Language as an ISO-639 code (en, de, fr, …). `setlang` is accepted as the same parameter."},"count":{"type":"integer","minimum":1,"maximum":60,"default":30,"example":30,"description":"How many videos to return (1-60, default 30). "},"page":{"type":"integer","minimum":1,"example":2,"description":"1-based result page (about 30 items per page)."},"first":{"type":"integer","minimum":1,"example":11,"description":"1-based result offset (alternative to page; first=11 is page 2)."},"safe":{"type":"string","enum":["off","moderate","strict"],"example":"moderate","description":"SafeSearch level. An unrecognized value is ignored."}},"required":["q"]},"example":{"q":"how to make pizza","gl":"us"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/bing/v1/autocomplete":{"post":{"operationId":"bing_autocomplete","summary":"Bing search autocomplete — the query suggestions Bing shows while typing","description":"Bing search autocomplete — the query suggestions Bing shows while typing. Fast and cheap; useful for keyword research.","tags":["bing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"q":{"type":"string","example":"best laptop 2026","description":"Search query. Search operators such as site:example.com and \"exact phrase\" are applied."},"mkt":{"type":"string","example":"en-US","description":"Bing market as lang-COUNTRY (e.g. en-US, en-GB, de-DE, fr-FR, ja-JP). Sets the country and language of the results. If omitted it is built from gl + hl (default en-US)."},"gl":{"type":"string","example":"us","description":"Country as a 2-letter ISO-3166 code (us, gb, de, in, br, …). `cc` is accepted as the same parameter."},"hl":{"type":"string","example":"en","description":"Language as an ISO-639 code (en, de, fr, …). `setlang` is accepted as the same parameter."}},"required":["q"]},"example":{"q":"best lap","gl":"us"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"Envelope":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"},"data":{"description":"Action result (shape varies per action)"},"meta":{"type":"object","description":"api, endpoint, mode, latency_ms, record_count, completeness_pct"},"error":{"type":"object","nullable":true,"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"}}}}}}}}