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.
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 |
|---|---|---|
| query | string | The question, 1 to 128 characters. A query of nothing but whitespace is rejected before it leaves our servers. |
| limit | integer | How many results to return, 1 to 50. Defaults to 10. It changes what you read, not what a call costs. |
| need_content | boolean | False by default, which returns the search's summary of each page. True returns the full page body instead, and drops the summary. |
| ori_question | string | The question the user actually asked, when it is longer than the query. Up to 128 characters. Optional. |
| localization | string | The region whose locale the results should match. Up to 64 characters. Optional. |
| stream | boolean | True returns the answer as a Server-Sent Events stream. The same endpoint, POST /v1/search/stream, does exactly this without the flag. |
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.
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.com | Only pages from that domain |
-site:example.com | Everything except that domain |
-term | Excludes that word |
-"exact phrase" | Excludes that phrase |
"exact phrase" | Only that exact phrase |
lang:en | Pages in that language |
after:2026-01-01 | Published after that date |
before:2026-06-01 | Published 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.
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/" }'
text - markup, scripts and styles are stripped out.truncated: true.max_chars controls how much text you want back, from 200 to 100,000 characters.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.
| Plan | Searches | Fetches | Rate |
|---|---|---|---|
| Free | 100 per month | 20 per month | 2 requests/second |
| Pro - $9/month | 3,000 per month | 1,000 per month | 20 requests/second |
| Team - $79/month | 30,000 per month | 10,000 per month | 50 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.
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 / 422 | The request itself is wrong - a bad field, a limit outside 1-50, a query over 128 characters | Fix the request. Retrying it unchanged fails the same way. |
| 401 | The API key is missing, invalid or expired | Check the key |
| 402 | Your plan has no allowance for this action at all | Change plan |
| 429 | Rate limit exceeded | Back off and retry |
| 502 / 503 | The search backend failed or is unavailable | Retry; 503 is our problem, not yours |
| 504 | The search did not answer within 30 seconds | Retry |
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.
It is worth being plain about the edges, because most API pages are not.
total_tokens reports the size of the text you received so you can size your own prompt.intent field is a classification of your query, not a different backend.The documentation has the request body, the response format, every error code and the rate limits for all three plans.
Get a free API keyRelated: how the response is shaped, how results are scored, and what a call costs.