Skip to the page

Kagi Search API v0 compatible

Keep kagiapi working at 96% lower cost.

SpecStream answers Kagi's legacy GET /api/v0/search endpoint at https://api.specstream.ai/kagi/api/v0/search with Authorization: Bot <key> and Kagi's exact v0 JSON (meta and data[] items with t: 0, url, title, snippet, published). Calls cost $1 per 1,000 fast searches (937 ms median over 6,548 live calls) against Kagi's $25 per 1,000, with no closed-beta invite wall, plus $5 per 1,000 default Search API and $0.80 per 1,000 Extract API pages.

SpecStream is state of the art on the live web, setting a new bar in research, extraction, and search. It ranks first on WideSearch (60.93 low-cost, ahead of every search API; 64.0 single-trial item F1 and 57.32% Avg@4 item F1 across all 200 official tasks) and scores 99 on SimpleQA Verified, alongside AA-Omniscience 82.67%, SurfBench v2 84.6, Seal-0 66.7%, Seal-Hard 71.26%, FinSearchComp Global T3 60.7%, FRAMES 90.78%, TRACE Extract v6 88.51%, WCXB 0.914, Scrapinghub 0.971, and scrapingbench 40 of 40 (benchmarks).

Point KagiClient.BASE_URL in kagiapi (or your HTTP client) from https://kagi.com/api/v0 to https://api.specstream.ai/kagi/api/v0 and put your SpecStream key in Authorization: Bot. Your existing v0 code keeps running with zero rewrite.

Want to generate the exact 1-line diff and compare monthly costs? Open the Drop-in API converter or read the Web Search API reference for native parameters including boost_domains, include_domains, and exclude_domains.

New accounts get $2 of free credit, no card required: 2,000 fast searches or 2,500 extracted pages.

Monthly credit plans with higher RPM and invoice receipts: Starter ($49/mo), Growth ($199/mo), or Scale ($499/mo). Try the 1-line converter and savings calculator.

SpecStream vs Kagi Search API v0 (Legacy)

SpecStreamKagi Search API v0 (Legacy)
EndpointGET https://api.specstream.ai/kagi/api/v0/search (plus v1 at /kagi/api/v1/search)GET https://kagi.com/api/v0/search (marked legacy/deprecated by Kagi)
AuthenticationAuthorization: Bot <SPECSTREAM_API_KEY> (or Bearer)Authorization: Bot <KAGI_API_KEY> (closed beta invite required)
Price per 1,000 searches$1 per 1,000 fast searches (up to 10 results, 937 ms median); $5 per 1,000 default Search API$25 per 1,000 searches ($0.025 per query)
Parameters and JSONq and limit; returns meta (id, ms) and data[] (t: 0, url, title, snippet, published)Same q, limit, meta, and data[] format
Official Python SDK (`kagiapi`)Set KagiClient.BASE_URL = "https://api.specstream.ai/kagi/api/v0"Hardcoded https://kagi.com/api/v0
Free start$2 of credit on sign-up, no card required (2,000 fast searches), open self-serveInvite-only closed beta access

Why teams move legacy Kagi v0 clients to SpecStream

Related Kagi and search migrations

How SpecStream scores

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

1-line swap from Kagi Search API v0 to SpecStream

1. Create an API key in the workspace. New accounts start with $2 of free credit, no card required (2,000 fast searches).

2. Swap the endpoint in cURL (https://kagi.com/api/v0 to https://api.specstream.ai/kagi/api/v0):

# Before (Kagi Search API v0)
curl -G https://kagi.com/api/v0/search \
  -H "Authorization: Bot $KAGI_API_KEY" \
  --data-urlencode "q=rust async runtime comparison" -d limit=10

# After (SpecStream: $1 per 1,000 fast searches)
curl -G https://api.specstream.ai/kagi/api/v0/search \
  -H "Authorization: Bot $SPECSTREAM_API_KEY" \
  --data-urlencode "q=rust async runtime comparison" -d limit=10

3. Swap one line in Python (kagiapi SDK):

import os
from kagiapi import KagiClient

# Before: client = KagiClient(os.environ["KAGI_API_KEY"])
KagiClient.BASE_URL = "https://api.specstream.ai/kagi/api/v0"
client = KagiClient(os.environ["SPECSTREAM_API_KEY"])
res = client.search("rust async runtime comparison", limit=10)
for row in res["data"]:
    if row["t"] == 0:
        print(row["title"], row["url"])

4. Swap one line in Node.js / TypeScript:

// Before: const BASE = "https://kagi.com/api/v0"
const BASE = "https://api.specstream.ai/kagi/api/v0"

const qs = new URLSearchParams({ q: "rust async runtime comparison", limit: "10" })
const data = await fetch(`${BASE}/search?${qs}`, {
  headers: { Authorization: `Bot ${process.env.SPECSTREAM_API_KEY}` },
}).then((r) => r.json())
console.log(data.data)

5. Compare monthly search spend in the Drop-in API converter.

Frequently asked questions

Something we didn't answer? Talk to a human

Does kagiapi 0.2.1 work unchanged with SpecStream?
Yes. Set KagiClient.BASE_URL = "https://api.specstream.ai/kagi/api/v0" and pass your SpecStream API key to KagiClient().
Does SpecStream return Kagi v0 error code 2 on missing keys?
Yes. Missing or invalid keys return HTTP 401 with Kagi's exact {"meta": {"ms": 0}, "data": null, "error": [{"code": 2, "msg": ...}]} body.
How much does Kagi v0 migration save?
SpecStream charges $1 per 1,000 fast searches (up to 10 results) compared to Kagi's $25 per 1,000, a 96% reduction, with $2 free credit on sign-up and no invite list.

Sources

Kagi v0 legacy schema and pricing come from help.kagi.com and kagi.com/api/pricing read Nov 10, 2026.

  1. Kagi legacy v0 search docshelp.kagi.com/kagi/api/search-legacy.html, read Nov 10, 2026
  2. Kagi API pricingkagi.com/api/pricing, read Nov 10, 2026
  3. SpecStream Kagi pass tablespecstream.ai/specstream/dialects/kagi.md, read Nov 10, 2026
  4. SpecStream benchmarksspecstream.ai/benchmarks, read Dec 2, 2026
  5. SpecStream pricingspecstream.ai/pricing, read Dec 2, 2026