---
title: "Read a law, its provenance and first text part."
method: GET
path: "/api/legislation/{id}"
---

# Read a law, its provenance and first text part.

`GET /api/legislation/{id}`

## Request

- Base URL: `https://okfindex.com`
- URL: `https://okfindex.com/api/legislation/{id}`
- Auth: none declared

Returns: Search item fields plus {metadata,source_commit,repository_url,original_url,parts,part:1,markdown}. Official-source records have null source_commit and repository_url. original_url downloads the complete Markdown conversion. Relevant source metadata and original evidence are preserved. revoked:false does not prove that the law is in force.

## Path parameters

- `id` string, required

## Response `200`

Search item fields plus {metadata,source_commit,repository_url,original_url,parts,part:1,markdown}. Official-source records have null source_commit and repository_url. original_url downloads the complete Markdown conversion. Relevant source metadata and original evidence are preserved. revoked:false does not prove that the law is in force.

## Other responses

- `400`: Invalid query or part.
- `404`: Document or part not found.
- `429`: Reader busy. Retry after the stated delay.
- `503`: The corpus is unavailable. Do not treat this as no results.

---

[API](https://skmtc.dev/okfindex/apis/okf-index.md) · [All operations](https://skmtc.dev/okfindex/apis/okf-index/llms.txt) · [OpenAPI document](https://skmtc.dev/okfindex/apis/okf-index/revisions/4b13ca3c739f?raw)
