# Colombia SECOP II Tenders Feed - Licitaciones (no key) (`moment-data/colombia-secop-tenders-feed`) Actor

New Colombian public tenders (procesos de contratación) and contracts awarded to companies from official SECOP II open data: buyer, modality, base price, deadline, supplier NIT, value. Filters, since-last-run.

- **URL**: https://apify.com/moment-data/colombia-secop-tenders-feed.md
- **Developed by:** [Luke Miller](https://apify.com/moment-data) (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.00 / 1,000 tender records

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

## Colombia SECOP II Tenders Feed — Licitaciones y Contratos (no API key)

Get **new Colombian government tenders (procesos de contratación / licitaciones)** and **public contracts awarded to companies** from the official **SECOP II** open data published by *Colombia Compra Eficiente* on datos.gov.co — as clean JSON, CSV or Excel.

National ministries, departments (gobernaciones), municipalities (alcaldías), hospitals (ESE), universities and the police/army all buy through SECOP II, so one feed covers *licitación pública, selección abreviada, subasta inversa, mínima cuantía, concurso de méritos* and more across all 32 departments and Bogotá.

No API key, no login, no browser scraping: the Actor queries the official open-data API politely and returns the newest records first.

### Who it's for

- **Suppliers and sales teams** selling to the Colombian state — a daily list of open tenders in your departments and categories, with base price and offer deadline.
- **Bid consultants** — follow many buyers (by NIT) or categories (UNSPSC) in one schedule.
- **B2B lead generation and market intelligence** — contracts show which **companies** just won public money, how much, and from whom; track competitors by NIT.
- **Journalists, researchers and compliance teams** — monitor large contracts and direct awards to companies.

### What you get

**Tenders** (`recordType: "tender"`): SECOP process id and reference, title and description, modality and its justification, contract type, phase and status, publication date, **offer deadline**, **base price (COP)**, duration, main UNSPSC code, buyer name + NIT + department + city + order (Nacional/Territorial), invited/interested suppliers, responses, views, awarded flag + award date + awarded value, and the SECOP II link.

**Contracts** (`recordType: "contract"`): contract id and reference, process id, status, type, modality, description and object, signature/start/end dates, **value and paid amount (COP)**, funding source, UNSPSC code, buyer (name, NIT, department, city, order, sector, branch), **supplier company NIT and name**, consortium and SME flags, SECOP II link.

See `sample-output.json` for full examples. A run summary (windows, dataset update times, counts by type/modality/department, privacy counters) is saved as the `OUTPUT` record.

### Quick start

- **Default `{}`** → about 30 of the newest tenders and company contracts (last 3 days of data), split fairly. Takes ~10 seconds.
- **Open construction tenders in Antioquia and Bogotá over COP 100 M:**

```json
{ "recordTypes": ["tenders"], "departments": ["Antioquia", "Bogotá"], "onlyOpen": true, "minValue": 100000000, "keywords": ["obra", "construcción"], "daysBack": 7, "maxItems": 100 }
```

- **IT / software contracts won by SMEs this month:**

```json
{ "recordTypes": ["contracts"], "unspscPrefixes": ["43", "81"], "smeSuppliersOnly": true, "daysBack": 30, "maxItems": 500 }
```

- **Track a competitor's contract wins:**

```json
{ "recordTypes": ["contracts"], "supplierNits": ["900369539"], "daysBack": 365, "maxItems": 1000 }
```

- **Daily alert:** schedule with `"mode": "sinceLastRun"` and a `stateKey` per saved search; each run only returns records you haven't received yet (memory kept in the named key-value store `colombia-secop-tenders-feed-state`).

### Inputs

| Field | Meaning |
|---|---|
| `mode` | `window` (default, stateless) or `sinceLastRun` |
| `recordTypes` | `tenders`, `contracts` (empty = both) |
| `modalities` | `licitacion`, `seleccionAbreviada`, `minimaCuantia`, `concursoMeritos`, `directaConOfertas`, `regimenEspecialConOfertas`, `enajenacion`, `solicitudInformacion`, `contratacionDirecta`*, `regimenEspecial`* (\*contracts only) |
| `daysBack`, `fromDate`, `toDate` | window (publication date for tenders, signature date for contracts) |
| `departments`, `cities`, `buyerNits` | who is buying (departments and NITs are filtered server-side) |
| `supplierNits`, `smeSuppliersOnly` | contract winners |
| `keywords`, `excludeKeywords`, `unspscPrefixes` | what is being bought |
| `minValue`, `onlyOpen` | value floor (COP), open tenders with a future deadline only |
| `maxItems`, `textChars`, `maxPagesPerQuery`, `stateKey` | size and depth |

### Pricing

Pay per event: **$0.005 per run + $0.003 per record**. The default run costs about $0.095. Set a maximum charge per run in Apify and the Actor stops at that budget.

### Privacy and data quality

- **Company and public-entity data only.** Contracts whose supplier is a natural person (cédula, passport, foreign ID or a personal NIT) are **skipped entirely** — that is most SECOP "prestación de servicios" contracts.
- Firms whose name carries a person's name (e.g. "Juan Pérez SAS") have the supplier name and NIT withheld (`supplierWithheld: true`).
- Officials (awarding officers, spending/payment officers, supervisors), legal representatives and bank details are **never requested** from the source (explicit column list). Emails, phone numbers and ID numbers in free text are masked.
- Tenders exclude pure *contratación directa* and *régimen especial* without offers (these are not open opportunities and are mostly personal-service contracts).
- Data is as published by buyers to SECOP II; datos.gov.co refreshes the datasets daily, so the newest records are usually from the previous business day.

### Source and licence

SECOP II – Procesos de Contratación (`p6dx-8zbt`) and SECOP II – Contratos Electrónicos (`jbjy-vk9h`), published by the Agencia Nacional de Contratación Pública – **Colombia Compra Eficiente** on [datos.gov.co](https://www.datos.gov.co), licensed **CC BY-SA 4.0**. Each record carries the attribution. Requests respect the portal's robots.txt crawl delay (1 request per second). This Actor is independent and not affiliated with Colombia Compra Eficiente or the Government of Colombia.

### FAQ

**Why are the newest records from yesterday?** The open-data copy is refreshed once a day. Weekends have very few publications.
**Does it include tender documents (pliegos)?** It links to the SECOP II page, where documents are hosted.
**Can I backfill?** Yes — use `fromDate`/`toDate` (any period) and raise `maxItems`; department/NIT/value filters run server-side and are cheap.

***

### Español

**Feed de nuevas licitaciones y contratos públicos de Colombia (SECOP II)** a partir de los datos abiertos oficiales de Colombia Compra Eficiente en datos.gov.co. Sin API key ni login.

**Qué obtiene:** procesos de contratación (entidad, NIT, departamento, municipio, modalidad, objeto, **precio base**, **fecha límite de ofertas**, estado, código UNSPSC, enlace SECOP II) y contratos adjudicados a **empresas** (NIT y razón social del proveedor, valor, fechas, origen de recursos, si es Mipyme o consorcio).

**Para quién:** proveedores del Estado, asesores en licitaciones, equipos comerciales B2B, periodistas e investigadores.

**Ejemplos:**

- `{}` → ~30 registros recientes (procesos + contratos).
- Licitaciones abiertas en Antioquia y Bogotá de más de $100 millones: `{ "recordTypes": ["tenders"], "departments": ["Antioquia", "Bogotá"], "onlyOpen": true, "minValue": 100000000 }`
- Contratos ganados por un competidor: `{ "recordTypes": ["contracts"], "supplierNits": ["900369539"], "daysBack": 365 }`
- Alerta diaria: programe el Actor con `"mode": "sinceLastRun"` y un `stateKey` por búsqueda.

**Privacidad:** solo datos de entidades y empresas. Los contratos con personas naturales (cédula, pasaporte, NIT personal) se omiten; los nombres de funcionarios, representantes legales, supervisores y datos bancarios nunca se consultan; correos, teléfonos y números de documento en textos se ocultan.

**Precio:** $0,005 USD por ejecución + $0,003 USD por registro.

**Fuente y licencia:** SECOP II (datasets `p6dx-8zbt` y `jbjy-vk9h`), Agencia Nacional de Contratación Pública – Colombia Compra Eficiente, datos.gov.co, licencia CC BY-SA 4.0. Actor independiente, sin afiliación con el Gobierno de Colombia.

# Actor input Schema

## `mode` (type: `string`):

sinceLastRun remembers delivered records in a named key-value store (per State key), so scheduled runs only return new ones.

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

Empty = both, split fairly.

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

Empty = for tenders all competitive modalities (licitación, selección abreviada, mínima cuantía, concurso de méritos, with-offers direct / special regime, asset sales); for contracts all modalities. Pure direct contracting is only available for contracts.

## `daysBack` (type: `integer`):

Window counted back from the newest date in each dataset. Default 3 (window) or 14 (since last run).

## `fromDate` (type: `string`):

Optional fixed range start (publication date for tenders, signature date for contracts).

## `toDate` (type: `string`):

Optional fixed range end.

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

Buyer's department, e.g. Antioquia, Bogotá, Valle del Cauca, Atlántico, Santander (accent-insensitive). Empty = all Colombia.

## `cities` (type: `array`):

Buyer's city, e.g. Medellín, Cali, Barranquilla (exact name, accent-insensitive).

## `buyerNits` (type: `array`):

NITs of public entities to follow (9 digits, check digit optional).

## `supplierNits` (type: `array`):

Company NITs (start with 8 or 9) to track contract wins, e.g. competitors.

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

Keep records whose title / description / object contains any of these words (accent-insensitive), e.g. software, evento, obra, transporte.

## `excludeKeywords` (type: `array`):

Drop records containing any of these words.

## `unspscPrefixes` (type: `array`):

Main UNSPSC category prefixes, e.g. 43 (IT), 72 (construction), 80 (management services), 8014 (marketing).

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

Tenders: base price; contracts: contract value.

## `onlyOpen` (type: `boolean`):

Keep only tenders still open with an offer deadline today or later (contracts are skipped).

## `smeSuppliersOnly` (type: `boolean`):

Keep only contracts won by MiPymes (es_pyme).

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

Maximum records per run (newest first). Each record is one billed event.

## `textChars` (type: `integer`):

Characters of description / object kept (emails, phones and ID numbers masked).

## `maxPagesPerQuery` (type: `integer`):

Safety cap on 1,000-row pages read per record type when client-side filters (keywords, UNSPSC, city) are used.

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

Separate memory per saved search in Since last run mode.

## Actor input object example

```json
{
  "mode": "window",
  "recordTypes": [],
  "modalities": [],
  "departments": [],
  "cities": [],
  "buyerNits": [],
  "supplierNits": [],
  "keywords": [],
  "excludeKeywords": [],
  "unspscPrefixes": [],
  "onlyOpen": false,
  "smeSuppliersOnly": false,
  "maxItems": 30,
  "textChars": 1000,
  "maxPagesPerQuery": 20,
  "stateKey": "default"
}
```

# Actor output Schema

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

One record per SECOP II process or company contract.

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

Windows, dataset update times, counts by type, modality and department, privacy counters, notes.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("moment-data/colombia-secop-tenders-feed").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("moment-data/colombia-secop-tenders-feed").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 '{}' |
apify call moment-data/colombia-secop-tenders-feed --silent --output-dataset

```

## MCP server setup

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

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/xskesP8dHaRIEZq6O/builds/SvsvTIDBzBwi3gifV/openapi.json
