# SECOP II Scraper: Colombia Tenders, Licitaciones & Contracts (`steadyscrape/secop-colombia-tenders-scraper`) Actor

Colombia's public procurement from SECOP II: tenders (licitaciones, selección abreviada, mínima cuantía, concurso de méritos, subasta) with entity, base price, bids deadline and link, and signed contracts with supplier, NIT and value. Official open data. Export to JSON, CSV or Excel, or via API.

- **URL**: https://apify.com/steadyscrape/secop-colombia-tenders-scraper.md
- **Developed by:** [Steady Scrape](https://apify.com/steadyscrape) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 procurement process delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SECOP II Scraper: Colombia Tenders, Licitaciones & Contracts

**SECOP II Scraper** gets Colombia's public procurement from SECOP II, the national system run by Colombia Compra
Eficiente. It returns **procurement processes** (licitaciones públicas, selección abreviada, subasta inversa, concurso de
méritos, mínima cuantía) with the buying entity, modality, base price, bids deadline, status and the link to the
process, and **signed contracts** (contratos electrónicos) with the supplier, its NIT, the value and the dates. The data
is the government's own open data on datos.gov.co, read through its public API, so a run takes seconds and never
breaks on a website redesign. Export to JSON, CSV or Excel, or use it via API.

### What the SECOP II scraper gives you

- **Tenders you can bid on.** By default it reads only the modalities open to offers: licitación pública, selección
  abreviada de menor cuantía, subasta inversa, concurso de méritos, mínima cuantía, and the direct and special-regime
  processes that ask for offers. Direct awards to one person (most of SECOP II's volume) are an option.
- **Only what is still open.** "Only processes still open for bids" keeps the processes whose bids deadline (fecha de
  recepción de respuestas) is ahead and that are not cancelled.
- **Signed contracts and suppliers.** Who won, for how much, from which entity, and the supplier's NIT with its check
  digit. Consortia and temporary unions (uniones temporales) are marked as such.
- **Filters that SECOP II's open data answers directly**: keywords (accents ignored: "construccion" finds
  "CONSTRUCCIÓN"), department, entity name or NIT, contract type (obra, suministros, prestación de servicios,
  consultoría, interventoría…), value range in COP, supplier NIT, and UNSPSC codes for contracts.
- **The same columns on every row**, newest first, with the record's API link, the dataset's licence and attribution.

### Use cases

- **Suppliers and bid consultants**: a daily list of new licitaciones and mínima cuantía processes in your sector and
  departments, with the deadline, to decide what to bid on.
- **Competitive intelligence**: which companies win contracts from an entity, at what values, in which UNSPSC
  categories.
- **Sales prospecting**: entities that buy what you sell, and the suppliers they already work with.
- **Journalism, research and transparency**: contracts by entity, modality, value or period.

### Input

| field | what it does |
|---|---|
| What to get | Procurement processes, signed contracts, or both. |
| Published in the last N days | Processes first published, or contracts signed, in the last N days (Colombia's date). Default 7. |
| From / To | Exact days, YYYY-MM-DD, instead of the last N days. |
| Modalities | The selection modalities to read. Default: the ones open to offers. Empty for every modality. |
| Keywords | Any of these words in the title or description (a contract's object). Accents and case do not matter. |
| Departments | The buying entity's department. Empty for the whole country. |
| Entity name contains / Entity NIT | One buying entity, by part of its name or its NIT. |
| Contract types | Obra, suministros, compraventa, prestación de servicios, consultoría, interventoría, seguros… |
| Minimum / maximum value (COP) | A process's base price or a contract's value. |
| Only processes still open for bids | The bids deadline is still ahead and the process is not cancelled. |
| Supplier NIT | The contracts signed with a supplier, and the processes awarded to it. |
| UNSPSC codes (contracts only) | Contracts whose main UNSPSC code starts with these digits ("72", "8111", "43211500"). |
| Max results per dataset | The most processes, and the most contracts, one run delivers. Default 100. |
| Include the raw record | Adds every column the dataset publishes, as `raw`. |

Example: open public tenders and mínima cuantía processes in Antioquia about roads.

```json
{
    "datasets": ["processes"],
    "withinDays": 14,
    "modalities": ["public-tender", "minimum-amount"],
    "departments": ["antioquia"],
    "keywords": ["vias", "pavimentacion"],
    "onlyOpenForBids": true,
    "maxResults": 200
}
```

### Output

A process:

```json
{
    "rowType": "process",
    "processId": "CO1.REQ.11373395",
    "noticeId": "CO1.NTC.11230415",
    "referenceNumber": "GC-LP-084-2026",
    "title": "SERVICIO DE VIGILANCIA Y SEGURIDAD PRIVADA DE PERSONAL CON ARMAS; SIN ARMAS EN LAS INSTALACIONES A NIVEL NACIONAL DEL INSTITUTO COLOMBIANO AGROPECUARIO - ICA",
    "entityName": "INSTITUTO COLOMBIANO AGROPECUARIO - ICA",
    "entityNit": "899999069",
    "entityDepartment": "Distrito Capital de Bogotá",
    "entityCity": "Bogotá",
    "modality": "Licitación pública",
    "modalityGroup": "public-tender",
    "contractType": "Prestación de servicios",
    "phase": "Presentación de observaciones",
    "processStatus": "Publicado",
    "openForBids": true,
    "basePrice": 16715965022,
    "currency": "COP",
    "duration": 332,
    "durationUnit": "día(s)",
    "publishedDate": "2026-11-14",
    "publishedAt": "2026-11-14T08:31:08-05:00",
    "bidsDeadline": "2026-12-09T07:00:00-05:00",
    "awarded": false,
    "processUrl": "https://community.secop.gov.co/Public/Tendering/OpportunityDetail/Index?noticeUID=CO1.NTC.11230415",
    "recordApiUrl": "https://www.datos.gov.co/resource/p6dx-8zbt.json?id_del_proceso=CO1.REQ.11373395",
    "license": "CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)",
    "unreadFields": []
}
```

A contract:

```json
{
    "rowType": "contract",
    "contractId": "CO1.PCCNTR.10189350",
    "object": "PRESTACIÓN DEL SERVICIO DE TRANSPORTE ESCOLAR (IDA Y VUELTA) …",
    "entityName": "ALCALDÍA MUNICIPAL DE CANDELARIA VALLE",
    "entityDepartment": "Valle del Cauca",
    "modality": "Mínima cuantía",
    "contractType": "Prestación de servicios",
    "contractStatus": "Aprobado",
    "signedDate": "2026-11-15",
    "endDate": "2026-12-04",
    "value": 9345000,
    "currency": "COP",
    "supplierName": "TRANSPORTES ESPECIALES Y TURISTICOS DE COLOMBIA SAS",
    "supplierType": "company",
    "supplierNit": "805002020",
    "supplierNitCheckDigit": "7",
    "supplierIsSme": true,
    "unspscCode": "78111800",
    "processUrl": "https://community.secop.gov.co/Public/Tendering/OpportunityDetail/Index?noticeUID=CO1.NTC.11191587",
    "unreadFields": []
}
```

### Fields

| field | process | contract | meaning |
|---|---|---|---|
| `rowType`, `status` | ✓ | ✓ | `process` or `contract`, and `ok` (a status row says `status` instead). |
| `processId` / `contractId` | ✓ | ✓ | SECOP II's id (CO1.REQ…, CO1.PCCNTR…). |
| `noticeId`, `processUrl` | ✓ | ✓ | The notice (CO1.NTC…) and its public page on SECOP II. |
| `referenceNumber`, `portfolioId` | ✓ | ✓ | The entity's own reference; the purchase (CO1.BDOS…) that links a process to its contracts. |
| `title`, `description` / `object` | ✓ | ✓ | What is bought. |
| `entityName`, `entityNit`, `entityCode`, `entityDepartment`, `entityCity`, `entityLevel` | ✓ | ✓ | The buying entity (Nacional or Territorial) and its SECOP II code. |
| `entitySector`, `entityBranch` | | ✓ | The entity's sector and branch of government. |
| `contractingUnit`, `contractingUnitCity` | ✓ | | The unit of the entity that runs the process. |
| `modality`, `modalityGroup`, `contractType`, `contractTypeGroup` | ✓ | ✓ | As SECOP II writes them, and the group the filters use. |
| `modalityJustification` | ✓ | ✓ | The legal ground the entity gives for the modality. |
| `contractSubtype` | ✓ | | The contract's subtype, when the entity sets one. |
| `phase`, `processStatus`, `statusSummary`, `openForBids` | ✓ | | Where the process stands. |
| `publishedDate`, `publishedAt`, `lastPublishedAt` | ✓ | | First publication (the day the window counts) and the latest one, in Colombia's time (`-05:00`). |
| `basePrice`, `currency`, `bidsDeadline`, `bidsOpeningAt`, `duration`, `durationUnit` | ✓ | | Base price in COP, deadline and opening of bids, estimated duration and its unit. |
| `views`, `interestedSuppliers`, `respondingSuppliers`, `lots` | ✓ | | Interest in the process. |
| `awarded`, `awardDate`, `awardedValue`, `awardedSupplierName`, `awardedSupplierNit`, `awardedSupplierDepartment`, `awardedSupplierCity` | ✓ | | The award, once there is one. |
| `contractStatus`, `signedDate`, `signedAt`, `startDate`, `endDate`, `duration`, `daysAdded`, `canBeExtended`, `lastUpdatedAt` | | ✓ | The contract's life: signature (the day the window counts), dates, duration, extensions and its last update. |
| `value`, `currency`, `advancePayment`, `amountInvoiced`, `amountPaid`, `amountPendingPayment` | | ✓ | Money in COP. |
| `resourceOrigin`, `spendingType`, `postConflict`, `executionAddress` | | ✓ | Where the money comes from, investment or operating spend, whether it is a post-conflict contract, and where the work is done. |
| `supplierName`, `supplierType`, `supplierNit`, `supplierNitCheckDigit`, `supplierCode`, `supplierIsSme`, `supplierIsGroup`, `supplierLegalRepresentative` | | ✓ | The supplier: company, individual or consortium, its SECOP II code and its legal representative's name. |
| `unspscCode` | ✓ | ✓ | Main UNSPSC code, 8 digits (almost always empty on processes). |
| `additionalUnspscCodes` | ✓ | | The process's other UNSPSC codes. |
| `recordApiUrl`, `datasetName`, `datasetUrl`, `license`, `attribution` | ✓ | ✓ | Where the row comes from and its licence. |
| `raw` | ✓ | ✓ | Every column the dataset publishes, with "Include the raw record" (`null` otherwise), people's ID numbers removed. |
| `scrapedAt` | ✓ | ✓ | When the run read the row (UTC). |
| `unreadFields` | ✓ | ✓ | Fields the dataset stopped publishing, `null` on the row. Empty normally. |

A row with `rowType: "status"` is free: it says why a dataset gave nothing (`no_results`, `source_unavailable`,
`source_changed`, `filter_unsupported`, `spending_limit`).

### Pricing

**US$0.002 per process and US$0.002 per contract** (US$2 per 1,000), pay per result. Status rows are free, and a run
that finds nothing costs nothing in results.

### Limits

- **SECOP II's open data runs 2–3 days behind the portal**: a process published today on SECOP II appears here in a
  few days. The window counts Colombia's days.
- The processes dataset leaves the UNSPSC code unspecified on almost every competitive process, so the UNSPSC filter
  applies to contracts; with codes set, processes are not read and a free row says so.
- About 2 % of processes name no department; a department filter leaves them out.
- **No person's ID number is delivered.** A supplier's NIT is given only when it is a company's (800000000–999999999);
  people's cédulas, representatives' IDs and bank accounts are dropped, even from `raw`.
- The SECOP II portal itself (community.secop.gov.co) is never fetched: each row links to it.

### Is it legal? Data licence

The data is published by the **Agencia Nacional de Contratación Pública – Colombia Compra Eficiente** on Colombia's
open-data portal datos.gov.co, in the datasets [SECOP II - Procesos de Contratación](https://www.datos.gov.co/d/p6dx-8zbt)
and [SECOP II - Contratos Electrónicos](https://www.datos.gov.co/d/jbjy-vk9h), under the **Creative Commons
Attribution-ShareAlike 4.0** licence (CC BY-SA 4.0). You may reuse it, also commercially, as long as you **credit the
source** (every row's `attribution` carries the citation the portal's terms of use ask for: "Fuente: Portal de Datos
Abiertos www.datos.gov.co", with the date of the data's last update where the record has one) and **share what you
derive from it under the same licence**. The portal's terms allow extraction, compilation and commercial reuse. The Actor
reads the portal's public API at one request a second, as its robots.txt asks. Personal data in public procurement is
published by law (Ley 1712 de 2014); handle any names you get under Colombia's data-protection law (Ley 1581 de 2012).
This Actor is an independent tool: it is not affiliated with, endorsed by or connected to Colombia Compra Eficiente,
SECOP II, datos.gov.co or the Government of Colombia.

# Actor input Schema

## `datasets` (type: `array`):

Procurement processes (tenders a supplier can bid on: entity, modality, base price, bids deadline, status, link) and/or signed contracts (supplier, value, dates). Each process is one "process" event, each contract one "contract" event.

## `withinDays` (type: `integer`):

Processes first published, or contracts signed, from this many days ago up to today (Colombia's date). SECOP II's open data runs 2–3 days behind the portal, so the last days come in later. Ignored when the dates below are set.

## `dateFrom` (type: `string`):

The first day, YYYY-MM-DD (publication for processes, signature for contracts). Replaces the days above.

## `dateTo` (type: `string`):

The last day, YYYY-MM-DD, included. Without it, today.

## `modalities` (type: `array`):

The selection modalities to read. By default the ones a supplier can bid on. Direct awards and the special regime are mostly service orders naming one person. Leave empty for every modality.

## `keywords` (type: `array`):

Any one of these words or phrases in the title or description (a contract's object). Accents and case do not matter: "construccion" finds "CONSTRUCCIÓN". Write them in Spanish, as entities do: "obra", "software", "vigilancia", "alimentación escolar". At most 25.

## `departments` (type: `array`):

The buying entity's department. Leave empty for the whole country. About 2 % of processes name no department and are left out by this filter.

## `entityName` (type: `string`):

Part of the buying entity's name, e.g. "INVIAS", "ALCALDIA MUNICIPAL DE MEDELLIN", "ICBF". Accents and case do not matter.

## `entityNit` (type: `string`):

The buying entity's NIT, digits only or as written ("899.999.239-2" or "899999239").

## `contractTypes` (type: `array`):

Works, supplies, services, consulting… Leave empty for every type.

## `minValue` (type: `integer`):

A process's base price (precio base) or a contract's value, in Colombian pesos. 0 for no minimum.

## `maxValue` (type: `integer`):

Likewise, the most. 0 for no maximum.

## `onlyOpenForBids` (type: `boolean`):

Processes whose bids deadline (fecha de recepción de respuestas) is still ahead and that are not cancelled. Contracts are not affected.

## `supplierNit` (type: `string`):

A supplier's NIT: the contracts signed with it, and the processes awarded to it. Digits only or as written.

## `unspscCodes` (type: `array`):

Contracts whose main UNSPSC code starts with one of these: segment (2 digits, "72" building and construction), family (4), class (6) or commodity (8). The processes dataset leaves the code unspecified, so with codes set processes are not read.

## `maxResults` (type: `integer`):

The most processes, and the most contracts, one run delivers, newest first. 0 for no limit.

## `includeRawRecord` (type: `boolean`):

Adds every column the dataset publishes as `raw` (60 for a process, 95 for a contract), without people's ID numbers and bank accounts. Off keeps CSV and Excel exports to the normalized columns.

## Actor input object example

```json
{
  "datasets": [
    "processes",
    "contracts"
  ],
  "withinDays": 7,
  "modalities": [
    "public-tender",
    "abbreviated-selection",
    "reverse-auction",
    "merit-contest",
    "minimum-amount",
    "direct-with-offers",
    "special-regime-with-offers"
  ],
  "keywords": [],
  "departments": [],
  "contractTypes": [],
  "minValue": 0,
  "maxValue": 0,
  "onlyOpenForBids": false,
  "unspscCodes": [],
  "maxResults": 5,
  "includeRawRecord": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "datasets": [
        "processes",
        "contracts"
    ],
    "withinDays": 7,
    "maxResults": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyscrape/secop-colombia-tenders-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "datasets": [
        "processes",
        "contracts",
    ],
    "withinDays": 7,
    "maxResults": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("steadyscrape/secop-colombia-tenders-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "datasets": [
    "processes",
    "contracts"
  ],
  "withinDays": 7,
  "maxResults": 5
}' |
apify call steadyscrape/secop-colombia-tenders-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyscrape/secop-colombia-tenders-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vbJjVTBBbg6U1iWRj/builds/ZajUz76HoFr45c0X5/openapi.json
