A small Rust crate and command line tool for SpecStream, the live web data engine, on blocking ureq 2 and serde_json. One key answers SpecStream's own Search and Extract APIs and the drop-in routes that speak Google Custom Search, Bing Web Search v7, Tavily and Exa in their own request and reply shapes.
| Function | Route on https://api.specstream.ai |
Key goes | Reply |
|---|---|---|---|
web_search |
GET /v1/web-search |
Authorization: Bearer |
SearchResult { sources } |
extract |
POST /v1/extract |
Authorization: Bearer |
Vec<Page>, page text as Markdown |
google_cse |
GET /customsearch/v1 |
key= in the address |
Google's JSON, items[] |
bing |
GET /v7.0/search |
Ocp-Apim-Subscription-Key |
Bing's JSON, webPages.value[] |
tavily |
POST /tavily/search |
Authorization: Bearer |
Tavily's JSON, results[] |
exa |
POST /exa/search |
x-api-key |
Exa's JSON, results[] |
dialects, find_lists |
GET /v1/search-dialects, GET /v1/data/lists/search |
no key | free |
Every search runs on the fast tier: $1 per 1,000 searches, 937 ms median over 6,548 live calls in the 7 days to December 1, 2026.
git clone https://github.com/specstream/rust-specstream-search
cd rust-specstream-search
cargo run -q -- check # live, no key, nothing chargedAPI reachable: 70 drop-in APIs on 78 routes at https://api.specstream.ai
Google Custom Search JSON API replaces https://www.googleapis.com
Tavily replaces https://api.tavily.com
Exa replaces https://api.exa.ai
Bing Web Search API v7 replaces https://api.bing.microsoft.com/v7.0/search
Get a key under Agents & API at specstream.ai/workspace. A new account gets $2 of credit with no card, which is 2,000 fast searches.
export SPECSTREAM_API_KEY=your_key
cargo run -q -- search "Rust 2024 edition migration guide"
cargo run -q -- extract https://blog.rust-lang.org/
cargo run -q -- cse "best crm for startups"
cargo run -q -- bing "best crm for startups"
cargo run -q -- tavily "best crm for startups"
cargo run -q -- exa "best crm for startups"A wrong key prints the route's own 401 body, so you see exactly what your existing parser would read:
HTTP 401: {"_type": "ErrorResponse", "errors": [{"code": "InvalidAuthorization", "subCode": "invalid_token", ...
let c = specstream::Client::from_env(); // reads SPECSTREAM_API_KEY
for s in c.web_search("latest PostgreSQL release notes", 10)?.sources {
println!("{} {}", s.title, s.url);
}
let pages = c.extract(&["https://www.postgresql.org/docs/release/"])?;
println!("{}", pages[0].text); // Markdown, also from PDFs and Office filesThe drop-in functions return serde_json::Value in the provider's own shape, so code that reads Google's items, Bing's webPages.value, Tavily's results or Exa's results reads them unchanged. Checked with cargo check and run live on Rust stable; Cargo.lock pins the tested dependencies.
| Price | |
|---|---|
| Free credit on sign-up | $2, which is 2,000 fast searches, no card |
| Fast search, every drop-in route | $1 per 1,000 |
| Extract API, page text as Markdown | $0.80 per 1,000 pages |
| Monthly Pro Pass | $49 a month: 5,000 ready list rows a month and $49 of API credit |
- Search API: specstream.ai/search-api
- Extract API: specstream.ai/extract-api
- Moving from Tavily: specstream.ai/migrate/tavily
- Moving from Exa: specstream.ai/migrate/exa
- Every drop-in API: specstream.ai/migrate
- Prices: specstream.ai/pricing
MIT