Home Documentation Central Bank Rates Tax Authority Rates Playground Pricing API Status Blog About FAQ Contact Us

Banco de México Exchange Rate API

Official Banco de México (Mexico) daily exchange rates as JSON: 4 currencies, history back to 1993. The published MXN rates required for tax, audits, and compliant invoicing.

Mexico flagBanco de México official daily exchange rates as JSON: 4 currencies against the MXN, history back to 1993. Latest table on every plan. Get your API key.

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.

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-08-07)

The most recent table as published by Banco de México — exactly what the /latest endpoint returns right now. Values are MXN per 1 unit of each currency:

Download this table: Excel (.xlsx) CSV

BaseQuoteTypeRate
CAD MXN informational 12.2895
EUR MXN informational 19.7566
JPY MXN informational 0.1083
USD MXN close 17.1385
USD MXN reference 17.1387

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.

Why use the official Banco de México rate?

Live market rates move continuously, but tax filings, customs declarations, audits, and statutory accounting in Mexico and beyond typically require the official rate published by Banco de México for a given date — a fixed, citable number that never changes after publication. This API serves those published tables with the bank's own rate_date on every response; weekends and holidays return the most recent published date, which is the rate compliance rules require 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

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

Is there an API for Banco de México exchange rates?

Yes — this one. Official daily MXN rates as clean JSON, latest table on every plan including free.

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-08-07).

Are these the official rates?

Yes — ingested from Banco de México's own published data, served unmodified with the bank's publication date. Anything computed rather than published is 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