Polyglot Data

Home / Latin America / SECOP Contracts API

SECOP API for contracts: contractor and entity history in Colombia

Get the history of public contracts in Colombia, from SECOP II (the current platform) and the SECOP I archive, in one clean, typed feed. Look up a contractor (a company or a person) and see everything it has signed with the state. Look up a contracting entity and see everything it has signed, with payments, funding sources and execution status. Turn on alert mode to receive only the contracts that are new or changed since your last run.

Built for analysts, journalists, compliance and KYC teams, and contractors who research their competitors. It saves you from reading the portal one contract at a time.

The data comes from the official open data of Colombia's public procurement agency (datos.gov.co). The actor uses plain HTTP requests, so runs are fast and light.

Run it on ApifySee pricing

What data you get

Each item is one contract. Fields that exist only for one platform are null for the other.

FieldExampleNotes
sourceSECOP IISECOP II or SECOP I
contractIdCO1.PCCNTR.0000001Contract id (SECOP I: constancy number and contract number). Unique per contract
contractReferenceCTR-2026-0001Reference number of the contract
processIdCO1.BDOS.0000001Purchase process the contract came from
entityEntidad Ejemplo DistritalContracting entity
entityNit800000002Tax ID (NIT) of the entity. An institution, not a person
entityOrderTerritorialNacional, Territorial or Corporación Autónoma
entitySector, entityBranchEducación, EjecutivaSector and branch of the entity (SECOP II only)
departmentBogotá D.C.Canonical department name, same spelling in both platforms
cityBogotá, D.C.Municipality of the entity. null when not reported
contractorCONSTRUCTORA EJEMPLO SASContractor name as published in the contract
contractorIdTypeNITType of the contractor's identification document, as published
contractorId900000001Contractor's identification number as published (NIT or document number)
contractorKindcompanycompany (NIT or foreign company), person (personal document) or null
contractorIsGroupfalsetrue for a consortium or temporary union (SECOP II only)
contractorIsSmetruetrue when registered as SME (pyme or mipyme)
legalRepresentativePERSONA EJEMPLOLegal representative as published. Companies only, null for persons
statusActivoContract status as published by SECOP
contractTypeObraType of contract: works, services, supplies and so on
modalityLicitación públicaProcurement modality as published (Spanish)
modalityGrouplicitacionNormalized group (see the modalities input)
modalityJustificationnullJustification of the modality (SECOP II only)
objectObra de mejoramiento de vía ...What is being bought or contracted
unspscCode72141100UNSPSC category code. null when UNSPECIFIED
unspscGroupName, unspscFamily, unspscFamilyName, unspscClassNamenull, 7214, Servicios de construcción, ...UNSPSC hierarchy derived from the code
value2400000000Contract value in COP, including additions for SECOP I
additionsValuenullValue of additions in COP (SECOP I only)
paid, invoiced, pendingPayment, advancePayment, pendingExecution1200000000Payments and execution in COP (SECOP II only)
paidPct50.0Percentage of the value already paid, one decimal (SECOP II only)
daysAdded0Days added to the contract term (SECOP II only)
signedAt2026-03-02Signing date
startAt, endAt2026-03-16, 2027-03-15Execution start and end dates
duration360 DíasContract term as published
extendable, liquidatedtrue, falseWhether the contract can be extended and whether it has been liquidated (SECOP II only)
fundingOriginRecursos propiosOrigin of the funds as published (SECOP II only)
spendingDestinationInversiónDestination of the spending as published
funding{"ownTerritorial": 2400000000}Non-zero funding sources in COP: pgn, sgp, royalties, ownTerritorial, credit, own. null when none (SECOP II only)
bpinCodenullBPIN investment project code (SECOP I only)
standardBiddingDocsEjemplo de pliego tipoStandard bidding documents: the type as text when used, false when not, null when unknown
supervisorSUPERVISOR EJEMPLOContract supervisor, name only (SECOP II only)
spendingOfficerORDENADOR EJEMPLOSpending officer, name only (SECOP II only)
lastUpdatedAt2026-09-30Date of the last update on SECOP
urlhttps://community.secop.gov.co/...Direct link to the contract page on SECOP
changeTypenullAlert mode only: new or updated. null when alert mode is off
scrapedAt2026-10-10T14:00:00.000ZUTC timestamp of the run

Missing values are null. SECOP I has no payment, execution or funding columns, so those fields are null for SECOP I contracts. Check signedAt and lastUpdatedAt for recency.

Summary record

Unless you turn off Save summary, the run saves a SUMMARY record in the default key-value store. It is not charged and it is not in the dataset. It covers the contracts saved in that run:

{
  "generatedAt": "2026-10-10T14:00:00.000Z",
  "totalContracts": 2,
  "totalValue": 2880000000,
  "byContractor": [
    { "contractor": "CONSTRUCTORA EJEMPLO SAS", "contractorId": "900000001", "contracts": 2, "totalValue": 2880000000, "entities": 1, "firstSigned": "2019-06-10", "lastSigned": "2026-03-02" }
  ],
  "byEntity": [
    { "entity": "Entidad Ejemplo Distrital", "entityNit": "800000002", "contracts": 1, "totalValue": 2400000000, "contractors": 1 }
  ],
  "byYear": [
    { "year": 2026, "contracts": 1, "totalValue": 2400000000 }
  ]
}

byContractor and byEntity keep the top 100 each. contractors and entities count the distinct parties.

Example output illustrative

Real field names from the Actor. Values are an example and change with every run.

{
  "source": "SECOP II",
  "contractId": "CO1.PCCNTR.0000001",
  "contractReference": "CTR-2026-0001",
  "processId": "CO1.BDOS.0000001",
  "entity": "Entidad Ejemplo Distrital",
  "entityNit": "800000002",
  "entityOrder": "Territorial",
  "entitySector": "Educación",
  "entityBranch": "Ejecutiva",
  "department": "Bogotá D.C.",
  "city": "Bogotá, D.C.",
  "contractor": "CONSTRUCTORA EJEMPLO SAS",
  "contractorIdType": "NIT",
  "contractorId": "900000001",
  "contractorKind": "company",
  "contractorIsGroup": false,
  "contractorIsSme": true,
  "legalRepresentative": "PERSONA EJEMPLO",
  "status": "Activo",
  "contractType": "Obra",
  "modality": "Licitación pública",
  "modalityGroup": "licitacion",
  "modalityJustification": null,
  "object": "Obra de mejoramiento de vía terciaria en el sector de ejemplo. Datos ilustrativos.",
  "unspscCode": "72141100",
  "unspscGroupName": null,
  "unspscFamily": "7214",
  "unspscFamilyName": "Servicios de construcción",
  "unspscClassName": "Servicios de construcción de caminos",
  "value": 2400000000,
  "additionsValue": null,
  "paid": 1200000000,
  "invoiced": 1200000000,
  "pendingPayment": 0,
  "advancePayment": 480000000,
  "pendingExecution": 1200000000,
  "paidPct": 50.0,
  "daysAdded": 0,
  "signedAt": "2026-03-02",
  "startAt": "2026-03-16",
  "endAt": "2027-03-15",
  "duration": "360 Días",
  "extendable": true,
  "liquidated": false,
  "fundingOrigin": "Recursos propios",
  "spendingDestination": "Inversión",
  "funding": { "ownTerritorial": 2400000000 },
  "bpinCode": null,
  "standardBiddingDocs": "Ejemplo de pliego tipo",
  "supervisor": "SUPERVISOR EJEMPLO",
  "spendingOfficer": "ORDENADOR EJEMPLO",
  "lastUpdatedAt": "2026-09-30",
  "url": "https://community.secop.gov.co/Public/Tendering/ContractNoticePhases/View?PPI=CO1.PPI.0000001",
  "changeType": null,
  "scrapedAt": "2026-10-10T14:00:00.000Z"
}

Input example

{
  "contractTypes": ["Obra"],
  "maxItems": 10
}

With no contractor and no entity, this saves the last 365 days of works contracts, up to 10.

Alert mode and schedules

Alert mode is for watching a contractor or an entity over time. Set onlyNew to true and add a daily schedule.

{
  "contractors": ["900000001"],
  "onlyNew": true,
  "maxItems": 100
}
  • The first run with a given set of filters saves every matching contract and marks it as new.
  • Later runs save only contracts that are new, or whose status, payments or last update changed (the fingerprint is lastUpdatedAt, status and paid). Those rows have changeType set to new or updated. Everything else is skipped and not charged.
  • Each filter set keeps its own history. Changing a filter starts a new history, so the next run saves everything again.
  • To receive alerts, turn on the Schedules tab and add a daily schedule. Then connect the dataset to Google Sheets, a webhook, e-mail or the API.

Pricing

EventPricePer 1,000Charged when
Contract saved$0.002$2.00 per 1,000Charged once for each contract saved to the dataset. Error items and unchanged contracts (alert mode) are never charged.

Pay per result: you pay $0.002 for each contract saved to the dataset (see the Pricing tab), plus Apify platform usage. There is no monthly rental. Error items and unchanged contracts in alert mode are never charged. The SUMMARY record is not charged.

Platform usage (measured Oct 2026): a 300-contract entity history takes about 2 seconds at 256 MB, and a 10-contract run costs about $0.0001 in platform usage. No proxy is used.

Prices are USD per event, as published on the Actor's Apify page. Apify platform usage may apply on top; check the Pricing tab on Apify before large runs.

Honest limits

Error items

If an input produces nothing or cannot run, the actor saves an error item instead of failing silently. Error items are never charged.

{ "error": "NO_RESULTS", "note": "No contracts match these filters. Try a wider date window or fewer keywords.", "input": { "contractors": ["900000009"] } }
errorMeaningWhat to do
NO_RESULTSNothing matched the filters. The echoed input is in inputCheck the NIT or name, widen signedFrom or remove a filter
SOURCE_ERROROne platform could not be read after 3 retries. The source is named in the itemRun again later. The other platform's results are still saved
INVALID_INPUTThe input cannot be used, e.g. minValue greater than maxValue, a bad date, or no filter and no date windowFix the field named in the note

Use cases

  • Contractor profile (due diligence and KYC): give a company's NIT and get every contract it has signed with public entities: entities, values, payments, status and dates. A complete picture before you sign a subcontract or a supplier agreement. Check contractorKind and contractorIsGroup to tell a company from a consortium.
  • Everything an entity signed (journalism and oversight): give an entity's name or NIT and get its contracts over any period, with the contractors it chose, the values and the paid percentage. A city government in Cali or Barranquilla, or a department government in Antioquia, works the same way. Use byContractor in the summary to find the firms that win the most.
  • Who gets royalty-funded works (regional analysis): set fundingSources to royalties, with contractTypes set to Obra and the departments you follow. The funding object of each contract gives the amount per source in COP.
  • Competitor research for contractors: give the NITs of your main competitors and see which entities they work for, how big their contracts are and how much they have executed.
  • Payment risk for suppliers: track paidPct, pendingPayment and status for a contractor's open contracts to see whether the state is paying on time.
  • Dashboards and BI: feed the dataset into Google Sheets, Power BI or your own database through the API.

FAQ

Which platforms are covered? Both. SECOP II, where Colombian entities register contracts today, and SECOP I, the previous platform that holds the archive (mostly contracts up to 2021). Both are searched by default. Remove secop1 from sources for current contracts only.

Why do I get more history with a contractor than with a keyword search? A contractor or entity search has no date limit by default, so you get the full history. A keyword-only search uses the last 365 days unless you set Signed from.

Why is paid empty for some contracts? SECOP I has no payment columns, so paid, invoiced, pendingPayment, advancePayment and pendingExecution are always null for SECOP I contracts. For SECOP II, a field is null when the entity did not report it.

Why do I see contractorKind as null? The contractor's identification type is not one the actor recognizes as a company or a person. The raw type is in contractorIdType so you can check it.

How do I find the royalty-funded works? Set fundingSources to royalties, and combine it with contractTypes and departments. Only SECOP II has funding columns, so SECOP I is skipped for that run.

Can I find the contracts of a company by its NIT? Yes. Put the NIT digits in contractors. A NIT with its check digit also works. Use the name when you do not have the NIT.

Why do two entities with the same name appear? Entity names are not unique in SECOP. Use entityNit to tell them apart, or search by the NIT digits in entities.

What is the difference between contractorIsGroup and contractorKind? contractorKind says whether the contractor is a company or a person. contractorIsGroup says whether it is a consortium or temporary union, which is a company or a group of companies. It is only filled for SECOP II.

What is the difference between value and paid? value is the total contract value in COP, including additions for SECOP I. paid is the amount paid so far, which exists for SECOP II only. paidPct is paid divided by value.

Where does the data come from? From the open data published on datos.gov.co by the national public procurement agency, ANCP–Colombia Compra Eficiente. The data is updated by SECOP as contracts change, so a run shows the state of the platform at that moment.

Something is wrong or a field is missing? Open an issue in the Issues tab with the input you used. Issues are answered quickly.

¿Funciona en español? Sí. Los campos de entrada aceptan palabras en español, con o sin tildes (por ejemplo, obra o Bogotá). Los datos llegan en español tal como los publica SECOP.

Try SECOP Contracts API on Apify

Run it from your browser, schedule it, or call it from the Apify API. Output downloads as JSON, CSV, Excel or HTML.

Open on the Apify Store

Related Actors

SECOP Tenders API

Extract Colombia SECOP II tenders and SECOP I history by keyword, location or budget: deadlines, bidders and winners. Find public bidding opportunities. Alerts return new or changed tenders.

$0.003 / tender

Details Open on Apify

French Company Search (SIRENE)

Extract French company data from SIRENE by name, SIREN, postcode or NAF code: address, size, revenue and net income. Build lead lists or enrich company records. Official open data; no API key.

$0.002 / company

Details Open on Apify

Falabella Scraper

Extract Falabella products by keyword or search/category URL in Chile, Peru and Colombia: prices, CMR prices, ratings, sellers and stock signals. Track price changes; pay per saved product.

$0.003 / product

Details Open on Apify