Search Brazilian federal legal texts.
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. Returns: {items:[{id,title,description,type,year,number,authority,country:'BR',jurisdiction:'federal',uf:null,provider,source_url,lexml_url,downloaded_at,text_version,revoked,missing_text,sha256,api,url,okf_url}],next}. Up to 20 items; follow next until null. authority=unknown means the source did not identify an issuing body. UF does not apply to this federal jurisdiction.
Request
- Base URL: https://okfindex.com
- URL: https://okfindex.com/api/legislation/search
- Auth: none declared
Query parameters
Number/year, such as 10406/2002, or words. At most 160 characters. LGPD, CDC and Código Civil aliases are supported.
constituicao, leis-ordinarias, leis-complementares, leis-delegadas or decretos-lei.
Year, from 1800 to 2099.
Issuing body declared by the source: congresso-nacional, presidencia-da-republica or unknown. The provider is separate.
Cursor from next. Do not generate a cursor.
Response
{items:[{id,title,description,type,year,number,authority,country:'BR',jurisdiction:'federal',uf:null,provider,source_url,lexml_url,downloaded_at,text_version,revoked,missing_text,sha256,api,url,okf_url}],next}. Up to 20 items; follow next until null. authority=unknown means the source did not identify an issuing body. UF does not apply to this federal jurisdiction.
Changes
No recorded changes to this operation across all 1 revision of this API.