Programmistler bólimine qaytıw

Lawify Legal Corpus API

2026-08-14OpenAPI 3.1

Read access to Uzbek legislation as versioned, citable provisions.

Every result carries an immutable id and the dates it was in force, so a stored citation still resolves after the article is amended.

IMPORTANT: an empty `data` array may mean the law is not yet loaded into Lawify, not that no such provision exists. `meta.coverage_note` says so when it applies, and https://lawify.uz/coverage lists what is loaded. Do not present absence of a result to an end user as absence of law.

This API returns legal information, not legal advice.

Tiykarǵı mánzil

https://lawify.uz/api/v1
get/domainscorpus:read

List the fields of law you can filter by

The vocabulary for the `domains` parameter, with labels in every locale the platform serves. Call this rather than hard-coding the list: `available` reflects YOUR key's scope, so an unexpected 403 on a search is explained here without a support ticket.

Juwaplar

  • 200The legal-domain taxonomy
  • 401Missing or invalid key
get/changeschanges:read

What changed in the law

Amendments, repeals, renumberings and future-effective changes, newest first. Poll with `since` to see only what you have not seen — not a page number, which shifts under you when a new amendment lands.

Parametrler

AtıQayerdeTúriTáriyp
sincequerystring <date-time>ISO 8601. Only changes detected after this.
change_typequerystring (added | amended | repealed | renumbered | future_effective)
limitqueryinteger

Juwaplar

  • 200Change events
get/documents/{id}corpus:read

A law and its articles

The whole document as it stood on a date, with provisions in DOCUMENT order rather than relevance order — a statute is not a search result.

Parametrler

AtıQayerdeTúriTáriyp
idmájbúriypathstring
as_ofquerystring <date>
languagequerystring (uz-Latn | uz-Cyrl | ru)

Juwaplar

  • 200The document with its in-force provisions
  • 404No such document
post/mcpcorpus:read

Remote MCP endpoint

JSON-RPC 2.0 over HTTP. Exposes search, citation resolution and coverage as MCP tools for AI clients. Authenticated with the same bearer API key.

Juwaplar

  • 200JSON-RPC response
  • 202Notification accepted; no body, by protocol
get/provisions/{id}corpus:read

Resolve a citation

Returns the exact text for an immutable provision-version id, including after the article has been amended.

Parametrler

AtıQayerdeTúriTáriyp
idmájbúriypathstring

Juwaplar

  • 200The provision version
  • 404No published provision with that id

Sxemalar

Hár bir endpoint qaytaratuǵın dúzilmeler. Maydan atları hám túrleri dál juwaptaǵıday.

Provision
  • idstringmájbúriyImmutable citation target. Store THIS to point at a specific text of a specific article at a specific time.
  • document_idstring
  • articlestringmájbúriy
  • kindstring
  • languagestring (uz-Latn | uz-Cyrl | ru)májbúriy
  • textstringmájbúriyThe provision text as published.
  • effective_fromstring <date>májbúriyInclusive.
  • effective_tostring | null <date>EXCLUSIVE. null = still in force.
  • in_forcebooleanmájbúriyWhether this text was in force on the requested as_of date.
  • official_urlstring | nullOfficial source page. null when none is known — never a constructed URL.
  • source_anchorstring | null
DomainFilter

Present only when a domain filter was applied. `mode` reports the strength of the guarantee: `exact` means nothing outside the domains was ever retrieved; `best_effort` means results were classified by document title after retrieval, so fewer results may be returned than exist — never more.

  • domainsarray
  • modestring (exact | best_effort)
  • excludedintegerResults removed by the filter.
Meta
  • api_versionstring
  • as_ofstring <date>
  • countinteger
  • coverage_notestring
Error
  • errorobject