api

Api Get Law Meta

Get law metadata only. Fast — no content fetching from GitHub.

Free tier: basic fields (id, title, status, dates, country, law_type). Pro tier: adds department, source, last_updated, extra (country-specific metadata).

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

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

Path parameters

countrystring required
law_idstring required

Response

Successful Response

idstring required
titlestring required
short_titlestring nullable
countrystring required
law_typestring required
publication_datestring nullable
statusstring nullable
jurisdictionstring nullable
article_countinteger nullable
text_statestring
reform_countinteger nullable
text_supersededboolean nullable
departmentstring nullable
sourcestring nullable
last_updatedstring nullable
extraobject nullable
articles_indexedboolean nullable required

Metadata counts do not establish an index in the currently served body.

Changes

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