# Chile Economy API
> Live Chilean economic indicators from mindicador.cl (Banco Central de Chile data). Chile runs on indicators no other currency uses: the UF (Unidad de Fomento) is an inflation-indexed unit that prices mortgages, rents and contracts, and the UTM (Unidad Tributaria Mensual) is the tax unit — both quoted in pesos and updated daily. The feed also carries the observed dollar and euro, the IPC inflation index, the IMACEC activity index, the central bank policy rate (TPM), the copper price (Chile is the world's top copper exporter) and unemployment. The indicators endpoint returns every indicator's latest value; the indicator endpoint returns one with its recent series; the history endpoint returns a full year of daily values; the convert endpoint converts amounts between the peso, UF, UTM, dollar and euro. Read live, nothing stored. This is Chile's own UF/UTM, FX, rate and copper indicator layer — distinct from generic FX feeds.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/chile-api/..."
```

## Pricing
- **Free** (Free) — 2,900 calls/Mo, 2 req/s
- **Starter** ($6/Mo) — 72,000 calls/Mo, 10 req/s
- **Pro** ($19/Mo) — 360,000 calls/Mo, 30 req/s
- **Scale** ($44/Mo) — 2,300,000 calls/Mo, 100 req/s

## Endpoints

### Indicators

#### `GET /v1/indicators` — Latest value of every Chilean indicator

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/chile-api/v1/indicators"
```

**Response:**
```json
{
    "data": {
        "count": 12,
        "source": "mindicador.cl (Banco Central de Chile)",
        "country": "Chile",
        "updated": "2026-06-10T22:00:00.000Z",
        "indicators": [
            {
                "code": "uf",
                "date": "2026-06-10T04:00:00.000Z",
                "name": "Unidad de fomento (UF)",
                "unit": "Pesos",
                "value": 40765.97
            },
            {
                "code": "ivp",
                "date": "2026-06-10T04:00:00.000Z",
                "name": "Indice de valor promedio (IVP)",
                "unit": "Pesos",
                "value": 41877.16
            },
            {
                "code": "dolar",
                "date": "2026-06-10T04:00:00.000Z",
                "name": "Dólar observado",
                "unit": "Pesos",
                "value": 916.39
            },
            {
                "code": "dolar_intercambio",
                "date": "2014-11-13T03:00:00.000Z",
                "name": "Dólar acuerdo",
                "unit": "Pesos",
                "value": 758.87
            },
            {
                "code": "euro",
                "date": "2026-06-10T04:00:00.000Z",
                "name": "Euro",
                "unit": "Pesos",
                "value": 1058.43
            },
            {
                "code": "ipc",
                "date": "2025-12-01T03:00:00.000Z",
                "name": "Indice de Precios al Consumidor (IPC)",
          
…(truncated, see openapi.json for full schema)
```

### Indicator

#### `GET /v1/indicator` — One indicator with its recent series

**Parameters:**
- `code` (query, required, string) — Indicator code (uf, dolar, tpm, libra_cobre …) Example: `uf`
- `limit` (query, optional, string) — Recent values (1-100) Example: `10`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/chile-api/v1/indicator?code=uf&limit=10"
```

**Response:**
```json
{
    "data": {
        "code": "uf",
        "date": "2026-06-10T04:00:00.000Z",
        "name": "Unidad de fomento (UF)",
        "unit": "Pesos",
        "value": 40765.97,
        "recent": [
            {
                "date": "2026-06-10T04:00:00.000Z",
                "value": 40765.97
            },
            {
                "date": "2026-06-09T04:00:00.000Z",
                "value": 40763.26
            },
            {
                "date": "2026-06-08T04:00:00.000Z",
                "value": 40746.28
            },
            {
                "date": "2026-06-07T04:00:00.000Z",
                "value": 40729.31
            },
            {
                "date": "2026-06-06T04:00:00.000Z",
                "value": 40712.34
            },
            {
                "date": "2026-06-05T04:00:00.000Z",
                "value": 40695.38
            },
            {
                "date": "2026-06-04T04:00:00.000Z",
                "value": 40678.43
            },
            {
                "date": "2026-06-03T04:00:00.000Z",
                "value": 40661.48
            },
            {
                "date": "2026-06-02T04:00:00.000Z",
                "value": 40644.55
            },
            {
                "date": "2026-06-01T04:00:00.000Z",
                "value": 40627.62
            }
        ],
        "source": "mindicador.cl (Banco Central de Chile)"
    },
    "meta": {
        "timestamp": "2026-06-10T22:56:42.065Z",
        "reques
…(truncated, see openapi.json for full schema)
```

### History

#### `GET /v1/history` — A full year of daily values

**Parameters:**
- `code` (query, required, string) — Indicator code Example: `dolar`
- `year` (query, required, string) — 4-digit year Example: `2026`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/chile-api/v1/history?code=dolar&year=2026"
```

**Response:**
```json
{
    "data": {
        "code": "dolar",
        "name": "Dólar observado",
        "unit": "Pesos",
        "year": "2026",
        "count": 111,
        "source": "mindicador.cl (Banco Central de Chile)",
        "history": [
            {
                "date": "2026-06-10T04:00:00.000Z",
                "value": 916.39
            },
            {
                "date": "2026-06-09T04:00:00.000Z",
                "value": 918.91
            },
            {
                "date": "2026-06-08T04:00:00.000Z",
                "value": 910.29
            },
            {
                "date": "2026-06-05T04:00:00.000Z",
                "value": 894.99
            },
            {
                "date": "2026-06-04T04:00:00.000Z",
                "value": 894.29
            },
            {
                "date": "2026-06-03T04:00:00.000Z",
                "value": 888.36
            },
            {
                "date": "2026-06-02T04:00:00.000Z",
                "value": 892.91
            },
            {
                "date": "2026-06-01T04:00:00.000Z",
                "value": 890.64
            },
            {
                "date": "2026-05-29T04:00:00.000Z",
                "value": 892.89
            },
            {
                "date": "2026-05-28T04:00:00.000Z",
                "value": 894.79
            },
            {
                "date": "2026-05-27T04:00:00.000Z",
                "value": 894.67
            },
            {
              
…(truncated, see openapi.json for full schema)
```

### Convert

#### `GET /v1/convert` — Convert between CLP, UF, UTM, USD, EUR

**Parameters:**
- `amount` (query, required, string) — Amount to convert Example: `1000000`
- `from` (query, optional, string) — From (CLP, UF, UTM, USD, EUR) Example: `UF`
- `to` (query, optional, string) — To (CLP, UF, UTM, USD, EUR) Example: `CLP`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/chile-api/v1/convert?amount=1000000&from=UF&to=CLP"
```

**Response:**
```json
{
    "data": {
        "to": "CLP",
        "from": "UF",
        "amount": 1000000,
        "result": 40765970000,
        "source": "mindicador.cl (Banco Central de Chile)",
        "updated": "2026-06-10T22:00:00.000Z",
        "clp_per_to": 1,
        "clp_per_from": 40765.97
    },
    "meta": {
        "timestamp": "2026-06-10T22:56:42.861Z",
        "request_id": "fc4c0aa9-a7d3-4a5b-9047-6fc3d3595463"
    },
    "status": "ok",
    "message": "Conversion completed",
    "success": true
}
```

### Meta

#### `GET /v1/meta` — Service metadata

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/chile-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "source": "mindicador.cl (Banco Central de Chile data, live)",
        "uf_clp": 40765.97,
        "service": "chile-api",
        "usd_clp": 916.39,
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/convert": "Convert between CLP, UF, UTM, USD and EUR (amount=1000000, from=UF, to=CLP).",
            "GET /v1/history": "A full year of daily values for an indicator (code=dolar, year=2026).",
            "GET /v1/indicator": "One indicator with its recent series (code=uf, limit=10).",
            "GET /v1/indicators": "Latest value of every Chilean indicator (UF, UTM, dollar, copper, TPM …)."
        },
        "indicators": [
            "uf",
            "ivp",
            "dolar",
            "dolar_intercambio",
            "euro",
            "ipc",
            "utm",
            "imacec",
            "tpm",
            "libra_cobre",
            "tasa_desempleo",
            "bitcoin"
        ],
        "description": "Live Chilean economic indicators from mindicador.cl (Banco Central de Chile data). Chile runs on indicators no other currency uses: the UF (Unidad de Fomento) is an inflation-indexed unit that prices mortgages, rents and contracts, and the UTM (Unidad Tributaria Mensual) is the tax unit — both quoted in pesos and updated daily. The feed also carries the observed dollar and euro, the IPC inflation index, the IMACEC activity index, the policy rate (TPM), the copper price (Chile is the world's
…(truncated, see openapi.json for full schema)
```


---
Marketplace page: https://www.oanor.com/api/chile-api
OpenAPI spec: https://www.oanor.com/api/chile-api/openapi.json
