Brazil
Presidência da República (Planalto)

Planalto Laws Search

Search Brazil's federal legislation as the Presidência da República publishes it: the Constitution of 1988 and its amendments, and every lei complementar, lei ordinária, lei delegada, decreto-lei, decreto and medida provisória. Filter by type, a medida provisória's measure_status, exact number (with or without the thousands dot), signature year or a signature date range (from_date, to_date), and match free text against the act's name, its ementa and its full text. Results come most recently signed first, without the text; read one act with the Planalto Law endpoint. Served by Croma (as_of says how current the data is).

Dataset endpoint: answers from the whole source in milliseconds and carries as_of.

post/br/planalto/laws-search/v1

Request

  • Base URL: https://api.croma.run
  • URL: https://api.croma.run/br/planalto/laws-search/v1
  • Auth: HTTP bearer

Headers

Idempotency-Keystring
Example:0f8e9a42-6b7c-4d1e-9a3f-2c5d7e8f9a0b

Optional client-chosen key for this request (any string up to 255 characters, e.g. a UUID). Every Croma operation is an idempotent lookup: repeating a request with the same body returns the same result and creates nothing, so retrying after a timeout or network failure is always safe. The key is echoed back in the Idempotency-Key response header so you can correlate a retry with its first attempt. Each attempt that reaches the API counts against the rate limit.

Request body

querystring

Términos de búsqueda en el nombre, la ementa y el texto completo del acto (opcional).

type'' | 'constitution' | 'constitutional_amendment' | 'complementary_law' | 'ordinary_law' | 'delegated_law' | 'decree_law' | 'decree' | 'provisional_measure'

Tipo de acto: constitution (la Constitución de 1988), constitutional_amendment (enmiendas constitucionales, incluidas las de revisión), complementary_law, ordinary_law, delegated_law, decree_law, decree o provisional_measure (medida provisória) (opcional; por defecto todos).

measure_status'' | 'pending' | 'converted' | 'lapsed' | 'rejected' | 'prejudiced' | 'revoked'

Situación de una medida provisória: pending (en trámite), converted (convertida en ley), lapsed (vigencia terminada sin votación), rejected, prejudiced (prejudicada) o revoked (opcional).

numberstring

Número del acto, con o sin punto de miles, p. ej. 13105 o 13.105 (opcional). Coincidencia exacta.

yearinteger

Año en que se firmó el acto, p. ej. 2015; 0 sin filtro (opcional). Distingue actos que comparten número.

from_datestring date

Optional date filter in yyyy-mm-dd format.

to_datestring date

Optional date filter in yyyy-mm-dd format.

pageinteger

1-based page number for paginated results.

per_pageinteger

Resultados por página (1-50).

Response

Successful response

Changes

No recorded changes to this operation across all 1 revision of this API.