Search API Built for AI Developers

One call gathers the pages for a question. A separate call reads the page you picked. Both are plain HTTP, and they are billed separately.

What one search actually does

You send a question. The service finds the pages that answer it, reads them, scores them, and hands back the text - not a list of blue links. What comes back is the material an agent needs, already ranked and already dated, in a shape your code can pass to a model without a formatting step in between.

There is no SDK to install and no client library to keep up to date. The whole API is two endpoints and a bearer token, and anything that can make an HTTPS request can use it: Python, Node, Go, Rust, a shell script, an agent framework.

POST https://agentsearch.tech/v1/search

curl -X POST https://agentsearch.tech/v1/search \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "kubernetes rolling update strategy", "limit": 5 }'
Field Type What it does
querystringThe question, 1 to 128 characters. A query of nothing but whitespace is rejected before it leaves our servers.
limitintegerHow many results to return, 1 to 50. Defaults to 10. It changes what you read, not what a call costs.
need_contentbooleanFalse by default, which returns the search's summary of each page. True returns the full page body instead, and drops the summary.
ori_questionstringThe question the user actually asked, when it is longer than the query. Up to 128 characters. Optional.
localizationstringThe region whose locale the results should match. Up to 64 characters. Optional.
streambooleanTrue returns the answer as a Server-Sent Events stream. The same endpoint, POST /v1/search/stream, does exactly this without the flag.

What comes back

A successful call is HTTP 200 and a flat JSON object. There is no envelope and no status code inside the body - an error answers with an HTTP error code and a detail string instead.

{ "query_id": "search_e6bb86e4b7ed", "intent": "tech", "results": [ { "title": "Performing a Rolling Update", "url": "https://kubernetes.io/docs/...", "content": "A rolling update replaces the old version...", "snippet": "A rolling update replaces the old version...", "source": "web", "quality_score": 0.89, "published_date": "2026-03-11T16:00:00+00:00", "author": null, "authority": 4, "rerank_score": 2.4, "site_name": "Kubernetes Documentation" } ], "total_results": 5, "structured_markdown": "# Search Results for: ...", "total_tokens": 2496, "latency_ms": 450, "cached": false, "sources_used": ["web"], "unavailable_sources": [] }

Three fields are worth reading twice. published_date is a UTC timestamp in its own field - nothing has to be parsed out of the text. authority and rerank_score are the search engine's own ratings, passed through untouched, so you can filter or re-rank yourself without guessing. And total_tokens is the size of the text you were handed - it is not model output, because no language model is called by a search.

Search syntax inside the query

The query is passed through the search engine's own syntax, so you can steer it without building a filter layer on your side.

Syntax What it does
site:example.comOnly pages from that domain
-site:example.comEverything except that domain
-termExcludes that word
-"exact phrase"Excludes that phrase
"exact phrase"Only that exact phrase
lang:enPages in that language
after:2026-01-01Published after that date
before:2026-06-01Published before that date

These go inside the query string - there is no separate parameter for them. A query of site:python.org after:2026-01-01 "asyncio task group" is a single string, and it is still one call and one price.

Fetch: reading the page you picked

A search returns summaries. When you need the page itself - to quote it, to extract a table, to check a number against the source - a second endpoint reads it on our servers and returns the readable text.

curl -X POST https://agentsearch.tech/v1/fetch \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://kubernetes.io/docs/tasks/administer-cluster/rolling-update/" }'

The normal pattern is to search with the default summary, then fetch only the one or two pages you are going to quote. That is where the two meters earn their keep: reading a page does not use up the search allowance, and a search does not use up the fetch one.

Two meters, priced separately

Plan Searches Fetches Rate
Free100 per month20 per month2 requests/second
Pro - $9/month3,000 per month1,000 per month20 requests/second
Team - $79/month30,000 per month10,000 per month50 requests/second

Going over the allowance is not blocked and does not produce an error. The call is served, the overage is counted, and it is priced at $2.5 per 1000 calls on each meter. The overage shows up in your usage report with what it would cost - it is not added to your subscription without you seeing it. A search that asks for 1 result costs exactly what a search that asks for 50 results costs, because you are billed per successful call and not per result.

When a call fails

Errors answer with an HTTP status and a detail string that says what went wrong. The two that decide what your code should do next are 504 and 429.

Code Meaning What to do
400 / 422The request itself is wrong - a bad field, a limit outside 1-50, a query over 128 charactersFix the request. Retrying it unchanged fails the same way.
401The API key is missing, invalid or expiredCheck the key
402Your plan has no allowance for this action at allChange plan
429Rate limit exceededBack off and retry
502 / 503The search backend failed or is unavailableRetry; 503 is our problem, not yours
504The search did not answer within 30 secondsRetry

A search is given up on at 30 seconds. Retry a 504, a 429 or a 502 after a short pause, and never retry a 400 or a 422 unchanged.

What this API does not do

It is worth being plain about the edges, because most API pages are not.

See the whole contract

The documentation has the request body, the response format, every error code and the rate limits for all three plans.

Get a free API key

Related: how the response is shaped, how results are scored, and what a call costs.

Start with a hundred searches a month

Free tier, no card, and nothing to install.

Get API Key Free