api

Api Stats

Get aggregate statistics: reform activity by year, most reformed laws, and law types.

get/api/v1/{country}/stats

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

Path parameters

countrystring required

Query parameters

jurisdictionstring nullable

Scope the statistics to one jurisdiction code, or 'national' for the laws that carry no jurisdiction at all (the national corpus).

Response

Successful Response

countrystring required
jurisdictionstring nullable
reform_activity_by_yearobject[] required
most_reformed_lawsobject[] required
law_typesstring[] required

Changes

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