What changed in the law
const url = 'https://api.pandex.io/v1/changes?format=json';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":"example","jurisdiction":"example","lang":"example","limit":1,"offset":1,"since":"example","source":"example","until":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://api.pandex.io/v1/changes?format=json' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": "example", "jurisdiction": "example", "lang": "example", "limit": 1, "offset": 1, "since": "example", "source": "example", "until": "example" }'What changed in a law, or in the laws of a source or country: the articles whose wording changed, was inserted or repealed, newest first, with the day. A wording not yet in force is listed too. One law by its id gives all the changes held; a source or a jurisdiction goes five years back.
The MCP tool get_changes takes the same arguments.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Json (default), or text: the answer written for a model to read, as the MCP tool gives it.
Request Bodyrequired
Section titled “Request Bodyrequired”object
One law: an id from a result, or an identifier or citation.
Or the laws of one jurisdiction (“ch”).
Two-letter language, for texts that exist in several.
Lines to return, 1–500. Default 50.
Lines to skip, for the next page.
Only changes from this day on, YYYY-MM-DD.
Or the laws of one source id from list_sources.
Only changes up to this day, YYYY-MM-DD.
Example generated
{ "id": "example", "jurisdiction": "example", "lang": "example", "limit": 1, "offset": 1, "since": "example", "source": "example", "until": "example"}Responses
Section titled “Responses”The answer: JSON, or with format=text the text the MCP tool gives a model.
object
The day the source was last read.
Newest first.
object
Amended, inserted or repealed.
From is after today.
The article.
The day this wording took effect; for repealed the day the last one ended.
The law.
Its number.
The language.
Where it stands.
The day the wording before took effect.
Its short name.
Its title.
The day it ended.
The day the lines of a source or a country go back to.
A word on the answer.
Lines skipped.
From.
Lines in the window, before limit and offset.
Until.
Example generated
{ "as_of": "example", "changes": [ { "change": "example", "coming": true, "element": "example", "from": "example", "id": "example", "label": "example", "lang": "example", "path": "example", "previous_from": "example", "short_title": "example", "title": "example", "to": "example" } ], "held_from": "example", "note": "example", "offset": 1, "since": "example", "total": 1, "until": "example"}An argument is missing or wrong, or no text was found for an id. The message says what to pass instead.
object
What was wrong, and what to pass instead.
Example generated
{ "error": "example"}The key is not known or was switched off.
object
What was wrong, and what to pass instead.
Example generated
{ "error": "example"}The request came from a page in a browser on another site. Call the API from a server.
The limit of the key, or of the address without one, is reached. The message says when to ask again.
object
What was wrong, and what to pass instead.
Example generated
{ "error": "example"}