AI agents
A web_search tool for Claude, Cursor, OpenClaw, n8n or your own agent, returning sources the model can quote.
Use cases · from $1.20/1K searches
Four jobs cover most of what people do with a search API that also reads the pages: a search tool for an agent, deep research, retrieval for RAG, and news monitoring. Each page below gives the settings, the volumes and working code.
Quick answer
What is a web search API for AI agents used for?
Teams use a web search API for AI agents to give an assistant a search tool, to run deep research across dozens of pages, to feed RAG pipelines with fresh web text and to watch the news. LLMWebSearch covers all four with one call that returns ranked results plus the top pages as Markdown, from $1.20/1K searches. No KYC; pay in crypto.
A web_search tool for Claude, Cursor, OpenClaw, n8n or your own agent, returning sources the model can quote.
Plan several queries, read the pages behind them, drop duplicates and write a report with numbered citations.
Retrieve fresh text at question time, cut it into chunks and answer with links back to each page.
Run the same queries every day with news results from the past day, and report each story once.
A tested Python script of about 60 lines that plans, searches, reads and cites.
The arithmetic for three workloads, with dated prices of other APIs and of built-in model tools.
Example volumes to size a first pack, not measurements. With read at 3 or less, every search is one credit.
| Use case | Searches per task | Typical settings | Example month | Pack that covers it |
|---|---|---|---|---|
| AI agent tool | 2 to 6 per question | max_results=5, read=3 | 100 questions a day: 6,000 to 18,000 searches | 25,000 searches ($41.25) |
| Deep research | 20 to 60 per report | read=3; read=5 for narrow topics (2 credits) | 1,000 reports: 20,000 to 60,000 searches | 100,000 searches ($145) |
| Live-web RAG | 1 or 2 per question | read=3, max_chars=12000 | 5,000 questions: 5,000 to 10,000 searches | 25,000 searches ($41.25) |
| News monitoring | 1 per topic per run | topic=news, time_range=day | 50 topics checked daily: 1,500 searches | 5,000 searches ($9.25) |
Each one needs the words on the page, not just a list of links. A snippet of 160 characters rarely holds the figure, the date or the condition a model must quote. So most stacks end up with two services: a search API to find URLs and a reader to fetch them.
LLMWebSearch merges the two steps. One call runs a live web search and reads the first pages it finds. Each result carries its position, title, URL, host, snippet and, when it was read, the page's main content as Markdown or plain text with its word count and publication date when known. The agent gets text it can cite in the same round trip, and you get one bill.
The other shared need is control. You decide how many results come back (max_results), how many pages are read (read) and how long each page may be (max_chars). Those three numbers set both the token cost on your model's side and the credit cost on ours.
Start from the defaults and change one thing at a time.
max_results=5 and read=3, and cap pages at 3,000 to 5,000 characters. Agents call the tool often, so short answers keep the context clean.read=3 per query and run more queries. Raise read only when one query must cover a narrow subject in depth.max_chars around 12,000) and chunk them yourself. Add include_domains when answers must come from known sources.topic=news and time_range=day, then remove URLs you have already seen. Read three articles per query to summarise what changed.All filters are listed in the search reference.
Multiply tasks per day by searches per task, then by 30. An assistant that answers 100 questions a day with 4 searches each needs about 12,000 searches a month. That fits in 25,000 searches with room for a second month.
Credits do not run out at the end of a billing cycle. Search credits have no expiry date: what you do not use this month is still there next year. A small pack bought for a prototype keeps its value until the project grows. The cost guide works through three larger cases and compares them with other APIs and with the search tools built into models.
Start small; unused credits stay on the account. One credit pays for one search: up to 20 ranked results, with the pages of the first 3 read and returned as Markdown. Reading 4 to 10 pages makes it 2 credits. A call that ends in an error costs nothing.
5,000 searches
$9.25
$1.85/1K searches
25,000 searches
$41.25
$1.65/1K searches
100,000 searches
$145
$1.45/1K searches
In every plan: Top 3 pages read as Markdown · Country, language, time and domain filters · Failed calls not charged · Credits never expire
Yes. You can also create one key per project or agent and revoke any of them alone. Make one API key per agent, app or teammate and revoke any of them from the dashboard without touching the others.
No. The API returns sources, not a written answer: your own model reads the pages, writes the reply and cites the URLs. That keeps the choice of model, prompt and citation style with you.
Deep research, because one report runs many searches. A report that uses 40 searches costs 40 credits with read at 3 or less. Agents and RAG usually need one to six searches per question.
Yes, with the smallest pack. There is no free tier: the 5,000-search pack is the way to try it, bought from the minimum top-up; whatever you added only to reach that minimum comes back on request within 30 days, in USDT or USDC, as long as it is unspent.
From $1.20/1K searches · no KYC
Get an API key