Skip to main content
The Asamblea Legislativa de El Salvador keeps a register of the decrees it issues: the laws, codes and regulations, and every other legislative decree, from loan authorizations, tax exemptions and budget items to elections of officials, ratified treaties and honorary distinctions. Its register holds about 5,700 decrees, most of them from 2009 on, and a growing share of older ones back to 1860. Each decree here comes with its number, its kind, the dates it was issued and published, the Diario Oficial issue and volume, the subject, subtopic and area of law the Asamblea files it under, the Asamblea’s summary, its full text, the document as the Asamblea published it, and a link to its record on the Asamblea’s site. Search across all of them at once, by kind, subject, subtopic, area of law, number, year or date, or with free text that reaches into the body of every decree. A decree the Asamblea has just passed appears while it awaits publication in the Diario Oficial, flagged as pending_publication.
The whole source, organized and ready to query: every endpoint on this page answers in milliseconds. Every response carries as_of: how current the data is. How datasets work.

Search the decrees

POST /sv/asamblea-sv/decrees-search/v1 Dataset One search over the full text of every decree in the register, filtered by kind, subject, subtopic, area of law, number, year or date of issue.
Returns as_of (how current the data is), the applied filters, total (matches across every page), page, per_page, total_pages, count and results[], most recently issued first. Every result carries id (the decree’s permanent number in the Asamblea’s register, e.g. 7000), number (the decree number, e.g. 632), type (Decreto, Ley, Código or Reglamento), title, summary (the Asamblea’s summary), subject, subtopic, area_of_law, issue_date, year, publication_date (in the Diario Oficial), gazette_number, gazette_volume, pending_publication, text_status (ok, scanned or missing), official_url (the decree’s record at the Asamblea), document_url (Croma’s copy of the decree’s document, byte for byte as the Asamblea published it, which stays available whatever happens to the Asamblea’s link), source_document_url (the document on the Asamblea’s own site) and document_modified_at.
Search results leave out the text; query still matches it, so a phrase from the body finds the decree. Read the text itself with the Asamblea Legislativa de El Salvador Decree endpoint.

One decree, in full

POST /sv/asamblea-sv/decree/v1 Dataset
Returns as_of, found, decree_id and decree, which carries everything the search returns plus content: a window onto the decree’s full text, with text, offset, total_length, has_more and next_offset. Every result carries id (the decree’s permanent number in the Asamblea’s register, e.g. 7000), number (the decree number, e.g. 632), type (Decreto, Ley, Código or Reglamento), title, summary (the Asamblea’s summary), subject, subtopic, area_of_law, issue_date, year, publication_date (in the Diario Oficial), gazette_number, gazette_volume, pending_publication, text_status (ok, scanned or missing), official_url (the decree’s record at the Asamblea), document_url (Croma’s copy of the decree’s document, byte for byte as the Asamblea published it, which stays available whatever happens to the Asamblea’s link), source_document_url (the document on the Asamblea’s own site) and document_modified_at.
A decree the Asamblea has just passed may still be pending_publication: publication_date is then the date the Diario Oficial has assigned, and the document and text follow once it is published.
An id the Asamblea’s register does not hold returns found: false with HTTP 200, not an error.

Full reference

Schemas, all response fields, and an interactive playground.