Providers
Context.dev
The Context.dev API for search with Markdown ranked by relevance and for scraping pages into Markdown or HTML.
- env var
- CONTEXT_DEV_API_KEY
- auth
- Bearer header
- operations
- search · read
- results
- 10, up to 100
Address it
import { create, readUrl } from "@agntn/web";
const context = create("context"); // CONTEXT_DEV_API_KEY
const results = await context.search("nitro cloudflare preset", { includeDomains: ["nitro.build"] });
const page = await readUrl("https://nitro.build/deploy", { provider: "context", format: "markdown" });
Bearer auth against api.context.dev/v1.
What it reads
| Call | Endpoint |
|---|---|
search | POST /web/search |
read | GET /web/scrape/markdown?… |
What comes back
Each search result carries the page's Markdown in text when Context.dev has it, plus metadata.relevance (high, medium, low) and metadata.markdownCode. Domain filters work. No categories, sources or dates. Reads give markdown or html and take targetSelector, removeSelector, timeout and noCache.
Gotchas
- The free tier is credit based. Credits gone means a 401 with a usage message, which is
AuthErrorhere and stops automatic fallback. A spent key is a configuration problem, not something the next provider should pay for. maxResultsgoes up to 100, default 10.
Where it lives
src/providers/context.ts.