Introduction
https://api.pandex.io/v1Arguments go in a JSON body (POST), except GET /v1/sources, which takes a query string. search also takes GET with its arguments as a query string. Every operation has the arguments of the MCP tool of the same name.
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
Section titled “Operations”| Operation | What it does |
|---|---|
POST /v1/search |
Find passages of legislation and decisions. |
POST /v1/document |
Read a document or one article, also on a past day. |
POST /v1/outline |
The structure of a law. |
POST /v1/citations |
What cites a text, and what it cites. |
POST /v1/changes |
What changed in a law, a source or a country. |
GET /v1/sources |
What is held. |
Formats
Section titled “Formats”JSON by default. ?format=text gives the text the MCP tool gives a model. See Answers.
The description
Section titled “The description”The API is described as OpenAPI 3.1 at https://api.pandex.io/openapi.json, made from the same definitions the server answers with.
What is logged
Section titled “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.