Guide · Colombia public procurement
Colombia open tenders API: how to find SECOP II processes that are still taking bids
How to find out, from your code or an AI agent, which Colombian government procurement processes are still taking bids: filters by department, buyer, text, dates and base price, each process's bid deadline and how to page through results, as clean JSON with Better Llama's MCP tool, with no key.
SECOP II processes: what they are and how they differ from contracts
SECOP II is Colombia's transactional public procurement platform, run by the National Public Procurement Agency (Colombia Compra Eficiente). Every purchase starts as a procurement process: the buyer publishes the purpose, the method, the base price and the schedule, takes questions and bids, and finally awards it. Only then is a contract signed.
That is why datos.gov.co has two different open datasets: SECOP II – Procurement Processes (what is being tendered) and SECOP II – Electronic Contracts (what has been signed). This guide covers the first one: use it to find open tenders, watch a buyer or build an opportunity radar. For signed contracts, winning suppliers or the API in general, see the Colombia SECOP II API guide.
Processes are published under a CC BY-SA 4.0 licence: you may reuse them, commercially too, as long as you credit the source and share derivative works alike. The dataset is updated daily: in today's query, sourceUpdatedAt was 2026-11-30 and the newest open processes in Bogotá from COP 1,000 million were from 2026-11-27.
Step by step: search open SECOP II processes
Step 1. Set the filter
The colombia_secop_search tool searches processes when you send dataset set to procesos. Every other parameter is optional and they combine:
| Parameter | What it does for processes |
|---|---|
status | Status (partial match). Publicado returns open processes; Seleccionado and others also exist |
department | The buyer's department, for example Bogotá, Antioquia or Valle del Cauca |
entity / entityNit | Part of the buyer's name or its tax ID (NIT, digits only, without the check digit) |
query | Free text over the whole record: purpose, method or reference, for example software or licitación pública |
fromDate / toDate | Publication date of the process, as YYYY-MM-DD |
minValue | Minimum base price in Colombian pesos |
maxItems / offset | Results per page (1 to 50, 10 by default) and how many to skip for the next page |
Step 2. Connect the MCP server
Use the MCP https://mcp.betterllama.com/mcp in your client or call it over HTTP with JSON-RPC, as in the examples. This tool needs no key, and no account or sign-up is required during the beta.
Step 3. Call the tool with curl
Open processes from buyers in Bogotá with a base price from COP 1,000 million:
curl -s https://mcp.betterllama.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "colombia_secop_search", "arguments": {"dataset": "procesos", "department": "Bogotá", "status": "Publicado", "minValue": 1000000000, "maxItems": 3}}}'Real response (30 November 2026, 16:17 Chile time), trimmed to the second of three results and without the descripcion field:
{
"tool": "colombia_secop_search",
"count": 3,
"results": [
{
"tipo_registro": "proceso",
"id_proceso": "CO1.REQ.11424356",
"referencia": "SGC-SASI-040-2026",
"nombre": "Contratar la adquisición de equipos de cómputo para apoyar el procesamiento y la divulgación del conocimiento geocientífico del Servicio Geológico Colombiano",
"fase": "Presentación de observaciones",
"estado": "Publicado",
"estado_resumen": "Presentación de observaciones",
"estado_apertura": "Abierto",
"modalidad": "Selección abreviada subasta inversa",
"tipo_contrato": "Compraventa",
"entidad": {
"nombre": "SERVICIO GEOLOGICO COLOMBIANO**",
"nit": "899999294",
"departamento": "Distrito Capital de Bogotá",
"ciudad": "Bogotá",
"orden": "Nacional"
},
"moneda": "COP",
"precio_base": 1661173608,
"duracion": "60 día(s)",
"fecha_publicacion": "2026-11-27T23:02:53.151",
"fecha_ultima_publicacion": "2026-11-27T23:02:53.151",
"fecha_recepcion_ofertas": "2026-12-14T09:00:00.000",
"adjudicado": "No",
"respuestas": 0,
"url": "https://community.secop.gov.co/Public/Tendering/OpportunityDetail/Index?noticeUID=CO1.NTC.11296230"
}
],
"warnings": [
"Hay más resultados: usa offset=3 para la página siguiente.",
"Conjunto: SECOP II - Procesos de Contratación (p6dx-8zbt)."
],
"attribution": "Fuente: Portal de Datos Abiertos www.datos.gov.co — SECOP II (Agencia Nacional de Contratación Pública – Colombia Compra Eficiente). Licencia CC BY-SA 4.0. La fecha de última actualización del conjunto viene en sourceUpdatedAt.",
"source": "https://www.datos.gov.co/Gastos-Gubernamentales/SECOP-II-Procesos-de-Contrataci-n/p6dx-8zbt",
"sourceUpdatedAt": "2026-11-30T06:57:03.000Z",
"retrievedAt": "2026-11-30T19:17:08.068Z"
}Process SGC-SASI-040-2026 from the Colombian Geological Survey is a selección abreviada subasta inversa (electronic reverse auction) for COP 1,661 million and takes bids until 2026-12-14 09:00 (Colombia time). The url link opens the public SECOP II page of the process, with the tender documents and full schedule.
Step 4. Sort by deadline and page through
Results come newest first by publication date. To see what closes first, ask for up to 50 processes and sort them yourself by fecha_recepcion_ofertas, dropping those already closed (times are in Colombia time):
import json
from datetime import datetime, timedelta, timezone
import requests
URL = "https://mcp.betterllama.com/mcp"
HEADERS = {"Accept": "application/json, text/event-stream"}
arguments = {
"dataset": "procesos",
"department": "Bogotá",
"status": "Publicado",
"minValue": 1000000000,
"maxItems": 50
}
body = {"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": "colombia_secop_search", "arguments": arguments}}
resp = requests.post(URL, json=body, headers=HEADERS, timeout=60)
resp.raise_for_status()
data = json.loads(resp.json()["result"]["content"][0]["text"])
# Colombia time (UTC-5): keep only processes still taking bids
now = datetime.now(timezone(timedelta(hours=-5))).replace(tzinfo=None)
still_open = [p for p in data["results"]
if p.get("fecha_recepcion_ofertas")
and datetime.fromisoformat(p["fecha_recepcion_ofertas"]) > now]
still_open.sort(key=lambda p: p["fecha_recepcion_ofertas"])
print(len(data["results"]), "processes;", len(still_open), "still taking bids")
for p in still_open[:6]:
print(p["fecha_recepcion_ofertas"][:16], "|", p["modalidad"], "|",
p["entidad"]["nombre"], "|", f'{p["precio_base"]:,} COP')Real output (30 November 2026, 16:17 Chile time):
50 processes; 42 still taking bids
2026-12-01T09:00 | Contratación Directa (con ofertas) | CENAC AVIACION | 6,153,889,477 COP
2026-12-01T14:30 | Selección Abreviada de Menor Cuantía | COMANDO GENERAL DE LAS FUERZAS MILITARES | 1,700,000,000 COP
2026-12-01T17:00 | Selección Abreviada de Menor Cuantía | EJERCITO DIRECCION DE ADQUISICIONES | 273,535,838,169 COP
2026-12-02T08:00 | Selección Abreviada de Menor Cuantía | CENAC AVIACION | 11,193,933,617 COP
2026-12-02T14:00 | Selección Abreviada de Menor Cuantía | CENAC AVIACION | 1,640,249,036 COP
2026-12-02T15:00 | Selección Abreviada de Menor Cuantía | Rama Judicial- Dirección Seccional de Administración Judicial de Bogotá | 1,745,663,148 COP6 of the 50 processes have no fecha_recepcion_ofertas, and all of them are «Contratación régimen especial» (special regime), where each buyer sets its own rules. Check the process page in url.
When there are more results, the first warnings entry says so (in Spanish): «Hay más resultados: usa offset=5 para la página siguiente.» (“there are more results: use offset=5 for the next page”). With maxItems 5 and offset 5 you get the second page, with no repeats; it included, for example, a public tender by the National Hydrocarbons Agency for COP 100,000 million taking bids until 2026-12-15 10:00.
When nothing matches, the response explains it: «Sin resultados: amplía fechas, revisa la ortografía del departamento/entidad o quita filtros.» (“no results: widen the dates, check the spelling of the department/buyer or remove filters”).
Example: large public tenders open in Colombia
With query set to licitación pública, status Publicado and minValue of 5,000 million, with no department filter, the tool returned these five processes (real call, 30 November 2026):
| Buyer | Purpose (summary) | Method | Base price | Bid deadline |
|---|---|---|---|---|
| GOBERNACIÓN DEPARTAMENTO DEL PUTUMAYO | Security for schools | Licitación pública | COP 5,678 million | 2026-12-23 18:00 |
| INVIAS | Maintenance and rehabilitation of the Villagarzón – Florencia road corridor (Cauca, Caquetá and Putumayo) | Licitación pública Obra Publica | COP 89,955 million | 2027-01-26 16:00 |
| INVIAS | Maintenance and rehabilitation of the El Viajano – Majagual – Achí road corridor | Licitación pública Obra Publica | COP 82,800 million | 2027-01-22 16:00 |
| INVIAS | Maintenance and rehabilitation of the Altamira – Florencia road corridor (Huila and Caquetá) | Licitación pública Obra Publica | COP 101,200 million | 2027-01-21 16:00 |
| TIERRASUA S.A.S | Paving of the Tenza – Sutatenza road (Boyacá) | Licitación pública Obra Publica | COP 48,995 million | 2026-12-16 10:00 |
The buyer's department is not always where the work happens: INVIAS (the national roads institute) is registered in Bogotá, but its corridors are in Cauca, Caquetá, Putumayo, Huila and other regions. To search by place of execution, add the town or road name to query.
Procurement methods you will see
The modalidad field comes exactly as SECOP II publishes it, in Spanish. Among the 50 most recent open processes in Bogotá from COP 1,000 million (published 2026-11-26 to 2026-11-27), the most frequent were Licitación pública Obra Publica (14), Selección Abreviada de Menor Cuantía (10), Selección abreviada subasta inversa (9):
| Method (as published in SECOP II) | Processes |
|---|---|
| Licitación pública Obra Publica | 14 |
| Selección Abreviada de Menor Cuantía | 10 |
| Selección abreviada subasta inversa | 9 |
| Contratación régimen especial | 6 |
| Contratación Directa (con ofertas) | 3 |
| Licitación pública | 3 |
| Seleccion Abreviada Menor Cuantia Sin Manifestacion Interes | 2 |
| Concurso de méritos abierto | 1 |
| Enajenación de bienes con subasta | 1 |
| Contratación régimen especial (con ofertas) | 1 |
- Licitación pública (public tender): the general rule for larger purchases; «Obra Publica» means the purpose is public works.
- Selección abreviada (abbreviated selection): a shorter procedure; in a subasta inversa (reverse auction) standard goods or services are bought and the lowest price wins, while menor cuantía depends on the buyer's budget.
- Concurso de méritos (merit-based competition): for consulting and supervision; selection is by quality, not price.
- Mínima cuantía (minimum amount): low-value purchases with short deadlines.
- Contratación directa (direct contracting) and régimen especial (special regime): cases the law allows without an open call, or buyers with their own rules (for example, utilities). Some are published «con ofertas» (taking bids).
Since query searches the whole record, you can filter by method by typing it, for example subasta inversa or concurso de méritos.
Search SECOP II processes from an AI agent (MCP)
Add Better Llama's MCP server to your client (Claude, Cursor, VS Code or any client with remote MCP). One MCP brings colombia_secop_search, Colombia's TRM and the rest of the catalog, with no sign-up during the beta.
{
"mcpServers": {
"better-llama": {
"url": "https://mcp.betterllama.com/mcp"
}
}
}claude mcp add --transport http better-llama https://mcp.betterllama.com/mcpSetup for Claude, Codex, Gemini CLI, Windsurf, VS Code and other clients: connect your agent.
Ready-to-run Python and Node.js examples, with config files for each client: examples repository on GitHub.
Example scripts for this guide: python/secop_colombia.py (Python), node/compras_publicas.mjs (Node.js).
Then ask, for example: “Which tenders for computer equipment are still open in Colombia? Give me the buyer, base price, bid deadline and the SECOP II link.”
Beta: free and with no sign-up while we test the service.
Fields returned for each process
| Field | What it holds |
|---|---|
id_proceso / referencia | SECOP II process ID and the buyer's own reference number |
nombre / descripcion | Purpose of the process (the long description only comes when it differs from the name) |
estado / estado_apertura / fase | Status (Publicado, Seleccionado…), whether it is open, and the schedule phase, such as «Presentación de oferta» (bidding) |
modalidad / tipo_contrato | Selection method and contract type (works, supplies, supervision…) |
entidad | Buyer's name, tax ID (NIT), department, city and level (national or territorial) |
precio_base / moneda / duracion | Official budget in COP and execution period |
fecha_publicacion / fecha_recepcion_ofertas | When it was published and the bid deadline (Colombia time) |
adjudicado / respuestas / url | Whether it has been awarded, number of responses recorded and link to the public page |
The response also includes count, warnings, attribution, source, sourceUpdatedAt and retrievedAt. The tool does not return legal representatives, officials, bank accounts, or names or ID numbers of suppliers who are natural persons.
If you reuse the data, credit “Source: Open Data Portal www.datos.gov.co — SECOP II (Colombia Compra Eficiente), CC BY-SA 4.0 licence”, as the licence requires.
Pricing
Free during the beta, with no sign-up and a limit of 60 requests per minute per IP. If paid plans come later, we will announce them first on betterllama.com. This tool needs no key.
Frequently asked questions
How do I search procurement processes in SECOP II?
On the web, with SECOP II's process search. By API, with the SECOP II – Procurement Processes dataset (p6dx-8zbt) on datos.gov.co or with Better Llama's colombia_secop_search tool: dataset procesos, status Publicado and the filters you need (department, buyer, text, dates, base price). Each result includes the link to the process page.
How do I know whether a process is still open?
Filter by status Publicado and check estado_apertura (Abierto) and fecha_recepcion_ofertas, the bid deadline in Colombia time. Once that date has passed, the process no longer takes bids even if it still shows as published until the buyer moves to the next phase.
Can I sort processes by deadline?
The tool sorts newest first by publication date. To sort by deadline, ask for up to 50 results per page and sort them in your code by fecha_recepcion_ofertas, as in this guide's Python example.
How up to date are the processes?
The open dataset is updated daily. Every response includes sourceUpdatedAt with the date of the latest update; it can lag the SECOP II platform by a few days.
Do I need a key or a SECOP II account?
No. Better Llama's tool needs no key and is free during the beta, with a limit of 60 requests per minute per IP. To submit bids you do need a supplier account on SECOP II.
Can I search tenders by city or town?
The department filter uses the buyer's department. The buyer's city comes in entidad.ciudad; to search by place of execution, type the town or road in query, because a national buyer can contract works in any region.
Can I search SECOP II processes from Claude, Cursor or another AI agent?
Yes. Add Better Llama's MCP server (https://mcp.betterllama.com/mcp) to your client and the agent can use colombia_secop_search to search processes and contracts in natural language.
Is Better Llama affiliated with Colombia Compra Eficiente?
No. Better Llama is an independent project, not affiliated with, sponsored by or endorsed by Colombia Compra Eficiente or the Government of Colombia. The data source is the datos.gov.co Open Data Portal, reused under CC BY-SA 4.0.
Other guides
- Colombia SECOP II API: public procurement contracts and processes — Open data from datos.gov.co with no key, curl and Python examples, and MCP usage.
- Colombia TRM API: today's TRM and the COP/USD rate — Superintendencia Financiera data via datos.gov.co with no key, curl and Python examples, and MCP usage.
- Peru public procurement API (SEACE): tenders as JSON — OECE tenders with buyer, reference value, bidders and winning companies, no key, and MCP usage.
- Chile public procurement API: Mercado Público tenders and purchase orders — ChileCompra ticket, curl and Python examples, and MCP usage.
- Banxico API: Mexico's FIX exchange rate, UDIS and TIIE — Banco de México SIE indicators with no token to request, curl and Python examples, and MCP usage.
- Chile open data APIs: official sources by API and MCP — map of the official Chilean sources available by API and MCP, how to find the tool with search_tools, one real call per family and an index of every guide.
- Peru exchange rate API: SUNAT and SBS USD/PEN rates — Daily SBS buy and sell rates, the SUNAT rate for a date and the interbank rate, no key, and MCP usage.
This guide is also available en español.