# MercadoPublico Chile - Licitaciones (`licify/mercadopublico-licitaciones`) Actor

Access Chilean public procurement data from MercadoPublico.cl. Query licitaciones, organizations, sellers, proposals, awards, and bidding stats. Supports single-entity lookups and filtered bulk extraction.

- **URL**: https://apify.com/licify/mercadopublico-licitaciones.md
- **Developed by:** [Licify](https://apify.com/licify) (community)
- **Categories:** Lead generation, Integrations
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 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.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## MercadoPublico Chile - Public Procurement Data

Access structured data from Chile's public procurement platform [MercadoPublico.cl](https://www.mercadopublico.cl). Extract licitaciones (tenders), organization profiles, seller information, proposals, award results, and bidding statistics.

### What data can you get?

- **Licitaciones** — Tender details including name, status, budget, dates, buyer organization, description, and product categories
- **Organizations** — Public buyer entities with contact info, RUT, and procurement metrics (complaints, payment times)
- **Sellers** — Supplier profiles with contact details, extracted emails/phones, proposal history, and award bid records
- **Proposals** — Bids submitted by sellers for each licitacion, including pricing and ranking
- **Awards** — Winning bids and full bid comparison tables (all participants)
- **Bidding Statistics** — Pre-computed analytics: win rates, price dispersion, top bidders, market competitiveness by buyer+product
- **Files** — Attached documents for each licitacion
- **Activity** — Change history for licitaciones (status changes, new proposals, new attachments, awards)

### Examples

#### Get a specific licitacion

Retrieve full details for a single procurement by its ID.

```json
{
  "action": "get-licitacion",
  "entityId": "4455-77-LE25"
}
````

**Sample output:**

```json
{
  "licitacion_id": "4455-77-LE25",
  "lic_name": "Adquisicion de equipamiento informatico",
  "lic_status": "Publicada",
  "lic_budget": "15000000",
  "lic_currency": "Peso Chileno",
  "lic_buyer_name": "HOSPITAL DE CHILLAN",
  "date_publicacion": "2025-06-15 10:30:00",
  "date_cierre": "2025-06-25 15:00:00",
  "lic_description": "Adquisicion de notebooks y monitores..."
}
```

#### Extract all published licitaciones from a date range

Bulk-extract tenders with filters. The actor paginates automatically.

```json
{
  "action": "list-licitaciones",
  "status": "Publicada",
  "dateFrom": "2025-01-01",
  "dateTo": "2025-06-30",
  "maxItems": 500
}
```

#### Get all licitaciones from a specific organization

```json
{
  "action": "list-organization-licitaciones",
  "entityId": "7067",
  "period": "12m",
  "maxItems": 200
}
```

#### Look up a seller and their award history

```json
{
  "action": "get-seller",
  "entityId": "76543210-K"
}
```

```json
{
  "action": "list-seller-award-bids",
  "entityId": "76543210-K",
  "period": "24m",
  "maxItems": 1000
}
```

**Sample output (award bids):**

```json
{
  "licitacion_id": "1234-56-LE25",
  "item_number": 1,
  "item_description": "Notebook HP ProBook 450",
  "unit_price": 650000,
  "is_winner": 1,
  "seller_name": "Tecnologia SpA",
  "lic_name": "Adquisicion equipamiento TI",
  "buyer_name": "HOSPITAL DE CHILLAN",
  "date_adjudicacion": "2025-05-20"
}
```

#### Compare all bids for a licitacion

See every bid submitted (winners and losers) to analyze competitiveness.

```json
{
  "action": "list-award-bids",
  "entityId": "4455-77-LE25"
}
```

#### Get bidding statistics for a buyer + product combination

Pre-computed market analytics: average prices, number of participants, win rates, top bidders.

```json
{
  "action": "get-bidding-stats",
  "entityId": "7067",
  "secondaryId": "51142600"
}
```

#### Get seller contacts (extracted emails and phones)

```json
{
  "action": "get-seller-contacts",
  "entityId": "76543210-K"
}
```

#### List all proposals for a licitacion

```json
{
  "action": "list-proposals",
  "entityId": "4455-77-LE25"
}
```

#### Dump reference lists

Get all organizations, categories, or sellers to discover available entity IDs.

```json
{ "action": "list-organizations" }
```

```json
{ "action": "list-categories" }
```

```json
{
  "action": "list-sellers",
  "maxItems": 5000
}
```

### Input Reference

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `action` | string | Yes | Action to perform (see below) |
| `entityId` | string | Depends | Entity identifier (licitacion ID, org code, seller RUT, category code) |
| `secondaryId` | string | No | Secondary identifier (product code for `get-bidding-stats`) |
| `status` | string | No | Filter by licitacion status: `Publicada`, `Cerrada`, `Adjudicada`, `Desierta`, `Revocada` |
| `organization` | string | No | Filter by buyer organization code |
| `dateFrom` | string | No | Start date filter (YYYY-MM-DD) |
| `dateTo` | string | No | End date filter (YYYY-MM-DD) |
| `period` | string | No | Time period: `6m`, `12m`, `24m`, `all` (default: `6m`) |
| `maxItems` | integer | No | Maximum items to extract (default: 100, max: 10,000) |

### All Available Actions

#### Single-Entity Lookups

| Action | entityId | Description |
|--------|----------|-------------|
| `get-licitacion` | Licitacion ID (e.g., `4455-77-LE25`) | Full tender details with buyer name |
| `get-organization` | Org code (e.g., `7067`) or RUT | Organization profile |
| `get-organization-metrics` | Org code or RUT | Complaints, payment metrics |
| `get-category` | Category code (e.g., `51142600`) | Product category info |
| `get-seller` | Seller RUT (e.g., `76543210-K`) | Supplier profile |
| `get-seller-contacts` | Seller RUT | Extracted emails and phone numbers |
| `get-bidding-stats` | Buyer org code + `secondaryId` (product code) | Market competitiveness analytics |
| `get-seller-stats` | Seller RUT | Seller's bidding performance across markets |
| `get-buyer-stats` | Buyer org code | Buyer's procurement activity by product |

#### Per-Entity Lists

| Action | entityId | Description |
|--------|----------|-------------|
| `list-proposals` | Licitacion ID | All proposals submitted |
| `list-award-winners` | Licitacion ID | Winning bids only |
| `list-award-bids` | Licitacion ID | All bids (winners + losers) |
| `list-files` | Licitacion ID | Attached documents |
| `list-activity` | Licitacion ID | Change history (status changes, new proposals, awards) |
| `list-seller-proposals` | Seller RUT | All proposals by this seller |
| `list-seller-award-bids` | Seller RUT | Award bid history |

#### Bulk Extraction (auto-paginated)

| Action | Required Filters | Description |
|--------|-----------------|-------------|
| `list-licitaciones` | At least one of: `status`, `organization`, `dateFrom`, `dateTo` | Filtered tender list |
| `list-organization-licitaciones` | `entityId` | Organization's tenders (use `period` to control time range) |
| `list-category-licitaciones` | `entityId` | Tenders by product category |

#### Reference Lists

| Action | Description |
|--------|-------------|
| `list-organizations` | All public buyer organizations |
| `list-categories` | All product categories |
| `list-sellers` | All registered sellers (paginated via `maxItems`) |

### Output

Data is pushed to the default Apify dataset. Each action returns different fields — licitaciones include `licitacion_id`, `lic_name`, `lic_status`, `lic_budget`, `date_publicacion`, etc. Sellers include `seller_rut`, `seller_name`, `seller_email`, etc. Use the dataset export to download results as JSON, CSV, or Excel.

### Use Cases

- **Market research** — Analyze procurement spending by organization, category, or time period
- **Competitive intelligence** — Track which sellers win bids, at what prices, and how often
- **Lead generation** — Find active suppliers by category with contact information
- **Price benchmarking** — Compare bid prices across licitaciones for specific products
- **Procurement monitoring** — Track new tenders and status changes for specific organizations or categories
- **Compliance & transparency** — Audit public spending and award decisions

# Actor input Schema

## `action` (type: `string`):

The type of data to retrieve

## `entityId` (type: `string`):

ID of the entity to fetch. Use licitacion\_id (e.g., '4455-77-LE25'), org\_code or RUT, seller RUT, or category code depending on the action.

## `secondaryId` (type: `string`):

Secondary identifier. Used for bidding-stats (product code) actions.

## `status` (type: `string`):

Filter by procurement status. Required for list-licitaciones.

## `organization` (type: `string`):

Filter by organization org\_code (numeric)

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

Filter from date (YYYY-MM-DD format)

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

Filter to date (YYYY-MM-DD format)

## `period` (type: `string`):

Time period filter

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

Maximum number of items to extract. The actor will paginate automatically up to this limit.

## Actor input object example

```json
{
  "action": "list-licitaciones",
  "status": "Publicada",
  "period": "6m",
  "maxItems": 10
}
```

# Actor output Schema

## `dataset` (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 = {
    "action": "list-licitaciones",
    "status": "Publicada",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("licify/mercadopublico-licitaciones").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 = {
    "action": "list-licitaciones",
    "status": "Publicada",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("licify/mercadopublico-licitaciones").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "action": "list-licitaciones",
  "status": "Publicada",
  "maxItems": 10
}' |
apify call licify/mercadopublico-licitaciones --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=licify/mercadopublico-licitaciones",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "MercadoPublico Chile - Licitaciones",
        "description": "Access Chilean public procurement data from MercadoPublico.cl. Query licitaciones, organizations, sellers, proposals, awards, and bidding stats. Supports single-entity lookups and filtered bulk extraction.",
        "version": "0.1",
        "x-build-id": "SmZkMnDhn9EYlWDAc"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/licify~mercadopublico-licitaciones/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-licify-mercadopublico-licitaciones",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/licify~mercadopublico-licitaciones/runs": {
            "post": {
                "operationId": "runs-sync-licify-mercadopublico-licitaciones",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/licify~mercadopublico-licitaciones/run-sync": {
            "post": {
                "operationId": "run-sync-licify-mercadopublico-licitaciones",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "action"
                ],
                "properties": {
                    "action": {
                        "title": "Action",
                        "enum": [
                            "get-licitacion",
                            "list-licitaciones",
                            "get-organization",
                            "list-organization-licitaciones",
                            "get-organization-metrics",
                            "get-category",
                            "list-category-licitaciones",
                            "get-seller",
                            "list-seller-proposals",
                            "list-seller-award-bids",
                            "get-seller-contacts",
                            "list-proposals",
                            "list-award-winners",
                            "list-award-bids",
                            "list-files",
                            "get-bidding-stats",
                            "get-seller-stats",
                            "get-buyer-stats",
                            "list-activity",
                            "list-organizations",
                            "list-categories",
                            "list-sellers"
                        ],
                        "type": "string",
                        "description": "The type of data to retrieve",
                        "default": "list-licitaciones"
                    },
                    "entityId": {
                        "title": "Entity ID",
                        "type": "string",
                        "description": "ID of the entity to fetch. Use licitacion_id (e.g., '4455-77-LE25'), org_code or RUT, seller RUT, or category code depending on the action."
                    },
                    "secondaryId": {
                        "title": "Secondary ID",
                        "type": "string",
                        "description": "Secondary identifier. Used for bidding-stats (product code) actions."
                    },
                    "status": {
                        "title": "Status Filter",
                        "enum": [
                            "Publicada",
                            "Cerrada",
                            "Adjudicada",
                            "Cancelada",
                            "Anulada"
                        ],
                        "type": "string",
                        "description": "Filter by procurement status. Required for list-licitaciones.",
                        "default": "Publicada"
                    },
                    "organization": {
                        "title": "Organization Filter",
                        "type": "string",
                        "description": "Filter by organization org_code (numeric)"
                    },
                    "dateFrom": {
                        "title": "Date From",
                        "type": "string",
                        "description": "Filter from date (YYYY-MM-DD format)"
                    },
                    "dateTo": {
                        "title": "Date To",
                        "type": "string",
                        "description": "Filter to date (YYYY-MM-DD format)"
                    },
                    "period": {
                        "title": "Period",
                        "enum": [
                            "6m",
                            "12m",
                            "24m",
                            "all"
                        ],
                        "type": "string",
                        "description": "Time period filter",
                        "default": "6m"
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of items to extract. The actor will paginate automatically up to this limit.",
                        "default": 100
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
