Skip to content

Read the law on a past day

Legislation changes. When the facts of a case lie in the past, the wording that matters is the one in force then. get_document takes at for that day, and history for the periods of every version.

Terminal window
curl -s "https://api.pandex.io/v1/document?format=text" \
-H "content-type: application/json" \
-d '{"id": "BW 7", "element": "7:668a", "at": "2010-01-01", "history": true}'

The answer gives the wording of article 7:668a of the Dutch Civil Code in force on 1 January 2010, the period it was in force (2002-04-01 to 2010-07-09), and the periods of the versions after it.

  • Without at, the wording in force today.
  • history lists the periods of the article asked for; a whole law has a version count instead.
  • How far back the versions go depends on the source: see held_from in the answer and the coverage.