---
title: "SECOP Contract Modifications Search"
method: POST
path: "/co/secop/modifications-search/v1"
tags: ["Colombia", "SECOP"]
---

# SECOP Contract Modifications Search

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

## Request

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

Search the changes made to Colombian public contracts after signature: additions, extensions and other modifications, with how much money and how many days each one added. Filter by contract id, platform, year, registration-date range and a minimum added amount, and sort by amount to find the contracts that grew the most after they were awarded.

**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.
  - `contract_id` string: Optional contract id from a search result (`id` on a contract). Empty searches every contract.
  - `platform` 'any' | 'secop_i' | 'secop_ii': Restrict to one system: `secop_ii` (the transactional platform, 2015 onward), `secop_i` (the publication register, 2004 onward), or `any` for both.
  - `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.
  - `min_value` number: Optional lower bound on the amount, in COP. 0 means no lower bound.
  - `sort` 'recent' | 'oldest' | 'value_desc' | 'value_asc': Order of the results: `recent` (newest first, the default), `oldest`, `value_desc` (largest amount first) or `value_asc`.
  - `page` integer: 1-based page number for paginated results.
  - `per_page` integer: Results per page (1-100).

## Response `200`

Successful response

- SecopModificationsSearchResponse
  - `data` SecopModificationsSearchData, 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
    - `contract_id` string, nullable, required
    - `platform` string, nullable, required
    - `year` number, nullable, required
    - `from_date` string, nullable, required
    - `to_date` string, nullable, required
    - `min_value` number, nullable, required
    - `sort` string, required
    - `results` object[], required
      - `id` string, required: Stable identifier of the modification.
      - `platform` 'secop_i' | 'secop_ii', required: Which system published the row: `secop_ii` (the transactional platform, 2015 onward) or `secop_i` (the publication register, 2004 onward).
      - `contract_id` string, nullable, required: Id of the contract that was modified, prefixed like the contracts dataset's `id`.
      - `contract_reference` string, nullable, required: The entity's own reference for the contract.
      - `entity_nit` string, nullable, required: NIT of the contracting entity.
      - `entity` string, nullable, required: Name of the contracting entity.
      - `kind` string, nullable, required: What kind of change this is, in the platform's own words (adición, prórroga, suspensión, ...).
      - `description` string, nullable, required: What the modification says it does.
      - `added_value` number, nullable, required: Money added by this modification, in COP.
      - `added_days` number, nullable, required: Days added by this modification.
      - `registered_date` string, nullable, required: When the modification was registered, `yyyy-mm-dd`.
      - `year` number, nullable, required: Calendar year of `registered_date`.
      - `url` string, nullable, required: Public page for the contract the modification 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/74c745980c60?raw)
