---
title: "Asamblea Legislativa de El Salvador Decrees Search"
method: POST
path: "/sv/asamblea-sv/decrees-search/v1"
tags: ["El Salvador", "Asamblea Legislativa de El Salvador"]
---

# Asamblea Legislativa de El Salvador Decrees Search

`POST /sv/asamblea-sv/decrees-search/v1`

## Request

- Base URL: `https://api.croma.run`
- URL: `https://api.croma.run/sv/asamblea-sv/decrees-search/v1`
- Auth: HTTP bearer

Search every decree of El Salvador's Asamblea Legislativa. Its register holds the laws, codes and regulations and every other legislative decree, from loan authorizations and tax exemptions to elections of officials and honorary distinctions. Free text matches the title, the Asamblea's summary and the full text. Filter by `type` (`Decreto`, `Ley`, `Código`, `Reglamento`), `subject`, `subtopic`, `area_of_law`, `number`, `year` and the date the decree was issued (`from_date`/`to_date`). Each result carries Croma's copy of the decree's document and links to the record and the document on the Asamblea'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`.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `query` string: Optional search terms matched against the decree's title, the Asamblea's summary and the full text.
  - `type` string: Optional kind of act as `type` names it: `Decreto`, `Ley`, `Código` or `Reglamento`. Case and accents are ignored.
  - `subject` string: Optional subject as `subject` names it, e.g. `Hacienda y Presupuesto`, `Asamblea Legislativa`, `Seguridad Pública`, matched from the start. Case and accents are ignored.
  - `subtopic` string: Optional subtopic as `subtopic` names it, e.g. `Autorizaciones para Préstamos`, `Exenciones (Franquicias)`, `Distinciones Honoríficas`, matched from the start. Case and accents are ignored.
  - `area_of_law` string: Optional area of law as `area_of_law` names it, e.g. `Derecho Administrativo`, `Derecho Penal`, `Derecho Tributario o Fiscal`, matched from the start. Case and accents are ignored.
  - `number` string: Optional decree number, e.g. `632`. Numbers restart with each legislature, so combine it with `year` or dates.
  - `year` integer: Optional year the Asamblea issued the decree. 0 searches every year.
  - `from_date` string, date: Optional date filter in yyyy-mm-dd format.
  - `to_date` string, date: Optional date filter in yyyy-mm-dd format.
  - `page` integer: 1-based page number for paginated results.
  - `per_page` integer: Results per page (1-50).

## Response `200`

Successful response

- AsambleaSvDecreesSearchResponse
  - `data` AsambleaSvDecreesSearchData, required
    - `as_of` string, nullable, required: How current the data in this response is.
    - `query` string, required
    - `type` string, nullable, required
    - `subject` string, nullable, required
    - `subtopic` string, nullable, required
    - `area_of_law` string, nullable, required
    - `number` string, nullable, required
    - `year` number, nullable, required
    - `from_date` string, nullable, required
    - `to_date` string, nullable, required
    - `total` number, required: Matches, counted up to 1000.
    - `total_is_exact` boolean, required: False when more than 1000 match: `total` is then 1000, and the pages go on.
    - `page` number, required
    - `per_page` number, required
    - `total_pages` number, required: Pages over `total`; there are more when `total_is_exact` is false.
    - `count` number, required
    - `results` object[], required
      - `id` string, required: The decree's permanent number in the Asamblea Legislativa's register, e.g. "7000".
      - `number` string, nullable, required: The decree number, e.g. "632". Numbers restart with each legislature.
      - `type` string, nullable, required: The kind of act: "Decreto", "Ley", "Código" or "Reglamento".
      - `title` string, required: The decree's title as the Asamblea registers it.
      - `summary` string, nullable, required: The Asamblea's summary of what the decree provides.
      - `subject` string, nullable, required: The subject (materia) the Asamblea files it under, e.g. "Hacienda y Presupuesto".
      - `subtopic` string, nullable, required: The subtopic (sub-materia), e.g. "Autorizaciones para Préstamos".
      - `area_of_law` string, nullable, required: The area of law (rama del derecho), e.g. "Derecho Administrativo".
      - `issue_date` string, nullable, required: `yyyy-mm-dd` the Asamblea issued the decree.
      - `year` number, nullable, required: The year the Asamblea issued the decree.
      - `publication_date` string, nullable, required: `yyyy-mm-dd` of publication in the Diario Oficial. While `pending_publication` is true, the date the Diario Oficial has assigned.
      - `gazette_number` string, nullable, required: The number of the Diario Oficial that publishes it.
      - `gazette_volume` string, nullable, required: The volume (tomo) of the Diario Oficial that publishes it.
      - `pending_publication` boolean, required: True while the decree awaits its publication in the Diario Oficial; `publication_date` is then the date assigned to it.
      - `text_status` 'ok' | 'scanned' | 'missing', required: `ok` when the full text is here; `scanned` when the document is an image with no text in it; `missing` when the Asamblea publishes no readable document yet.
      - `official_url` string, required: The decree's record on the Asamblea Legislativa's site.
      - `document_url` string, nullable, required: Croma's copy of the decree's document (PDF), byte for byte as the Asamblea published it. Null when it publishes none.
      - `source_document_url` string, nullable, required: The decree's document on the Asamblea Legislativa's own site.
      - `document_modified_at` string, nullable, required: When the Asamblea last changed the document, as its site reports it.

## Other responses

- `400`: Invalid request body
- `401`: Missing or invalid API key
- `429`: Rate limit exceeded
- `500`: Internal error
- `502`: Upstream source returned an error

---

[API](https://skmtc.dev/usecroma/apis/croma-marketplace-api.md) · [All operations](https://skmtc.dev/usecroma/apis/croma-marketplace-api/llms.txt) · [OpenAPI document](https://skmtc.dev/usecroma/apis/croma-marketplace-api/revisions/74c745980c60?raw)
