# Colombia Government Tenders & Contracts (SECOP II) (`dottti/colombia-secop-tenders`) Actor

Colombian public tenders (procesos) and signed contracts from SECOP II open data as clean JSON: entity, department, modality, offer deadline, base price in COP, SECOP link, winning company and contract value. Accent-safe Spanish keyword search, new-only alerts.

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

## Pricing

from $3.50 / 1,000 tender delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Colombia Government Tenders & Contracts (SECOP II)

Get Colombian public tenders (procesos de contratación) and signed contracts from SECOP II as clean JSON, CSV or Excel. SECOP II is the national e-procurement system run by Colombia Compra Eficiente. The data comes from its official open data sets on datos.gov.co.

Filter by keyword, department, modality, entity and value. Schedule it every morning and you have a tender alert feed for your sector.

- **Planned price:** $5.00 per 1,000 tenders and $12.00 per 1,000 awards. You pay only for records that pass your filters. `maxItems` caps the cost of any run.
- **First run:** click **Start** with the default input. You get the 20 newest open competitive tenders in under 10 seconds.

### Who uses this

- **Suppliers and contractors** get a daily list of new processes in their department.
- **Bid teams** see the offer deadline, the base price and the SECOP link in one row.
- **Market analysts** see which companies win contracts, with which entities, and for how much.

### What you get

Two record types share one dataset. The `recordType` field tells them apart.

#### Tender (`recordType: "tender"`)

Taken from a real run on 5 November 2026:

```json
{
  "recordType": "tender",
  "processId": "CO1.REQ.11309835",
  "reference": "MC-SGG-046-2026",
  "description": "Suministro de mobiliario, equipos y elementos de oficina para la dotación de la casa de la memoria ...",
  "entity": "MUNICIPIO SAN VICENTE FERRER",
  "entityNit": "890982506",
  "department": "Antioquia",
  "city": "San Vicente",
  "modality": "Mínima cuantía",
  "phase": "Presentación de oferta",
  "status": "Publicado",
  "publishedDate": "2026-11-03",
  "offersDueDate": "2026-11-10",
  "daysLeft": 5,
  "currency": "COP",
  "basePriceCop": 22000000,
  "url": "https://community.secop.gov.co/Public/Tendering/OpportunityDetail/Index?noticeUID=CO1.NTC.11163554"
}
```

#### Award (`recordType: "award"`)

One row per signed contract, with the supplier company and the values:

```json
{
  "recordType": "award",
  "contractId": "CO1.PCCNTR.10131048",
  "reference": "CPS-939-2026",
  "title": "MANTENIMIENTO PREVENTIVO Y CORRECTIVO DE COMPUTADORES Y EQUIPOS DE TI CON SUMINISTRO DE REPUESTOS",
  "entity": "ALCALDÍA MUNICIPAL DE MADRID CUNDINAMARCA",
  "department": "Cundinamarca",
  "modality": "Selección Abreviada de Menor Cuantía",
  "contractType": "Prestación de servicios",
  "supplierType": "company",
  "supplierName": "DISTRIBUDORA RED COMPUTO SAS",
  "supplierNit": "901158838",
  "supplierIsSme": true,
  "currency": "COP",
  "contractValueCop": 75000000,
  "signedDate": "2026-11-03",
  "endDate": "2026-12-30"
}
```

Notes on the fields:

- Text fields keep the Spanish wording exactly as SECOP publishes it, spelling included. You can search SECOP for any of it.
- All amounts are in Colombian pesos (COP).
- SECOP publishes dates without a time. `daysLeft` counts the deadline day as open.
- `url` opens the public process page on community.secop.gov.co. Drafts link to the SECOP login page, so their `url` is `null`.
- By default, awards cover companies only (supplier ID type NIT). Turn on `includeIndividualContracts` to add contracts with natural persons. Their name and ID number are always withheld.
- Bank accounts, legal representatives and named officials in the source data are never read.

### Input

| Field | What it does |
| --- | --- |
| `recordTypes` | `tenders`, `awards` or both. |
| `tenderStatus` | `open` (default): published processes whose offer deadline has not passed. `published`: every process in the date window except drafts. |
| `keywords` | Matched against the process name and description, or the contract object. Accents and case are ignored, so `interventoria` matches `INTERVENTORÍA`. |
| `departments` | Department names, for example `Antioquia`, `Valle del Cauca`, `Distrito Capital de Bogotá`. `bogota` also works. |
| `modalities` | SECOP modalities, for example `Licitación pública`, `Mínima cuantía`, `Selección abreviada subasta inversa`. |
| `competitiveOnly` | On by default. With no modality picked, skips `Contratación directa` and plain `Contratación régimen especial`, which are mostly direct hires. |
| `entityNit`, `entityContains` | One entity by NIT (no check digit), or entities whose name contains a text. |
| `supplierContains` | Awards whose supplier company name contains a text. |
| `minValueCop` | Minimum base price (tenders) or contract value (awards). |
| `publishedWithinDays`, `publishedSince` | Date window: publication date for tenders, signing date for awards. Default is 7 days. |
| `onlyNew`, `stateKey` | Daily alert mode. Records delivered before are skipped. |
| `maxItems` | Cap per record type, newest first. This is also your cost cap. |

#### Example: supervision (interventoría) tenders in Antioquia and Valle del Cauca

```json
{
  "keywords": ["interventoría"],
  "departments": ["Antioquia", "Valle del Cauca"],
  "tenderStatus": "published",
  "publishedWithinDays": 30,
  "maxItems": 100
}
```

#### Example: computer contracts above COP 50 million signed in the last 60 days

```json
{
  "recordTypes": ["awards"],
  "keywords": ["computadores", "portátiles"],
  "minValueCop": 50000000,
  "publishedWithinDays": 60,
  "maxItems": 200
}
```

### Daily alert in 3 steps

1. Set your filters and turn on `onlyNew`.
2. Click **Save as a new task**, then add a daily schedule.
3. Connect the task to email, Slack or Google Sheets from the **Integrations** tab.

### Status rows and run summary

Every run ends with status SUCCEEDED when the input can be read. Problems come back as free rows with `recordType: "status"`:

- `bad_input`: a value in your input is wrong, for example an unknown department. Nothing is fetched or charged.
- `no_results` or `no_new_results`: the filters matched nothing.
- `failed`: the open data API did not answer after retries.

The `RUN_SUMMARY` record in the key-value store lists the query sent, the rows read, the rows matched and the requests made.

### Pricing

Pay per record delivered to your dataset. Status rows are free. Platform usage is included in the price. When you set a maximum cost per run, the Actor stops at that limit and keeps what it already delivered.

### Notes and limits

- Data comes from the datos.gov.co open data sets "SECOP II - Procesos de Contratación" and "SECOP II - Contratos Electrónicos". No login and no key.
- The open data sets lag SECOP itself. On 5 November 2026 the newest process in the data set was published on 3 November.
- SECOP I, the older publication-only system, is not covered.
- Documents (pliegos) sit on the SECOP process page. The record links to that page.
- Fields SECOP leaves as "No Definido" come back as `null`.

# Actor input Schema

## `recordTypes` (type: `array`):

Tenders are SECOP II contracting processes (procesos de contratación). Awards are signed contracts with the winning company and the contract value.

## `tenderStatus` (type: `string`):

open: published processes whose offer deadline has not passed. published: every process published in the date window, at any stage except draft.

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

Words matched against the process name and description (tenders) or the contract object (awards). Accents and case are ignored, so tecnologia matches TECNOLOGÍA. Spanish works best, for example software, obra, interventoría or alimentación escolar.

## `matchMode` (type: `string`):

any: at least one keyword. all: every keyword.

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

Keep records from these departments (departamento of the buying entity).

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

SECOP contracting modality. Leave empty for every competitive one.

## `competitiveOnly` (type: `boolean`):

When no modality is picked, skip Contratación directa and plain Contratación régimen especial. Most of those are direct hires of individuals with no bidding.

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

NIT of the buying entity without the check digit, for example 899999061, the NIT used by Bogotá D.C. and its local mayor offices (alcaldías locales). Sent to the API.

## `entityContains` (type: `string`):

Keep records whose entity name contains this text, for example medellin, invias or gobernacion de antioquia.

## `supplierContains` (type: `string`):

Keep contracts whose supplier company name contains this text.

## `includeIndividualContracts` (type: `boolean`):

Off: awards are limited to companies (NIT). On: contracts with natural persons are included, with the person name and ID withheld.

## `minValueCop` (type: `integer`):

Tenders: base price (precio base). Awards: contract value. In Colombian pesos.

## `publishedWithinDays` (type: `integer`):

Tenders: publication date. Awards: signing date.

## `publishedSince` (type: `string`):

Date in YYYY-MM-DD format. Overrides the N days setting.

## `onlyNew` (type: `boolean`):

Remember delivered IDs and skip them next time. Use it with a daily schedule for alerts.

## `stateKey` (type: `string`):

Separate memory for each alert when you run several schedules with onlyNew.

## `maxItems` (type: `integer`):

Hard cap on delivered tenders and, separately, on delivered awards, newest first. You pay per record delivered, so this is also your cost cap.

## `maxPages` (type: `integer`):

Each page holds up to 500 rows.

## `requestDelayMs` (type: `integer`):

Pause before each request to the open data API.

## `maxRetries` (type: `integer`):

Retries with backoff when the API fails or asks to slow down.

## Actor input object example

```json
{
  "recordTypes": [
    "tenders"
  ],
  "tenderStatus": "open",
  "matchMode": "any",
  "competitiveOnly": true,
  "includeIndividualContracts": false,
  "publishedWithinDays": 7,
  "onlyNew": false,
  "stateKey": "default",
  "maxItems": 20,
  "maxPages": 10,
  "requestDelayMs": 500,
  "maxRetries": 4
}
```

# Actor output Schema

## `records` (type: `string`):

Tenders with offer deadline and base price; awards with supplier company and contract value in COP.

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

Queries run, rows read and matched, delivered counts, requests and any failure.

# 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 = {
    "recordTypes": [
        "tenders"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("dottti/colombia-secop-tenders").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 = {
    "recordTypes": ["tenders"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("dottti/colombia-secop-tenders").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 '{
  "recordTypes": [
    "tenders"
  ],
  "maxItems": 20
}' |
apify call dottti/colombia-secop-tenders --silent --output-dataset

```

## MCP server setup

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

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/AVDbUC7Tyf57rQOLD/builds/6HLBTs0RYTIfh6hiT/openapi.json
