Search · Generally available

Search your agent can cite — in tokens it can afford.

One request returns a verbatim quote and its source identifier in a token-lean payload. Your agent attributes every claim — and pays for a sentence, not a scraped page.

POST /v1/search curl
curl https://api.aptrouter.com/v1/search \
  -H "Authorization: Bearer $APT_KEY" \
  -H "X-Token-Budget: 120" \
  -d '{ "query": "EU AI Act high-risk obligations" }'

200 OK  6.4 ms · 1 credit
{
  "quote": "High-risk AI systems shall be designed and developed...",
  "source": "eur-lex.europa.eu · AI-Act · Art.14",
  "published": "2024-06-13",
  "tokens": 74,
  "fabricated_citations": 0
}
How it works

Three steps. No invention anywhere in them.

01 · Verbatim quote

Extract, don't generate

The evidence sentence is lifted character-for-character from a fetched source. The model never rewrites it, so it can't drift.

02 · Cited identifier

Every quote carries its origin

A stable source id and publish date ship with each quote, so your agent — and your auditor — can trace it back.

03 · Token-lean payload

Built for what agents pay

Abbreviated keys and an X-Token-Budget header keep the response near 74 tokens — a fraction of a scraped page.

The contract

No fabrication, by construction.

Grounding isn't a prompt we hope holds. It's an architecture: if a quote can't be found in a fetched source, it isn't returned.

Span-verified quotes

Each quote is checked to exist as a contiguous span in the source before the response is built.

Source allowlist

Retrieval runs against curated, dated corpora — not the open web's worst neighborhoods.

Abuse guard

Per-key rate limits and a monthly credit ceiling cap blast radius and runaway spend.

Empty over wrong

No confident match? You get an empty result, not a plausible guess. Silence beats a fabricated cite.

Provably cited
0

fabricated citations by architecture — every quote is extracted verbatim from a fetched source.

Token-lean
~74

tokens per result vs ~480 for a typical scraped page your agent would otherwise read.

Fast
<10ms

single-digit p99 on cached retrieval, measured at the edge in us-east and eu-west.

Response preview

A recorded example — not a live playground.

This shows the exact shape you'll get back. Wire it to your key to run real queries against the live index.

Run (needs a key)
GET /v1/search · example recorded
{
  "quote": "Providers shall ensure traceability of the system's functioning...",
  "source": "eur-lex.europa.eu · AI-Act · Art.12",
  "tokens": 68,
  "fabricated_citations": 0
}

One credit per call. Verbatim every time.

1 credit per /v1/search call, billed against your monthly ceiling.