api

Api Diff Law

Unified diff of a law between the versions in force on two dates.

The HTTP half of the MCP tool of the same name, and the same function underneath: for a law too large to diff whole it returns changed_headings with diff_omitted, and you ask again with article= from that list.

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

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}/diff
  • Auth: API key in header Authorization

Path parameters

countrystring required
law_idstring required

Query parameters

date_astring required

The earlier date, YYYY-MM-DD.

date_bstring required

The later date, YYYY-MM-DD.

articlestring nullable

Diff one article only, by its anchor or heading.

Response

Successful Response

unknown required

Changes

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