Banco de México Exchange Rate API
Official Banco de México rates for 10 Sept 2026: 1 USD = 17 MXN, 1 EUR = 19.735 MXN. All 3 currencies published, history back to 1993. Free JSON API for tax, audits, and compliant invoicing.
About Banco de México
Banco de México determines the FIX rate from wholesale market quotes and publishes it from noon each banking day. It is published in the Diario Oficial de la Federación the following banking day and is the rate that legally settles US dollar obligations payable in Mexico under Circular 3/2012.
- Official website: www.banxico.org.mx/indexen.html
- Official rate publication: Peso/dollar exchange rates (FIX)
Quick start
One request for the pair you need — USD to MXN at the official Banco de México rate:
curl "https://allratestoday.com/api/v1/central-bank/banxico/latest?source=USD&target=MXN" \
-H "Authorization: Bearer art_live_your_key" Or the bank's full published table:
curl "https://allratestoday.com/api/v1/central-bank/banxico/latest" \
-H "Authorization: Bearer art_live_your_key" On paid plans, any historical date or a time series:
curl "https://allratestoday.com/api/v1/central-bank/banxico/history?source=USD&target=MXN&from=2025-01-01" \
-H "Authorization: Bearer art_live_your_key" Latest published rates (2026-09-10)
Banco de México's newest published table, verbatim — the same rows the /latest endpoint returns at this moment. Values are MXN per 1 unit of each currency:
Download this table: Excel (.xlsx) CSV (paid plan required)
One row per currency per publication date. Up to one year per download. Billed as one API call per currency per month of data.
Prefer a bulk file? The complete archive of every source is also published as an open dataset: central-bank-exchange-rates on Hugging Face
| Base | Quote | Type | Rate |
|---|---|---|---|
EUR | MXN | informational | 19.7353 |
JPY | MXN | informational | 0.1102 |
USD | MXN | close | 16.9996 |
USD | MXN | reference | 16.9722 |
Node.js / TypeScript client
A dedicated zero-dependency npm package wraps these endpoints — banxico-exchange-rate:
npm install banxico-exchange-rate import { getRate } from 'banxico-exchange-rate';
const pair = await getRate('USD', 'MXN', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date); Zero dependencies, TypeScript types included, and it runs anywhere fetch exists — Node 18+, Bun, Deno, and edge runtimes.
Full reference — installation, all four functions, response shapes, error codes: banxico-exchange-rate documentation.
Why use the official Banco de México rate?
A market rate is a moving target; the rate Banco de México publishes is a fixed, citable figure that stays put once printed — which is why invoicing, customs, audit evidence, and statutory accounting in Mexico lean on it rather than on a live feed. Every response from this API carries the bank's own rate_date, and on days with no publication you get the most recent published table — the one compliance rules tell you to apply.
Pairs the bank doesn't print directly are resolved from its table (inverse or cross via MXN) and explicitly flagged "derived": true — so what the bank printed and what was computed are never confused.
Endpoints
GET /api/v1/central-bank/banxico/latest— latest table or single pair (all plans)GET /api/v1/central-bank/banxico/{YYYY-MM-DD}— the table for any date (paid plans)GET /api/v1/central-bank/banxico/history— time series, up to 5,000 rows (paid plans)GET /api/v1/central-bank/banxico/availability— publication calendar: the dates the bank actually published (all plans)
Full parameter reference in the API documentation. Every request counts toward your plan's monthly quota — rates change once per business day, so caching a published table locally makes a small quota go far.
Frequently asked questions
Does an exchange rate API exist for Banco de México data?
Yes. This endpoint returns Banco de México's official daily figures as JSON; the newest table is free on every plan.
How often are the rates updated?
Banco de México publishes once per business day; the API ingests each new table shortly after publication (latest: 2026-09-10).
Are these really Banco de México's official figures?
Yes. Every value comes from Banco de México's own publication and is served unmodified, carrying the bank's publication date; computed pairs are explicitly flagged derived.
Banco de México rates, one API key
Latest table on every plan. History back to 1993 on paid plans. No credit card to start.
Get Free API Key Read the Docs