Skip to content

About

Rust starter for live web search and page extraction with drop-in Google Custom Search, Bing v7, Tavily and Exa routes, on ureq and serde_json. $1 per 1,000 searches.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust starter for live web search, page extraction and the Google CSE, Bing, Tavily and Exa APIs

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.

Run

git clone https://github.com/specstream/rust-specstream-search
cd rust-specstream-search
cargo run -q -- check            # live, no key, nothing charged
API 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", ...

In your code

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 files

The 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.

Prices

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

Links

License

MIT

About

Rust starter for live web search and page extraction with drop-in Google Custom Search, Bing v7, Tavily and Exa routes, on ureq and serde_json. $1 per 1,000 searches.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages