Skip to the page

Yandex Search API compatible

Change the address.

Since November 10, 2026 SpecStream answers the Yandex Search API's POST /v2/web/search with Yandex's own reply: the yandexsearch XML document, Base64 in rawData. A search of up to 10 results costs $0.005, with no Yandex Cloud folder to set up.

The switch is one line: https://api.specstream.ai/yandex in place of https://searchapi.api.cloud.yandex.net, and a SpecStream key in Authorization: Api-Key. The request body and your XML parser stay.

The SpecStream Search API scores 97.9 F-score on all 1,000 SimpleQA Verified questions and 64.0 item F1 on WideSearch. A new account gets $10 of credit, no card.

New accounts get $10 of credit, no card. It covers 2,000 searches.

Yandex Search API to SpecStream, parameter by parameter and field by field

SpecStreamYandex Search API
AddressPOST https://api.specstream.ai/yandex/v2/web/searchPOST https://searchapi.api.cloud.yandex.net/v2/web/search
The keyA SpecStream key as Authorization: Api-Key, or as BearerA Yandex Cloud API key as Authorization: Api-Key, or an IAM token as Bearer
Parameters appliedquery.queryText, query.searchType, query.page, query.familyMode, groupSpec.groupsOnPage (1 to 100), period, resultsWithin and sortSpec.sortModeThe same, plus region, l10n, maxPassages, docsInGroup and responseFormat
Reply{"rawData": "<Base64>"}, the yandexsearch XML with request, found, reqid and each group with doc url, domain, title and a passagerawData with the XML or HTML results document
ErrorsYandex Cloud's own {"code", "message", "details"}: 400 for a queryText over 400 characters or FORMAT_HTML, 401 for no key. A busy call gets 429 with Retry-After and is not chargedqueryText at most 400 characters
Price$0.005 a search of up to 10 results, $5 per 1,000. Each started block of 10 more results adds $0.006$4.00 per 1,000 synchronous requests by day, $3.00 at night, without VAT. One request is the billing unit
AccountA SpecStream key. Credit you buy never expiresA Yandex Cloud folder, named in folderId
Free to start$10 of credit, no card, which covers 2,000 searchesBilled from the first request
Pages behind the resultsRead on the same key at $0.0008 a page with the Extract APIA search API

The Yandex Search API reference, on SpecStream

What else Yandex Search API users price

How SpecStream scores

The same numbers as the benchmarks page, from the official tasks and scorers.

How to migrate, step by step

1. Create a key under Agents & API in the workspace. A new account gets $10 of credit, no card, which covers 2,000 searches.

2. Set the address to https://api.specstream.ai/yandex where your code has https://searchapi.api.cloud.yandex.net, and send the SpecStream key as Authorization: Api-Key. In Python:

import base64
import xml.etree.ElementTree as ET
import requests

BASE = "https://api.specstream.ai/yandex"  # was https://searchapi.api.cloud.yandex.net

reply = requests.post(
    f"{BASE}/v2/web/search",
    headers={"Authorization": f"Api-Key {SPECSTREAM_KEY}"},
    json={"query": {"searchType": "SEARCH_TYPE_COM", "queryText": "pizza"}, "groupSpec": {"groupsOnPage": 10}},
    timeout=30,
)
reply.raise_for_status()
root = ET.fromstring(base64.b64decode(reply.json()["rawData"]))
for doc in root.iter("doc"):
    print(doc.findtext("url"), doc.findtext("title"))

3. In JavaScript:

const reply = await fetch("https://api.specstream.ai/yandex/v2/web/search", {
  method: "POST",
  headers: { Authorization: `Api-Key ${process.env.SPECSTREAM_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ query: { searchType: "SEARCH_TYPE_TR", queryText: "pizza" } }),
});
const { rawData } = await reply.json();
const xml = Buffer.from(rawData, "base64").toString("utf8");
console.log(xml.slice(0, 500));

4. Read 429 as a call to send again after Retry-After. It is not charged.

Frequently asked questions

Something we didn't answer? Talk to a human

Is there a Yandex Search API compatible API?
Yes. Since Nov 10, 2026 SpecStream answers POST /v2/web/search at https://api.specstream.ai/yandex with Yandex's XML document in rawData, as measured on production. A search costs $0.005.
How do I migrate from the Yandex Search API?
Change one address: https://searchapi.api.cloud.yandex.net becomes https://api.specstream.ai/yandex, and a SpecStream key goes in Authorization: Api-Key. queryText, searchType, page, familyMode, groupsOnPage, period and sortMode keep their meaning.
How much does the Yandex Search API cost?
Synchronous web search is $4.00 per 1,000 requests by day and $3.00 at night, without VAT. SpecStream costs $5 per 1,000 searches on one key, with no folder to set up, and its credit never expires.
Does the Yandex AI Studio SDK work with SpecStream?
No: yandex-ai-studio-sdk speaks gRPC and has no REST address setting. Call https://api.specstream.ai/yandex/v2/web/search with requests or fetch, as in the steps on this page, with the same body.
Does SpecStream return Yandex's HTML results page?
No. Since Nov 10, 2026 the route answers the XML form, Yandex's default, and refuses FORMAT_HTML with 400 and a message that names FORMAT_XML.
Which Yandex XML fields does SpecStream not return?
misspell, reask, doc@id, headline, size, charset, properties, mime-type and saved-copy-url. Each result keeps url, domain, title and a passage.

Sources

SpecStream wrote this page. Each Yandex figure comes from Yandex's own pages, and each other provider's figure from that company's own page. The route's behavior comes from its code and the pass table measured on production.

  1. Yandex Search API pricingaistudio.yandex.ru/docs/en/search-api/pricing, read Nov 10, 2026
  2. Yandex Search API web searchaistudio.yandex.ru/docs/en/search-api/operations/web-search, read Nov 10, 2026
  3. SpecStream Yandex pass tablespecstream.ai/specstream/dialects/yandex.md, read Nov 10, 2026
  4. Brave Search APIbrave.com/search/api/, read Nov 10, 2026
  5. Serperserper.dev/, read Nov 10, 2026
  6. SerpApi pricingserpapi.com/pricing, read Nov 10, 2026
  7. SpecStream benchmarksspecstream.ai/benchmarks, read Nov 10, 2026
  8. SpecStream for agentsspecstream.ai/agents.md, read Nov 10, 2026