Peru
Tribunal Constitucional

Tribunal Constitucional Rulings Search

Search every resolution the Tribunal Constitucional del Perú has published since 1996: sentencias, autos and sentencias interlocutorias. Free text matches the case file number, the resolution number and the full text. Filter by type, proceeding_type (AA amparo, HC hábeas corpus, HD hábeas data, AC cumplimiento, AI/PI inconstitucionalidad, CC competencial, Q queja), chamber, registration_number (the expediente), year and the publication date (from_date/to_date). Each result links to the document on the court's own site. 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/pe/tribunal-constitucional/rulings-search/v1

Request

  • Base URL: https://api.croma.run
  • URL: https://api.croma.run/pe/tribunal-constitucional/rulings-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

Optional search terms matched against the case file number, the resolution number and the full text.

type'' | 'sentencia' | 'auto' | 'sentencia_interlocutoria'

Optional kind of resolution: sentencia, auto (autos and decretos) or sentencia_interlocutoria.

proceeding_typestring

Optional kind of proceeding, by code or by name: AA (amparo), HC (hábeas corpus), HD (hábeas data), AC (cumplimiento), AI or PI (inconstitucionalidad), CC (competencial), Q (queja).

chamberstring

Optional chamber: Pleno, Sala Primera or Sala Segunda.

registration_numberstring

Optional case file number (expediente) as the court writes it, e.g. 05005-2025-HC. Returns every document of that case. Case and spaces are ignored.

yearinteger

Optional year of publication. 0 searches every year.

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

Results per page (1-50).

Response

Successful response

Changes

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