Introducing web search monitors

How do I choose a web search API for grounding an LLM?

Short answer

Choose by what one call gives the model. A search API that returns only links and snippets forces a second scraping pass before the model can read anything; one that returns ranked results with query-relevant passages or full page Markdown grounds the answer in a single round trip. Then check freshness filters, whether every result keeps a citable URL, MCP availability, and the price per 1,000 results once content is included. Context.dev Search returns ranked results with relevance labels plus highlights or full Markdown in the same call, for 1 credit per 10 results, which is $0.20 per 1,000 results on the Developer plan.

Grounding works when the model sees evidence, not a list of URLs. Most search APIs return titles, URLs, and short snippets, so an agent built on them makes a second call to fetch and clean each page before it can quote anything. That doubles latency and cost and adds a scraper to maintain. Prefer an API whose results carry the passages that match the query, or the whole page as Markdown, and that labels how relevant each result is so the agent can drop the weak ones before they reach the prompt.

Context.dev Search is built around that single round trip. POST /v1/web/search takes the question in plain language (or Google-style operators such as site: and quoted phrases), returns 1 to 100 ranked results with a relevance label on each, and can attach highlights or full page Markdown to every result in the same response. Freshness filters limit results to the last 24 hours, week, month, or year; includeDomains and excludeDomains constrain sources; and a country code localizes results. Pricing is 1 credit per 10 results, plus 1 credit per 10 results for highlights and 1 credit per page for Markdown, so 10 results with Markdown cost at most 11 credits. The free plan’s 1,000 credits cover 10,000 results a month.

Know which endpoint you actually need. Search returns pages and optional content for your application to reason over. Answers takes a research task and an example JSON shape, reads the web, and returns json_content in that shape with the source URLs it used, for 10 credits in Fast mode. Scrape fetches one page you already know. Research agents often chain them: Search to find candidates, Scrape or the Markdown option to read them, Answers when the question needs synthesis across many sources.

Decide with a sample, not a feature list. Run 30 to 50 of your real prompts and score each on whether the returned passages answer the question, how often a stale page sneaks past the freshness filter, whether every quoted claim maps to a URL, and the total credits consumed including content retrieval. Treat all retrieved text as untrusted input in your prompt, since a search result can contain instructions aimed at the model. If your users live in Claude, Cursor, Codex, or ChatGPT, connect the hosted MCP server, which exposes search alongside scrape and crawl with OAuth sign-in.

The five checks and what Context.dev Search returns
What to checkWhy it mattersContext.dev Search
What one call returnsLinks alone need a second fetch before the model can readRanked results with relevance labels, plus highlights or full page Markdown
Freshness and source controlsStale or off-topic pages produce confident wrong answersLast 24 hours to last year; include or exclude domains; country
CitationsEvery claim should map to a URLTitle, URL, description, and relevance on every result
Agent accessAssistants should call it without glue codeHosted MCP server with OAuth sign-in
Price per 1,000 resultsThe comparable number across vendors$0.20 on the Developer plan; highlights add $0.20, Markdown 1 credit per page
Search, Answers, or Scrape
EndpointInputOutputCredits
SearchA question or queryRanked results, optional highlights or Markdown1 per 10 results, plus content add-ons
AnswersA research task and an example JSON shapejson_content in your shape with source URLs10 in Fast mode, 100 in Ultra
ScrapeOne URLMarkdown, HTML, JSON, screenshots1 per page, 5 with JSON extraction
Which one to pick
If this is your situationUse
The agent must quote passages and cite URLs in one round tripSearch with highlights or Markdown
You need a synthesized answer across many sourcesAnswers
You already know the pageScrape
Your users ask inside Claude, Cursor, or CodexThe hosted MCP server

Last reviewed

All web scraping API questions

Try it on Context.dev

The endpoints that cover this workload directly.

FAQ

How fresh are web search API results?

Every Context.dev query runs a live search at request time, and the freshness filter limits results to the last 24 hours, week, month, or year. Page content attached to results can be served from a recent capture, so set markdownOptions.maxAgeMs to 0 when the agent needs each page scraped fresh.

What does grounding cost per 1,000 results?

Search costs 1 credit per 10 results, so 1,000 results are 100 credits, which is $0.20 on the Developer plan ($20 for 10,000 credits). Adding highlights doubles that to $0.40, and full Markdown for every result adds 1 credit per page on top.

Is a search API enough, or do I also need a scraper?

If the API returns the passages or full pages you need, search alone grounds the answer. If it returns links and snippets, you need a scraping step. Context.dev folds that step into the search call through the highlights and Markdown options, and the same key covers Scrape when you want one specific page.

Go deeper

Start building with live web context.

Scrape, search, and research the web with one API. Bring the results straight into your product.

1,000free credits

Every month. No credit card required.

Start for freeRead the docs