---
title: "SECOP Sanctions Search"
method: POST
path: "/co/secop/sanctions-search/v1"
tags: ["Colombia", "SECOP"]
---

# SECOP Sanctions Search

`POST /co/secop/sanctions-search/v1`

## Request

- Base URL: `https://api.croma.run`
- URL: `https://api.croma.run/co/secop/sanctions-search/v1`
- Auth: HTTP bearer

Search the fines and sanctions Colombian public entities have imposed on their contractors: who was sanctioned, under which contract, for how much, and when the sanction became final. Filter by the contractor's document, the entity's NIT, the year or a publication-date range.

**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 free text of the record (what is being bought, the entity and the supplier). Leave empty to filter without searching.
  - `provider_document` string: Optional document filter: a NIT or a cédula, with or without dots and verification digit (`900195855`, `900.195.855-1` and `900195855-1` all match the same records).
  - `entity_nit` string: Optional document filter: a NIT or a cédula, with or without dots and verification digit (`900195855`, `900.195.855-1` and `900195855-1` all match the same records).
  - `year` integer: Optional calendar year. 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-100).

## Response `200`

Successful response

- SecopSanctionsSearchResponse
  - `data` SecopSanctionsSearchData, required
    - `as_of` string, nullable, required: How current the data is: the moment this dataset was last brought up to date, as an ISO timestamp. Null before the first sync.
    - `total` number, required: Records matching the filters, regardless of the page size, 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: Records returned on this page.
    - `query` string, required
    - `provider_document` string, nullable, required
    - `entity_nit` string, nullable, required
    - `year` number, nullable, required
    - `from_date` string, nullable, required
    - `to_date` string, nullable, required
    - `results` object[], required
      - `id` string, required: Stable identifier of the sanction.
      - `entity` string, nullable, required: Entity that imposed the sanction.
      - `entity_nit` string, nullable, required: NIT of that entity, digits only.
      - `entity_level` string, nullable, required: Nivel of the entity.
      - `entity_order` string, nullable, required: Orden of the entity.
      - `municipality` string, nullable, required: Municipality of the entity.
      - `resolution_number` string, nullable, required: Number of the resolution that imposed the sanction.
      - `provider` string, nullable, required: Name of the sanctioned contractor.
      - `provider_document` string, nullable, required: Document of the sanctioned contractor, digits only.
      - `contract_number` string, nullable, required: Contract the sanction was imposed under.
      - `value` number, nullable, required: Value of the sanction in COP.
      - `published_date` string, nullable, required: When the sanction was published, `yyyy-mm-dd`.
      - `final_date` string, nullable, required: When the sanction became final (fecha de firmeza), `yyyy-mm-dd`.
      - `year` number, nullable, required: Calendar year of `published_date`.
      - `url` string, nullable, required: Public page for the process the sanction belongs to.

## Other responses

- `400`: Invalid request body
- `401`: Missing or invalid API key
- `429`: Rate limit exceeded
- `500`: Internal 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/df016cdb29d7?raw)
