Skip to content

Sources and coverage

GET
/v1/sources
curl --request GET \
--url 'https://api.pandex.io/v1/sources?format=json' \
--header 'Authorization: Bearer <token>'

The sources that are loaded, per jurisdiction: what each one holds, its languages, how many documents and as of which day. With a jurisdiction: also its institutions (courts, legislators), what is held of each and what is not.

The MCP tool list_sources takes the same arguments.

format
string
Allowed values: json text

Json (default), or text: the answer written for a model to read, as the MCP tool gives it.

jurisdiction
string

Only these jurisdictions, comma-separated.

The answer: JSON, or with format=text the text the MCP tool gives a model.

Array<object>
object
documents

Documents held.

integer
id

The source: pass it as source.

string
jurisdiction

Eu, de, ch-zh…

string
kind

Legislation, decision or treaty.

string
languages
Array<string>
linked

Of its citations of other documents: the share whose target is held.

number | null
name

What it is.

string
parsed_at

When it was last read.

string | null
passages

Passages held.

integer
reuse

The publisher’s terms of reuse.

object
licence

The licence.

string
note

A word on them.

string
url

Where the terms are.

string
scope

What it covers.

string
vectors

Passages searchable by meaning.

integer

Example generated

[
{
"documents": 1,
"id": "example",
"jurisdiction": "example",
"kind": "example",
"languages": [
"example"
],
"linked": 1,
"name": "example",
"parsed_at": "example",
"passages": 1,
"reuse": {
"licence": "example",
"note": "example",
"url": "example"
},
"scope": "example",
"vectors": 1
}
]

An argument is missing or wrong, or no text was found for an id. The message says what to pass instead.

Media typeapplication/json
object
error
required

What was wrong, and what to pass instead.

string

Example generated

{
"error": "example"
}

The key is not known or was switched off.

Media typeapplication/json
object
error
required

What was wrong, and what to pass instead.

string

Example generated

{
"error": "example"
}

The request came from a page in a browser on another site. Call the API from a server.

Media typetext/plain
string

The limit of the key, or of the address without one, is reached. The message says when to ask again.

Media typeapplication/json
object
error
required

What was wrong, and what to pass instead.

string

Example generated

{
"error": "example"
}