---
title: "Search or read federal legal texts in the browser."
method: GET
path: "/legislation/{id}"
---

# Search or read federal legal texts in the browser.

`GET /legislation/{id}`

## Request

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

HTML page. Omit the ID for search. Use /pt/legislation for Portuguese. Read machine data through /api/legislation.
Returns: HTML with search results, source links, and the text reader.

## Path parameters

- `id` string, required

## Query parameters

- `q` string
- `after` string
- `part` integer

## Response `200`

HTML with search results, source links, and the text reader.

## Other responses

- `400`: Invalid part.
- `404`: Document or part missing.
- `503`: Corpus unavailable.

---

[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)
