A retrieval layer you don't have to maintain.
Three endpoints that cover the full path from question to grounded context. Use one, or chain all three.
Search API
The workhorse. A query goes in; ranked sources with cleaned, chunk-ready text come back. Tune breadth with `max_results`, recency with `freshness`, and depth with `depth`.
- Domain allow and block lists, applied after ranking
- Boilerplate, nav chrome, and cookie banners stripped before return
- `deep` returns the extracted page contents too, for the price of one call
Extract API
You already know the URL and just need the content. Handles client-rendered pages and long-form articles, returning clean markdown instead of a wall of markup.
- Main-content detection that survives aggressive ad layouts
- Tells you when a page needs a browser, instead of returning an empty string
- Batch up to 20 URLs per request
Answer API
Retrieval and synthesis in one hop. Returns a grounded answer with an inline citation for every claim, plus the underlying sources so you can render them.
- Citations carry the source's own words, with character offsets into the page
- Refuses rather than guesses when sources disagree or are thin
- Every quote is checked against the fetched source — fabricated citations are dropped
How a request flows
Four stages between your call and the response. Each one exists to cut tokens your model would otherwise pay for.
Fan out
The query hits multiple upstream indexes and our own crawl in parallel.
Fetch
Candidate pages are rendered and fetched concurrently, with a hard latency budget.
Clean
Chrome, ads, and navigation are removed; main content is segmented into passages.
Rank
Passages are scored against the original intent and the top set is returned.