Skip to content

Citations of an article or a decision

POST
/v1/citations
curl --request POST \
--url 'https://api.pandex.io/v1/citations?format=json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "direction": "in", "element": "example", "id": "example", "limit": 1, "max_tokens": 1, "order": "leading", "relation": "example" }'

What cites a document or one of its articles (direction “in”: the leading ones first, those the other citing documents cite most, each with the passage that cites it), or what it cites (direction “out”), with the places where. Targets we do not hold are listed as written. To search inside the citing passages, use search with cites.

The MCP tool get_citations 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.

Media typeapplication/json
object
direction

In (default): documents that cite it. out: what it cites.

string
Allowed values: in out
element

Only citations of, or from, this element.

string
id
required

An id from a result, or an identifier or citation.

string
limit

Lines to return, 1–60. Default 15.

integer
max_tokens

Size of the answer in tokens, 200–8000. Default 1500.

integer
order

For direction in. leading (default): those the other citing documents cite most. newest: by date.

string
Allowed values: leading newest
relation

Only one relation: cites, amends, repeals, implements, consolidates, appeals, joins.

string

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

object
direction

In or out.

string
element

The element asked for.

string | null
held

Those whose other side is held.

Array<object>
object
among

How many of the documents that cite the same text cite this one too.

integer | null
at

Elements of the citing side.

Array<string>
cited_by

How many documents cite the citing document itself.

integer
date

Its date.

string | null
id

The other document, when it is held.

string | null
issuer

Its legislator or court.

string | null
n

How many times.

integer
quote

The passage the citation stands in.

string | null
relation

Cites, amends, repeals, implements, consolidates, appeals, joins.

string
target

What it points to as written, for a target not held.

string | null
title

Its title.

string | null
to

Elements of the cited side.

Array<string>
id

The document.

string
not_held

Those whose other side is not held, as written.

Array<object>
object
among

How many of the documents that cite the same text cite this one too.

integer | null
at

Elements of the citing side.

Array<string>
cited_by

How many documents cite the citing document itself.

integer
date

Its date.

string | null
id

The other document, when it is held.

string | null
issuer

Its legislator or court.

string | null
n

How many times.

integer
quote

The passage the citation stands in.

string | null
relation

Cites, amends, repeals, implements, consolidates, appeals, joins.

string
target

What it points to as written, for a target not held.

string | null
title

Its title.

string | null
to

Elements of the cited side.

Array<string>
note

A word on the answer.

string | null
title

Its title.

string
total

Citations in all.

integer

Example generated

{
"direction": "example",
"element": "example",
"held": [
{
"among": 1,
"at": [
"example"
],
"cited_by": 1,
"date": "example",
"id": "example",
"issuer": "example",
"n": 1,
"quote": "example",
"relation": "example",
"target": "example",
"title": "example",
"to": [
"example"
]
}
],
"id": "example",
"not_held": [
{
"among": 1,
"at": [
"example"
],
"cited_by": 1,
"date": "example",
"id": "example",
"issuer": "example",
"n": 1,
"quote": "example",
"relation": "example",
"target": "example",
"title": "example",
"to": [
"example"
]
}
],
"note": "example",
"title": "example",
"total": 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"
}