Bing Search API v7 replacement: the one line migration guide for 2026
SpecStream
Search API · · 5 min read
Microsoft retired the Bing Web Search API v7 on August 11, 2025, and its notice ended sign up for new customers. Every app that called https://api.bing.microsoft.com/v7.0/search lost its upstream host: Semantic Kernel plugins, LangChain tools, Open WebUI and Dify setups, and in house code that parses webPages.value[].
SpecStream answers the same call at its own address, in Bing's JSON shape. The migration is one line: the host changes, the header keeps its name, and your parser reads the reply as before.
The switch
# Before
curl "https://api.bing.microsoft.com/v7.0/search?q=open+source+vector+databases&count=10" \
-H "Ocp-Apim-Subscription-Key: $BING_KEY"
# After
curl "https://api.specstream.ai/v7.0/search?q=open+source+vector+databases&count=10" \
-H "Ocp-Apim-Subscription-Key: $SPECSTREAM_KEY"
Both GET /v7.0/search and GET /bing/v7.0/search answer on https://api.specstream.ai. The key goes in the Ocp-Apim-Subscription-Key header as on Bing, in a subscription-key query parameter, or as a Bearer token.
What it costs
| SpecStream | Bing Web Search API v7 | |
|---|---|---|
| Price per 1,000 searches | $1 for up to 10 results a call ($0.001 a call) | No price: retired on August 11, 2025 |
| A call of 50 results | $0.0058 | Retired |
| Open to new customers | Yes, with $2 of credit and no card | No |
| Median reply | 937 ms over 6,548 live fast calls in the 7 days to December 1, 2026 | Retired |
The Bing route runs on SpecStream's fast tier. The same key also calls the default Search API at $5 per 1,000 searches, which returns a verified answer with its page beside the ranked results.
The search behind the route is first on WideSearch, ahead of every search API, with 64.0 item F1 on all 200 tasks against 57.6 for Parallel and 56.1 for Exa, and scores 99 on SimpleQA Verified. The method and the raw runs are on the benchmarks page.
The switch in four languages
Each example reads the key from the environment and prints the name and URL of each result, exactly as a Bing client did.
Python
import os
import requests
resp = requests.get(
"https://api.specstream.ai/v7.0/search",
params={"q": "open source vector databases", "count": 10},
headers={"Ocp-Apim-Subscription-Key": os.environ["SPECSTREAM_KEY"]},
timeout=30,
)
data = resp.json()
if resp.status_code != 200:
for err in data["errors"]:
print(err["code"], err["message"])
else:
for page in data.get("webPages", {}).get("value", []):
print(page["name"], page["url"])
Node.js
const url = new URL("https://api.specstream.ai/v7.0/search");
url.searchParams.set("q", "open source vector databases");
url.searchParams.set("count", "10");
const resp = await fetch(url, {
headers: { "Ocp-Apim-Subscription-Key": process.env.SPECSTREAM_KEY },
});
const data = await resp.json();
for (const page of data.webPages?.value ?? []) {
console.log(page.name, page.url);
}
C#
using System.Net.Http;
using System.Text.Json;
var http = new HttpClient();
http.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key",
Environment.GetEnvironmentVariable("SPECSTREAM_KEY"));
var q = Uri.EscapeDataString("open source vector databases");
var json = await http.GetStringAsync(
$"https://api.specstream.ai/v7.0/search?q={q}&count=10");
using var doc = JsonDocument.Parse(json);
if (doc.RootElement.TryGetProperty("webPages", out var pages))
foreach (var page in pages.GetProperty("value").EnumerateArray())
Console.WriteLine($"{page.GetProperty("name")} {page.GetProperty("url")}");
Go
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
)
func main() {
q := url.Values{"q": {"open source vector databases"}, "count": {"10"}}
req, _ := http.NewRequest("GET", "https://api.specstream.ai/v7.0/search?"+q.Encode(), nil)
req.Header.Set("Ocp-Apim-Subscription-Key", os.Getenv("SPECSTREAM_KEY"))
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var out struct {
WebPages struct {
Value []struct{ Name, URL string } `json:"value"`
} `json:"webPages"`
}
json.NewDecoder(resp.Body).Decode(&out)
for _, p := range out.WebPages.Value {
fmt.Println(p.Name, p.URL)
}
}
A call with no key returns Bing's own ErrorResponse, so the error branch you already have keeps working:
{"_type": "ErrorResponse", "errors": [{"code": "InvalidAuthorization", "subCode": "missing_api_key", "message": "Missing API key. ..."}]}
Parameters, one by one
| Parameter | On SpecStream |
|---|---|
q |
The query, as on Bing |
count |
1 to 50, and 10 when you send none. A value outside that range gets 400 |
offset |
0 to 10,000, the number of results to skip |
freshness |
Day, Week, Month, a range such as 2026-01-01..2026-03-31, or one date. Read and used in the search |
textFormat |
HTML escapes name and snippet; anything else returns plain text |
mkt, setLang, cc, safeSearch, responseFilter, answerCount, promote, textDecorations |
Accepted, so a client that sends them is never refused |
Fields in the reply
The reply is a SearchResponse with _type, queryContext.originalQuery, webPages (with id, totalEstimatedMatches and value[]) and rankingResponse.mainline.items. webPages is left out when there is no result, as on Bing.
Each result in webPages.value[] carries id, name, url, displayUrl, snippet, isFamilyFriendly and isNavigational, and datePublished when the page has a date. The route returns web results. For news and images, SpecStream has its own guides: Bing News Search v7 and Bing Image Search.
Errors keep Bing's form: InvalidAuthorization on 401 and InvalidRequest on 400. A 429 comes with Retry-After.
Frameworks that take the address as a setting
The first five were run on production through the client's own request and reply code. Put your SpecStream key wherever the client takes its key.
| Client | Setting |
|---|---|
| Semantic Kernel .NET | BingTextSearchOptions.Endpoint to https://api.specstream.ai/v7.0/search |
| Semantic Kernel Java | BING_SEARCH_URL, or -Dbing.search.url, to the same address |
| LangChain | bing_search_url="https://api.specstream.ai/v7.0/search" on BingSearchAPIWrapper |
| Dify Bing plugin | The credential server_url |
| LazyLLM | endpoint="https://api.specstream.ai/v7.0/search" on BingSearch |
| Open WebUI | BING_SEARCH_V7_ENDPOINT, with WEB_SEARCH_ENGINE=bing |
The drop in API converter rewrites your current client call and shows the monthly cost, and the web search tester runs a live search with no code.
Start
- Sign up and create a key under Agents & API. A new account gets $2 of credit with no card, which covers 2,000 Bing route searches.
- Change the host to
https://api.specstream.ai/v7.0/searchand put the key inOcp-Apim-Subscription-Key. - For steady traffic, the Monthly Pro Pass is $49 a month: $49 of API credit, which is 49,000 fast searches, plus 5,000 ready list rows a month. Growth ($199) and Scale ($499) raise the rate limit to 2,000 and 5,000 calls a minute; every plan is on the pricing page.
The full parameter reference, with each Microsoft source and the date it was read, is on Migrate from Bing Web Search v7.
More from the blog
Every postExa vs Tavily vs SerpApi: search API cost and latency compared (2026)
Price per 1,000 searches, benchmark scores and drop-in addresses for Exa, Tavily, SerpApi, Brave and SpecStream, SpecStream's measured 937 ms median, and a script that times each provider on your own queries
Dec 2, 2026 · SpecStream · 5 min read
Google Custom Search API alternatives compared before the 2027 shutdown
Google ends the Custom Search JSON API on January 1, 2027
Dec 2, 2026 · SpecStream · 5 min read
Claygent alternative 2026: web enrichment in Clay at $1 per 1,000 rows, 50x cheaper
Run live web search and page extraction inside Clay through the HTTP API column: $1 per 1,000 searches and $0.80 per 1,000 pages on the engine first on WideSearch, ahead of every search API, with 99 on SimpleQA Verified
Dec 1, 2026 · SpecStream · 4 min read