Search the norms
POST /co/sidn/norms-search/v1 Dataset 1 credit
One search over every norm in the catalogue, by the words of its text or filtered by type, number, year or date.
Request
as_of (how current the data is), the applied filters, total and total_is_exact, page, per_page, total_pages, count and results[], newest year first (best match first when query is set). Every result carries id, title (the norm as it is cited, e.g. Ley 599 de 2000), type, number, year, issued_at, subject (its epigraph), entity (the body that issued it), publication, publication_number, publication_pages and published_at (the official publication it appeared in), validity and notes (the catalogue’s remarks, when it has any), areas and topics (how the catalogue classifies it), related[], official_url, document_name, document_format, document_bytes, document_url, source_document_url, text_url and text_length. related[] lists the documents the catalogue ties to the norm, each with section (the catalogue’s heading: Antecedentes Legislativos, Modificaciones, Derogatorias, Desarrollo Normativo, Jurisprudencia), label (its note, e.g. which article a later law repealed), document_name, document_format, document_bytes, document_url (Croma’s copy of the file, byte for byte, often a whole issue of the Gaceta del Congreso; null when the catalogue links none, or while the copy is still pending), source_document_url and viewer_url (opens that file in Croma Viewer). document_url is Croma’s copy of the norm’s document, byte for byte as the source published it, usually the pages of the Diario Oficial that carry it, which stays available whatever happens to the source’s link (null when the catalogue links no document, or while the copy is still pending); source_document_url is the same document at the source. viewer_url opens the document in Croma Viewer, a page for signed-in Croma users that shows the PDF with the cited passages highlighted: add &cite=<start>-<end> once per passage, up to 12 (null when Croma holds no PDF of it). When query is set, each result also carries matches[]: up to 3 passages of the document that answer the search, best first, each with article (its heading as the document has it, e.g. ARTÍCULO 5, or null where the text is not cut by articles), text (the passage, verbatim), start and end (where it sits in the document’s text; start works as offset on the norm endpoint) and viewer_url. Answer and cite from matches, and read on through the norm endpoint: nothing has to be downloaded. The text is the one the published document carries; for documents printed before the 1990s it was recognized from the printed page and may hold errors, so check a quote against document_url.
One norm, with its text
POST /co/sidn/norm/v1 Dataset 1 credit
Request
as_of, found, norm_id and norm. Every result carries id, title (the norm as it is cited, e.g. Ley 599 de 2000), type, number, year, issued_at, subject (its epigraph), entity (the body that issued it), publication, publication_number, publication_pages and published_at (the official publication it appeared in), validity and notes (the catalogue’s remarks, when it has any), areas and topics (how the catalogue classifies it), related[], official_url, document_name, document_format, document_bytes, document_url, source_document_url, text_url and text_length. related[] lists the documents the catalogue ties to the norm, each with section (the catalogue’s heading: Antecedentes Legislativos, Modificaciones, Derogatorias, Desarrollo Normativo, Jurisprudencia), label (its note, e.g. which article a later law repealed), document_name, document_format, document_bytes, document_url (Croma’s copy of the file, byte for byte, often a whole issue of the Gaceta del Congreso; null when the catalogue links none, or while the copy is still pending), source_document_url and viewer_url (opens that file in Croma Viewer). document_url is Croma’s copy of the norm’s document, byte for byte as the source published it, usually the pages of the Diario Oficial that carry it, which stays available whatever happens to the source’s link (null when the catalogue links no document, or while the copy is still pending); source_document_url is the same document at the source. viewer_url opens the document in Croma Viewer, a page for signed-in Croma users that shows the PDF with the cited passages highlighted: add &cite=<start>-<end> once per passage, up to 12 (null when Croma holds no PDF of it).
The norm also carries its document’s text, so nothing has to be downloaded:
The document is usually the pages of the official publication that carry the norm, so its text can open or close with the end or the start of a neighbouring act.
content is null when the document has no text or has no article of the name sent; articles lists the ones it has.An
id the catalogue does not carry returns found: false with HTTP 200, not an error.Full reference
Schemas, all response fields, and an interactive playground.