HTTP API
The tools of the MCP server as operations under https://api.pandex.io/v1, with the same arguments. Answers are JSON, or the text a model reads.
A request
Arguments go in a JSON body. The key goes in Authorization: Bearer YOUR_KEY, in X-API-Key or in ?key=; without one an address may ask 50 times a day.
curl -s https://api.pandex.io/v1/search \
-H "Authorization: Bearer YOUR_KEY" \
-H "content-type: application/json" \
-d '{"query": "right to erasure personal data", "jurisdiction": "eu", "limit": 3}'const res = await fetch("https://api.pandex.io/v1/search", {
method: "POST",
headers: { "content-type": "application/json", authorization: "Bearer YOUR_KEY" },
body: JSON.stringify({ query: "right to erasure personal data", jurisdiction: "eu", limit: 3 }),
});
if (!res.ok) throw new Error((await res.json()).error);
const { hits } = await res.json();import requests
res = requests.post(
"https://api.pandex.io/v1/search",
headers={"Authorization": "Bearer YOUR_KEY"},
json={"query": "right to erasure personal data", "jurisdiction": "eu", "limit": 3},
)
res.raise_for_status()
hits = res.json()["hits"]Operations
| Request | Arguments |
|---|---|
| POST /v1/search | Those of search, in a JSON body. Also GET with a query string. |
| POST /v1/document | Those of get_document, in a JSON body. |
| POST /v1/outline | Those of get_outline, in a JSON body. |
| POST /v1/citations | Those of get_citations, in a JSON body. |
| POST /v1/changes | Those of get_changes, in a JSON body. |
| GET /v1/sources | Those of list_sources, in the query string. |
| GET /v1/register | None. What is held of every institution and what is not, as on the coverage page. |
JSON or text
An answer is JSON: every passage with its id, its document, its dates and the address of the source. Add ?format=text to any operation for the text the MCP tool gives a model: the same answer, written to be read, cut to max_tokens.
Each tool’s page shows one request with both answers.
Limits
| Caller | A day | A minute |
|---|---|---|
| Without a key, per address | 50 | 10 |
| A free key | 1,000 | 60 |
| A paid plan · pricing | set to your traffic |
A day ends at midnight UTC. A tool call over MCP that is over the limit gets a message the model reads.
Errors
An error is a status and a sentence: {"error": "…"}.
400- An argument is missing or wrong, or no text was found for an id. The message says what to pass instead.
401- The key is not known or was switched off.
403- The request came from a page in a browser on another site. Call the API from a server.
429- The limit of the key, or of the address without one, is reached. The message says when to ask again.
What is logged
Requests are logged under the key with their arguments and how long they took, to see what is asked for and what is missing. Requests without a key are logged without the address they came from. Privacy.