api

Api Law At Date

Get the latest recorded version of a law dated on or before date.

Resolves the date to a version server-side, so callers do not have to walk /commits looking for a SHA. The resolved sha and version_date come back with the text so the answer stays verifiable.

Resolution uses the source's publication date where known, or the version's explicit cutoff when no publication date is recorded. Selection does not establish entry into force: a published reform may still be within its vacatio legis. Check version_date and the source before citing; citation_url opens the selected version.

Read text_state and kind before quoting the body. consolidated identifies a dated consolidation. current is the source's latest text and cannot establish what the law said on a historical date. as_enacted means this revision holds the act as it was passed: if text_superseded is true, what you are reading is not the version in force on the date you asked for, warning says so in a sentence you can show a human, and amended_by names the norms that changed it.

get/api/v1/{country}/laws/{law_id}/at

Request

  • Base URL: https://legalize.dev (the document declares no server; this is the origin it was published from)
  • URL: https://legalize.dev/api/v1/{country}/laws/{law_id}/at
  • Auth: API key in header Authorization

Path parameters

countrystring required
law_idstring required

Query parameters

datestring required

Point in time, YYYY-MM-DD

Response

Successful Response

law_idstring required
datestring required
shastring nullable required
version_datestring nullable required
citationstring required
citation_urlstring required
content_mdstring required
kindstring
text_statestring
statusstring nullable
in_forceboolean nullable
source_urlstring nullable
basisstring nullable
text_supersededboolean nullable
warningstring nullable
amended_byobject[]
source_notesobject[]

Changes

No recorded changes to this operation across all 1 revision of this API.