El Salvador
Corte Suprema de Justicia de El Salvador

Corte Suprema de Justicia de El Salvador Laws Search

Search El Salvador's legislation as the Corte Suprema de Justicia's documentation center keeps it: more than 10,000 legal texts published in the Diario Oficial since 1821, from the codes and laws to executive decrees, regulations, agreements and municipal ordinances. Free text matches the name, the documentation center's summary and the consolidated text. Filter by type, status (vigente, caducada, derogada), subject, number, municipality, department, year and the publication date (from_date/to_date). Each result carries Croma's copy of the original document and links to the record and 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/sv/csj-sv/laws-search/v1

Request

  • Base URL: https://api.croma.run
  • URL: https://api.croma.run/sv/csj-sv/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

Optional search terms matched against the act's name, the documentation center's summary and the full text.

typestring

Optional kind of document as type names it: Decretos Legislativos, Decretos Ejecutivos, Decretos Institucionales, Acuerdos, Reglamentos, Ordenanzas Municipales or Documentos Generales, matched from the start. Case and accents are ignored.

status'' | 'vigente' | 'caducada' | 'derogada'

Optional status: vigente (in force), caducada (expired) or derogada (repealed).

subjectstring

Optional area of law as subject names it, e.g. Penal, Tributaria, Laboral, matched from the start. Case and accents are ignored.

numberstring

Optional decree or agreement number, e.g. 1030. Case, spaces and punctuation are ignored.

municipalitystring

Optional municipality of an ordinance, e.g. San Salvador Centro, matched from the start. Case and accents are ignored.

departmentstring

Optional department of an ordinance, e.g. La Libertad, matched from the start. Case and accents are ignored.

yearinteger

Optional year of publication in the Diario Oficial. 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.