ChileCompra Government Procurement Scraper
Pricing
from $3.50 / 1,000 results
Go to Apify Store

ChileCompra Government Procurement Scraper
Pricing
from $3.50 / 1,000 results
Rating
0.0
(0)
Developer

Fortuitous Pirate
Maintained by Community
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Share
ChileCompra Public Procurement Scraper
Scrapes public procurement tenders from Chile's Mercado Publico (ChileCompra) API. This Apify actor provides programmatic access to Chilean government procurement opportunities, supporting filtering by keyword, status, date range, and region.
API Source
- Endpoint: https://api.mercadopublico.cl/servicios/v1/publico/licitaciones.json
- API Key: Optional (set via
CHILECOMPRA_TICKETenvironment variable) - Documentation: Mercado Publico API
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
keyword | string | No | - | Search term for procurement opportunities |
estado | enum | No | "" (all) | Tender status filter |
fechaDesde | string | No | - | Start date in DD-MM-YYYY format |
fechaHasta | string | No | - | End date in DD-MM-YYYY format |
codigoRegion | string | No | - | Chilean region code |
limit | integer | No | 100 | Maximum results (1-5000) |
Estado (Status) Values
| Value | Description |
|---|---|
"" | All statuses |
publicada | Published (open for bidding) |
cerrada | Closed (bidding ended) |
adjudicada | Awarded (winner selected) |
desierta | Deserted (no valid bids) |
revocada | Revoked (cancelled) |
Region Codes
| Code | Region |
|---|---|
| 1 | Tarapaca |
| 2 | Antofagasta |
| 3 | Atacama |
| 4 | Coquimbo |
| 5 | Valparaiso |
| 6 | O'Higgins |
| 7 | Maule |
| 8 | Biobio |
| 9 | Araucania |
| 10 | Los Lagos |
| 11 | Aysen |
| 12 | Magallanes |
| 13 | Metropolitana |
| 14 | Los Rios |
| 15 | Arica y Parinacota |
| 16 | Nuble |
| RM | Santiago Metropolitan Region |
Output Fields
Each tender record contains the following fields:
| Field | Type | Description |
|---|---|---|
codigo | string | External tender code (unique identifier) |
nombre | string | Tender name/title |
descripcion | string | Full description |
estado | string | Status code |
estadoNombre | string | Status display name |
tipo | string | Tender type |
moneda | string | Currency |
fechaCreacion | string | Creation date |
fechaCierre | string | Closing date |
fechaPublicacion | string | Publication date |
fechaAdjudicacion | string | Award date |
unidadCompra | string | Purchasing unit name |
organismoComprador | object | Buyer organization details |
organismoComprador.codigo | string | Organization code |
organismoComprador.nombre | string | Organization name |
organismoComprador.rut | string | Chilean tax ID (RUT) |
region | string | Region name |
comuna | string | Municipality/commune |
informesAdjuntos | array | Attached reports/documents |
tiempoRestante | string | Time remaining until close |
urlLicitacion | string | Direct URL to tender page |
scrapedAt | string | ISO timestamp of scrape |
Example Input
{"keyword": "computadores","estado": "publicada","fechaDesde": "01-01-2026","fechaHasta": "31-01-2026","codigoRegion": "RM","limit": 50}
Example Output
{"codigo": "1234-56-LP24","nombre": "Adquisicion de Equipamiento Informatico","descripcion": "Compra de computadores para oficinas centrales","estado": "5","estadoNombre": "Publicada","tipo": "L1","moneda": "CLP","fechaCreacion": "2026-01-15T10:30:00","fechaCierre": "2026-01-30T15:00:00","fechaPublicacion": "2026-01-15T12:00:00","fechaAdjudicacion": null,"unidadCompra": "Departamento de Adquisiciones","organismoComprador": {"codigo": "7654","nombre": "Ministerio de Salud","rut": "61.234.567-8"},"region": "Region Metropolitana","comuna": "Santiago","informesAdjuntos": [],"tiempoRestante": "15 dias","urlLicitacion": "https://www.mercadopublico.cl/Procurement/Modules/RFB/DetailsAcquisition.aspx?idLicitacion=1234-56-LP24","scrapedAt": "2026-01-25T14:30:00.000Z"}
Usage
On Apify Platform
- Go to the actor page on Apify
- Configure input parameters
- Run the actor
- Download results in JSON, CSV, or Excel format
Local Development
# Install dependenciesnpm install# Set API key (optional)export CHILECOMPRA_TICKET=your_api_key# Run locallynpm start
Programmatic Access
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });const run = await client.actor('your-username/chilecompra-scraper').call({keyword: 'servicios',estado: 'publicada',limit: 100});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Rate Limiting
The scraper includes built-in rate limiting (1 second delay between API requests) to respect the Mercado Publico API and avoid overloading their servers.
Technical Details
- Runtime: Node.js 18+
- Dependencies: Apify SDK 3.x, Crawlee 3.x
- Request Timeout: 60 seconds
- Page Size: 100 records per API request
License
ISC