PUBLIC API · OFFICIAL DATA · 2026
MéxicoAPIOpen API of Mexican reference data, with the official source of every value
States and municipalities, banks and CLABE, FIX exchange rate, UDIS, non-business days, UMA, minimum wage and income tax tables, with source, license and date.

VERIFIABLE EVIDENCE · OCTOBER 2026
- Live API
- mexicoapi.
dagel4k. workers. dev ↗︎ - npm packages
- mexicoapi and mexicoapi-mcp · 0.
1. 0 ↗︎ - Source code
- GitHub · MIT license
↗︎
The problem
Almost every system built in Mexico needs the same catalogs: states and municipalities, banks, exchange rates, non-business days, UMA or income tax tables. Each team downloads them separately, cleans them by hand and stops updating them, often without keeping track of where each value came from.
My contribution
End-to-end design and development: a pipeline that downloads, validates and versions ten datasets from INEGI, Banxico, the DOF, CNBV, CONASAMI and SAT; a read-only API on Cloudflare Workers with an OpenAPI spec; the mexicoapi npm package, with CLABE, RFC, CURP and NSS validators and offline data; and the mexicoapi-mcp server so AI assistants can look up the official value.
What it includes
A live API with no key or account, plus full downloads in JSON, CSV and SQLite. Every response states the source, license and cut-off date of the data. A GitHub Actions bot checks the automated sources daily or weekly and proposes changes as pull requests; values published in the DOF are transcribed by hand, each with its literal citation.
Project decisions
- Keep each source’s original files with their hash, so any value can be traced back to the official publication.
- Do not redistribute SEPOMEX postal codes, since their terms do not allow it: the package includes a command that downloads them from Correos de México on each user’s machine.
- Split the data bot into separate jobs so the publishing key never shares a runner with code that processes external files.
- Compute the days set by law (LFT art. 74 and CFF art. 12) with a rule, and flag in every response what the calendar does not cover.
- More than 2,000 automated tests with Vitest, including property-based tests for the validators and date handling.
I can build something like this for your business
Process automation and integrations
Connect your tools and remove repetitive work: automated reports, data entry and alerts.
View service →Web scraping and data extraction
Collect public web data in an orderly way: prices, catalogs and listings.
View service →Software QA, testing and maintenance
API testing, bug fixing and maintenance so your system does not break in production.
View service →Want to talk it through?
Does your system need official data, validation or its own API? Tell me what you are building.