{
  "openapi": "3.0.1",
  "info": {
    "title": "CMF Chile – Indicadores, UF, Dólar y Reportes Bancarios",
    "description": "Normalized Chilean financial indicators (UF, USD, euro, UTM, IPC, TMC, TIP) and official bank reports from the CMF Chile API, using your own free API key. Not affiliated with CMF Chile.",
    "version": "0.2",
    "x-build-id": "48ssu3NnYd4TCgxZd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/better-llama~cmf-chile-indicadores/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-better-llama-cmf-chile-indicadores",
        "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/better-llama~cmf-chile-indicadores/runs": {
      "post": {
        "operationId": "runs-sync-better-llama-cmf-chile-indicadores",
        "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/better-llama~cmf-chile-indicadores/run-sync": {
      "post": {
        "operationId": "run-sync-better-llama-cmf-chile-indicadores",
        "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": [
          "apiKey"
        ],
        "properties": {
          "apiKey": {
            "title": "API Key de la CMF / CMF API key",
            "type": "string",
            "description": "Tu clave personal de la API CMF Bancos. Se guarda cifrada y solo se usa para tus consultas; nunca se registra en logs. Solicítala en https://api.cmfchile.cl/uso-de-api-key.html (10.000 peticiones/mes). / Your personal CMF API key, stored encrypted, never logged."
          },
          "source": {
            "title": "Recurso / Resource",
            "enum": [
              "uf",
              "dolar",
              "euro",
              "utm",
              "ipc",
              "tmc",
              "tip",
              "balances",
              "resultados",
              "perfil",
              "accionistas",
              "integrantes",
              "adecuacion"
            ],
            "type": "string",
            "description": "Indicadores: uf, dolar, euro, utm, ipc, tmc, tip. Reportes bancarios: balances, resultados, perfil, accionistas, integrantes, adecuacion. La Tasa TAB UF 360 está suspendida por la CMF (no se ofrece).",
            "default": "uf"
          },
          "period": {
            "title": "Período (indicadores) / Period",
            "enum": [
              "current",
              "year",
              "month",
              "date",
              "range"
            ],
            "type": "string",
            "description": "Solo indicadores. current = valor vigente; year / month / date = un año, un mes o un día; range = entre year(/month[/day]) y yearTo(/monthTo[/dayTo]). El rango por días (dias_i / dias_f) está documentado y verificado para dólar y euro. UF, UTM, IPC, TMC y TIP usan rango por meses o años.",
            "default": "current"
          },
          "year": {
            "title": "Año / Year",
            "minimum": 1975,
            "maximum": 2100,
            "type": "integer",
            "description": "AAAA. Obligatorio para period year/month/date/range y para reportes bancarios (salvo adecuación por regresión)."
          },
          "month": {
            "title": "Mes / Month",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "1-12. Obligatorio para period=month/date y para reportes bancarios."
          },
          "day": {
            "title": "Día / Day",
            "minimum": 1,
            "maximum": 31,
            "type": "integer",
            "description": "1-31. Solo UF, dólar y euro (period=date o inicio de un range por días)."
          },
          "yearTo": {
            "title": "Año hasta / Year to",
            "minimum": 1975,
            "maximum": 2100,
            "type": "integer",
            "description": "Fin del rango (period=range)."
          },
          "monthTo": {
            "title": "Mes hasta / Month to",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Fin del rango por meses o por días."
          },
          "dayTo": {
            "title": "Día hasta / Day to",
            "minimum": 1,
            "maximum": 31,
            "type": "integer",
            "description": "Fin del rango por días (dólar y euro)."
          },
          "institutionCode": {
            "title": "Código de institución / Institution code",
            "type": "string",
            "description": "Código SBIF de 3 dígitos (001 = Banco de Chile, 012 = BancoEstado, 028 = BICE, 999 = sistema financiero). Obligatorio en perfil, accionistas, integrantes y adecuación. En balances/resultados, si se omite y no hay accountCode, se lista el catálogo de instituciones del mes."
          },
          "accountCode": {
            "title": "Código de cuenta / Account code",
            "type": "string",
            "description": "Código contable CMF. El plan de cuentas vigente usa códigos de 9 dígitos (p. ej. 105000000 = Efectivo y depósitos en bancos; el 1000000 de la documentación de 2009 ya no devuelve datos). Si se omite, se entrega el estado completo del banco en ese mes (pueden ser cientos o más de mil líneas; usa maxItems)."
          },
          "listCatalog": {
            "title": "Catálogo / Catalog",
            "enum": [
              "instituciones",
              "cuentas"
            ],
            "type": "string",
            "description": "Solo balances o resultados. instituciones = lista de bancos con datos en ese mes; cuentas = plan de cuentas del mes. Vacío = detalle (estado o cuenta)."
          },
          "adecuacionResource": {
            "title": "Recurso de adecuación de capital / Capital adequacy resource",
            "enum": [
              "irs",
              "ire",
              "componentes",
              "regresion_irs",
              "regresion_ire",
              "regresion_capbas",
              "regresion_patefe"
            ],
            "type": "string",
            "description": "irs = patrimonio efectivo / activos ponderados por riesgo (%%); ire = capital básico / activos totales (%%); componentes = desglose; regresion_* = últimos N meses (el más reciente debería ser el último publicado; en una prueba de 2026 este endpoint devolvió series de 2020).",
            "default": "irs"
          },
          "regresionMonths": {
            "title": "Meses de regresión / Regression months",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Solo adecuacionResource=regresion_*. Entre 1 y 24. Por defecto 12.",
            "default": 12
          },
          "includeRaw": {
            "title": "Incluir respuesta original / Include raw record",
            "type": "boolean",
            "description": "Agrega el campo raw con el objeto original de la API. En fichas, raw tampoco incluye datos de personas naturales ni contactos personales (Ley 19.628 / 21.719). / Include the raw API object; ficha raw is also stripped of natural-person data and personal contacts.",
            "default": false
          },
          "maxItems": {
            "title": "Máximo de resultados / Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Tope de registros entregados y cobrados (1-10000). Por defecto 500. Un balance o estado de resultados mensual de un banco puede superar las 1.000 líneas; un año completo puede superar el tiempo de espera de la API.",
            "default": 500
          },
          "requestIntervalMs": {
            "title": "Pausa entre solicitudes (ms) / Request interval (ms)",
            "minimum": 500,
            "maximum": 10000,
            "type": "integer",
            "description": "Pausa mínima entre el fin de una respuesta y la siguiente solicitud (500-10000). Por defecto 1500. La cuota es 10.000 peticiones/mes por API Key.",
            "default": 1500
          },
          "maxRetries": {
            "title": "Reintentos / Retries",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Reintentos ante errores transitorios (red, 5xx, WAF intermitente, código 60). Por defecto 4.",
            "default": 4
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}