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.

get/api/legislation/search

Request

  • Base URL: https://okfindex.com
  • URL: https://okfindex.com/api/legislation/search
  • Auth: none declared

Query parameters

qstring

Number/year, such as 10406/2002, or words. At most 160 characters. LGPD, CDC and Código Civil aliases are supported.

typestring

constituicao, leis-ordinarias, leis-complementares, leis-delegadas or decretos-lei.

yearinteger

Year, from 1800 to 2099.

authoritystring

Issuing body declared by the source: congresso-nacional, presidencia-da-republica or unknown. The provider is separate.

afterstring

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.