Description
Stedica MexKPI adds always-current pages for 12 Mexican economic and fiscal indicators to any WordPress site. The figures come straight from the official publications and, once you allow the connection, update themselves twice a day.
Indicators
- DOF (FIX) US dollar exchange rate
- Euro exchange rate
- Inflation, annual and monthly
- INPC (Índice Nacional de Precios al Consumidor)
- UDIS (Unidades de Inversión)
- TIIE: 28, 91 and 182 days, and overnight (fondeo)
- Cetes: 28, 91, 182 and 364 days
- S&P/BMV IPC (Mexican Stock Exchange)
- GDP (PIB) growth, annual and quarterly
- UMA (Unidad de Medida y Actualización)
- General minimum wage
- Tax surcharge rate (recargos)
Each indicator page shows
- The latest values and how they changed
- An answer-first summary sentence with the current figures
- An interactive chart with period buttons
- The full history table, with a year selector for daily series
- A CSV download
- Frequently asked questions, the official source and a disclaimer
- Dataset and FAQPage structured data (JSON-LD)
A hub shortcode shows one card per indicator, with its latest value, the change and a small chart.
Works with any theme or page builder
The shortcodes work wherever WordPress runs shortcodes: the block editor, the classic editor, widgets and page builders such as Elementor. They load their own styles and scripts only on the pages that use them, and the styles adapt to the theme’s fonts.
Settings
- Choose which of the 12 indicators to show, and in what order (drag and drop or arrow buttons)
- Choose 1 to 6 columns for the hub cards
- Fill the theme’s or editor’s container, or set a maximum width
- Pick the colors of the title section, cards, buttons, text, borders and chart lines, with a live preview
- Enter the yearly values (minimum wage, surcharge rates) and correct any value by hand
Completely free
Every feature is included. There is no paid version, no upgrade prompt, no tracking and no ads.
Languages
The plugin is in English and includes a complete Spanish (Mexico) translation. Other Spanish locales use the Spanish (Mexico) translation until they have their own.
Shortcodes
[mexkpi_hub]– the hub with one card per indicator. Optional:columns="3",ids="inpc,uma",width="container"orwidth="1000".[mexkpi id="inpc"]– one indicator page. Ids:tipo-de-cambio,euro,inflacion,inpc,udis,tiie,cetes,ipc,pib,uma,salario-minimo,recargos. Optional:hero="0"hides the title section,heading="h1"makes its heading an H1, andwidthworks as above.
Third-party code
The charts use uPlot 1.6.30 by Leon Sorokin, released under the MIT license (see assets/LICENSE-uplot.txt). Source: https://github.com/leeoniya/uPlot/tree/1.6.30
Disclaimer
The figures are compiled from official sources for information purposes only. For tax compliance, always check the official publication. Stedica LLC is not affiliated with Banco de México, INEGI, the Diario Oficial de la Federación, CONASAMI or the Mexican Stock Exchange.
External services
This plugin connects to two public services of the Mexican government to fetch the indicator data. It does not send any information about your visitors.
Nothing is contacted until you allow it. Activating the plugin makes no external request and schedules nothing. Stedica MexKPI Status & Data explains both services, what is sent and when, and links to their terms and privacy notices; the connection starts only when an administrator presses “Allow connection and start updates” (or runs wp mexkpi connect). “Stop automatic updates” on the same screen ends it at any time.
Diario Oficial de la Federación (SIDOF API), operated by the Secretaría de Gobernación
- What it is used for: the USD exchange rate, UDIS and TIIE values, and the INEGI notices with the monthly INPC and the yearly UMA.
- What is sent: HTTP requests for an indicator code, a date or a date range. Like any web request, it includes your server’s IP address, and the user agent
Stedica-MexKPI/1.0.5 (WordPress plugin; +https://wordpress.org/plugins/stedica-mexkpi/). Nothing about your site or its users is sent. - When: only after an administrator allows the connection. Then: right away for a first sync, in short background runs to load the history since 1995, twice a day (WP-Cron, 05:20 and 17:20 UTC), and when an administrator presses “Sync now”.
- Service: https://sidof.segob.gob.mx/datos_abiertos
- Legal notice (terms of use): https://sidof.segob.gob.mx/avisoLegal
- Privacy notice: https://www.gob.mx/privacidadintegral
Banco de México, Sistema de Información Económica (SIE API)
- What it is used for: the euro exchange rate, Cetes, the S&P/BMV IPC and GDP. It is only used after an administrator saves a Banxico token in Stedica MexKPI Settings.
- What is sent: HTTP requests for series identifiers and a date range, with your free Banxico token in the
Bmx-Tokenheader. Like any web request, it includes your server’s IP address and the same user agent as above. - When: only after an administrator has both allowed the connection and saved a token. Then: when the token is saved (to check it and load the history), twice a day with the regular sync, and when an administrator presses “Sync now”.
- You request your own token from Banco de México and accept its terms: https://www.banxico.org.mx/SieAPIRest/service/v1/token
- Service: https://www.banxico.org.mx/SieAPIRest/service/v1/
- Terms of use: https://www.banxico.org.mx/footer-es/salvedad-politicas-uso-banco-.html
- Privacy notice: https://transparencia.banxico.org.mx/proteccion-datos-personales.html
The charts and year selector on your pages load data from your own site’s REST API (/wp-json/mexkpi/v1/), not from these services.
Screenshots







Installation
- Install and activate the plugin from Plugins Add New, or upload the
stedica-mexkpifolder to/wp-content/plugins/. - On activation the plugin creates a page called “Indicators” with the
[mexkpi_hub]shortcode and loads the history bundled with it. It contacts no external service yet. - Go to Stedica MexKPI Status & Data, read how the plugin uses the official data sources, and press “Allow connection and start updates”. The first values arrive within minutes and the rest of the history loads in the background.
- Optional: to show the euro, Cetes, IPC and GDP, request a free token from Banco de México and save it in Stedica MexKPI Settings.
- Optional: create a page for each indicator with
[mexkpi id="…"](or runwp mexkpi pages). The hub cards link to them automatically. - Choose the indicators, their order, the columns and the width in Stedica MexKPI Settings.
FAQ
-
Where does the data come from?
-
From the official publications: Banco de México and INEGI figures published in the Diario Oficial de la Federación, Banco de México’s Sistema de Información Económica, CONASAMI resolutions for the minimum wage, and the Ley de Ingresos de la Federación and the Código Fiscal de la Federación for the surcharge rates. Each page names its source and links to it.
-
Does the plugin connect to anything when I activate it?
-
No. Activation only creates the data table, loads the bundled history and creates the “Indicators” page. The plugin contacts the Diario Oficial de la Federación and Banco de México only after an administrator allows it in Stedica MexKPI Status & Data, and you can stop it there at any time. See External services for what is sent.
-
How often is it updated?
-
Twice a day, automatically, once you allow the connection. The INPC is added when INEGI publishes it in the DOF (around the 10th of each month) and the UMA in January. The minimum wage and the surcharge rates change once a year: enter them in Stedica MexKPI Status & Data, and the plugin emails the site administrator a reminder from December 10 until they are entered.
-
Do I need a Banxico token?
-
Only for the euro exchange rate, Cetes, the S&P/BMV IPC and GDP. The other eight indicators work without one. The token is free; request it at https://www.banxico.org.mx/SieAPIRest/service/v1/token.
-
Does it work with my theme or page builder?
-
Yes. Use the shortcodes in a Shortcode block, a text widget or your builder’s shortcode element. The plugin was tested with Twenty Twenty-Five, Twenty Twenty-One, Astra, GeneratePress, Kadence and Hello Elementor with Elementor.
-
My theme already shows the page title. Can I hide the plugin’s title section?
-
Yes:
[mexkpi id="inpc" hero="0"]. -
Can I choose which indicators appear and in what order?
-
Yes, in Stedica MexKPI Settings. Hidden indicators keep updating, so you can show them again at any time.
-
Can I change the colors?
-
Yes, in Stedica MexKPI Settings Colors: twelve color pickers (title section, main color, accent, text, cards, borders and more) with a live preview. Developers can also set the CSS custom properties on the
.mexkpielement, such as--mexkpi-primary. -
Is there a paid version?
-
No. Stedica MexKPI is completely free.
-
No. The plugin stores no information about visitors and sets no cookies.
-
What happens when I delete the plugin?
-
Its data table, settings and scheduled tasks are removed. Pages you created, including the “Indicators” page, stay.
-
Is there a public API?
-
Yes, read-only:
/wp-json/mexkpi/v1/indicadoreslists the latest value of every indicator, and/wp-json/mexkpi/v1/indicadores/{id}/datos?formato=json|csvreturns its history.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Stedica MexKPI” is open source software. The following people have contributed to this plugin.
Contributors“Stedica MexKPI” has been translated into 1 locale. Thank you to the translators for their contributions.
Translate “Stedica MexKPI” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.5
- Fixed a false “no new data” warning for GDP: a quarter’s figure now counts as late only after INEGI’s usual publication delay.
- The late-data warning names the month or quarter of the latest value instead of its first day.
1.0.4
- The euro now reads “Euro exchange rate” (“Tipo de cambio Euro” in Spanish) on its card and in the sentence above the cards.
1.0.3
- The footer link in the admin screens points to Stedica’s wordpress.org profile.
1.0.2
- The Author URI now points to Stedica’s wordpress.org profile.
1.0.1
- The plugin no longer contacts any external service on activation. An administrator allows the connection to the official data sources in Status & Data, after reading what is sent and when, and can stop it at any time.
- New WP-CLI commands:
wp mexkpi connectandwp mexkpi disconnect. - Works on servers without the mbstring PHP extension.
- Fixed PHP 8.4 deprecation notices in the CSV import and download.
- Admin styles load only on the plugin’s own screens.
1.0.0
- Initial release.
