# Colombia Public Contracts Scraper: SECOP II (`parselab/colombia-public-contracts-secop-scraper`) Actor

Scrape Colombian public contracts from SECOP II, the official open data: entity, company supplier, modality, value in pesos, payments, source of funds, dates and process link. Search by keyword, region or tax number, rank suppliers and check company sanctions. Export to CSV or Excel.

- **URL**: https://apify.com/parselab/colombia-public-contracts-secop-scraper.md
- **Developed by:** [ParseLab](https://apify.com/parselab) (community)
- **Categories:** Business, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $11.25 / 1,000 results

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 Public Contracts Scraper: SECOP II Contracts, Suppliers and Sanctions

This Colombia public contracts scraper reads SECOP II, the official electronic procurement system, through the open data portal of the Colombian government. It returns about 5.7 million contracts signed by national and local entities, with the public entity, the department and city, the type and modality of the contract, the object, the value in pesos, the payments made, the source of the funds, the dates and the link to the process page. The data is refreshed every day. There is no login and no account needed.

The summary mode adds up the contracts by entity, company supplier, department, modality, contract type, sector or month. The sanctions mode lists the fines that public entities reported against companies.

Sales teams that sell to the government, suppliers, consultants, journalists, auditors, researchers and investors use it to find tenders and competitors, rank suppliers, follow the spending of an entity and check a company before they sign with it.

### What can you do with this Colombia public contracts scraper?

- Find the contracts of a department, a city or a public entity
- Search the object of the contract with words like software, ambulancia or interventoría
- Follow everything a company supplier has won, by its tax number (NIT) or its name
- Rank the biggest suppliers or the biggest buyers of a period
- Keep only contracts of a type, a modality or a sector, with a minimum or maximum value
- See how much has been invoiced and paid and how much is still to be executed
- See which part of the money comes from the national budget, royalties, credit or the own resources of the entity
- Check the fines reported against a company
- Export to CSV or Excel, or send the tables to your own tools

### What data can you extract?

| Group | Fields |
|---|---|
| Contract | Contract and process ids, reference, status, type, modality, justification of the modality, UNSPSC product code, description, object, signing, start and end dates, duration, days added, whether it can be extended |
| Public entity | Name, NIT, department, city, level of government, sector, branch, whether the entity is centralized |
| Supplier | Type (company, individual, foreign individual), company name and NIT, consortium, small and medium company |
| Money | Contract value, advance payment, invoiced, paid, pending payment, pending execution, origin of the funds, spend destination, funds by source (national budget, general participations, royalties, local own resources, credit, own resources) |
| Other | Post-conflict contract, link to the process page, last update |
| Sanctions | Entity, company name and NIT, resolution, contract number, fine in pesos, published and final dates, process link |

**Privacy.** More than 8 in 10 SECOP II contracts are signed with individuals. The Actor never returns the name or the identity number of an individual supplier, and it never returns names of legal representatives, spending officers or supervisors, or bank accounts. Companies are named. The sanctions mode returns companies only.

### How to scrape Colombian public contracts

1. Choose **Contracts**, **Summary by group** or **Fines and sanctions of companies**.
2. Set the period with **Days back** or with **Date from** and **Date to**.
3. Add filters: departments, entity, supplier NIT, keywords, type, modality, sector or value.
4. Choose the sorting and set **Max Items**, then click **Start**.

### Input example

```json
{
  "mode": "contracts",
  "departments": ["Antioquia"],
  "keywords": ["software"],
  "daysBack": 60,
  "sortBy": "value",
  "maxItems": 25
}
```

### Output example

A shortened row from the data of this version:

```json
{
  "entityName": "IU PASCUAL BRAVO COMPRADOR",
  "department": "Antioquia",
  "contractType": "Suministros",
  "modality": "Selección abreviada subasta inversa",
  "supplierType": "company",
  "supplierName": "AXIS IT",
  "supplierNit": "900733550",
  "contractValueCop": 2692020118,
  "signedDate": "2026-09-28",
  "processUrl": "https://community.secop.gov.co/Public/Tendering/OpportunityDetail/Index?noticeUID=..."
}
```

### How much does it cost to scrape Colombian public contracts?

You pay per result: $15 per 1,000 rows plus a tiny start fee. The free plan returns up to 10 rows per run.

### Tips for better results

- Values are in Colombian pesos (COP). Nothing is converted.
- The period defaults to the last 90 days. Searching millions of contracts without a period is slow, so keep it narrow when you can.
- Names of departments, types, modalities and sectors can be typed without accents or capitals. The Actor matches them with the names used by the portal.
- A keyword is looked for in the object and in the description of the process. Several keywords are alternatives.
- Entities type the values by hand, so a few contracts have a wrong value with extra zeros. The summary shows the largest contract of each group so that you can spot them.
- SECOP II is the newer system. Older contracts are in SECOP I and some entities use both. The sanctions mode comes from the reports of the entities and goes back to 2015.
- A tax number (NIT) can be typed with or without the check digit.

### Who uses this data?

- **Sales teams** look for tenders and buyers.
- **Suppliers** study competitors and prices by modality.
- **Auditors and journalists** follow spending and concentration.
- **Compliance teams** check suppliers and sanctions.
- **Researchers** study public procurement.

### Automate and connect

Schedule the Actor every day or week and send the new contracts to Google Sheets, Slack, Zapier, Make or n8n, or trigger a webhook when a run ends.

### FAQ

**Do I need an account or a login?**
No. The Actor works without any login.

**Is this the official data?**
Yes. It is the SECOP II open dataset of Colombia Compra Eficiente, published in the national open data portal.

**Does it include the documents of the tender?**
No. It returns the contract data and the link to the process page, where the documents are.

**Does it name individuals?**
No. Individual suppliers appear as a type only, with no name and no number.

**How current is the data?**
The portal is updated daily. The `lastUpdate` field shows the last change of each contract.

### Legal note

This Actor collects information that is publicly visible on the website. The contracts are published by the Colombian government as open data. Check the source site's terms and your local rules before using the data.

### Support

Missing a field or found a bug? Open an issue from the Actor page.

# Actor input Schema

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

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.

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

Contracts returns one row per contract. Summary adds up contracts by entity, supplier, department, modality, type, sector or month. Sanctions returns fines that public entities reported against companies.

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

Only contracts signed in the last days (sanctions: published). Ignored when Date from is set.

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

First signing date, like 2026-01-31.

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

Last signing date, like 2026-06-30.

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

Names of departments, for example Antioquia, Valle del Cauca or Distrito Capital de Bogotá. Accents and capitals do not matter.

## `cityContains` (type: `string`):

Part of the city name.

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

Part of the name of the public entity, for example ECOPETROL or ALCALDIA.

## `entityNit` (type: `array`):

Tax numbers of the public entities, with or without the check digit.

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

Part of the name of a company that won the contract. Individuals are never searched.

## `supplierNit` (type: `array`):

Tax numbers of companies that won contracts, with or without the check digit. Also works in sanctions mode.

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

Words of the contract object, for example software, ambulancia or interventoría. A contract with any of the words is kept.

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

For example Obra, Suministros, Consultoría, Interventoría, Prestación de servicios, Compraventa.

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

For example Licitación pública, Mínima cuantía, Contratación directa, Concurso de méritos abierto.

## `statuses` (type: `array`):

For example En ejecución, Cerrado, Modificado, terminado, Suspendido.

## `sectors` (type: `array`):

For example Salud y Protección Social, Educación Nacional, Transporte, defensa.

## `onlySme` (type: `boolean`):

Keep contracts won by suppliers marked as SME.

## `onlyCompanySuppliers` (type: `boolean`):

Skip contracts with individuals. Individuals are never named in the rows either way.

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

Keep contracts of at least this many pesos (fines in sanctions mode).

## `maxValueCop` (type: `integer`):

Keep contracts of at most this many pesos (fines in sanctions mode).

## `sortBy` (type: `string`):

Newest first or largest value first.

## `groupBy` (type: `string`):

Summary mode only. The supplier ranking counts companies only.

## Actor input object example

```json
{
  "maxItems": 10,
  "mode": "contracts",
  "daysBack": 90,
  "departments": [
    "Antioquia"
  ],
  "onlySme": false,
  "onlyCompanySuppliers": false,
  "sortBy": "signedDate",
  "groupBy": "entity"
}
```

# Actor output Schema

## `overview` (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 = {
    "maxItems": 10,
    "departments": [
        "Antioquia"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("parselab/colombia-public-contracts-secop-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 = {
    "maxItems": 10,
    "departments": ["Antioquia"],
}

# Run the Actor and wait for it to finish
run = client.actor("parselab/colombia-public-contracts-secop-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 '{
  "maxItems": 10,
  "departments": [
    "Antioquia"
  ]
}' |
apify call parselab/colombia-public-contracts-secop-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parselab/colombia-public-contracts-secop-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/XXygwc8BX2aZSelnC/builds/GgD6lsKZvqj6RFUPB/openapi.json
