Magnet-data

An API with public data for other projects.

Note: always include the trailing slash when using the API. Full documentation: Swagger UI · ReDoc · OpenAPI schema

Currency APIs

To obtain the current value of the base currency into the counter currency:

To obtain all values for a given month add /<year>/<month>/ (include leading zero on months):

/api/v1/currencies/clf/clp/2022/07/

To obtain the value for a given day add /<year>/<month>/<day>/ (include leading zero on months and days):

/api/v1/currencies/clf/clp/2022/07/03/

Holiday APIs

To obtain chilean holidays:

/api/v1/holidays/cl/

For a given year, month or day:

To obtain chilean working days between 2 dates:

/api/v1/holidays/cl/working-days-count/?start=2025-06-01&end=2025-12-31

Prevision APIs

To obtain a list of all chilean health insurance companies:

/api/v1/prevision/health/

To obtain a list of all chilean pension fund administrators:

/api/v1/prevision/pension/