Get API X402 legislation
get_api_x402_legislationSearches Brazilian federal laws for an agent, paid per call: up to 20 items, with no account.
The search of GET /api/legislation/search, sold per call to agents, with no account and no allowance before. A request without payment gets the 402 with the price; a paid one gets the items in the same response, with the payment in cobranca. Send at least one of q, type, year or authority. A refused search and an unavailable corpus are not charged. Full-text search covers title, description and body. Number/year uses an exact indexed lookup. Source metadata is not a verification of legal currency. No state or municipal laws in this collection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Number/year, such as 10406/2002, or words. At most 160 characters. LGPD, CDC and Código Civil aliases are supported. | |
| type | No | constituicao, leis-ordinarias, leis-complementares, leis-delegadas or decretos-lei. | |
| year | No | Year, from 1800 to 2099. | |
| after | No | Cursor from next. Do not generate a cursor. | |
| authority | No | Issuing body declared by the source: congresso-nacional, presidencia-da-republica or unknown. The provider is separate. |