HUP – Indicadores Económicos (Chile)

Description

Data is fetched in real time from the public mindicador.cl API — a free service that exposes official economic indicators for Chile (sourced from the Central Bank and other entities). No registration or API key is required.

HUP – Indicadores Económicos (Chile) queries the mindicador.cl API automatically and outputs the values through the [hupind_indicadores] shortcode, ready to use in headers, footers, sidebars, Bricks Builder, Elementor and any area of your site.

This project is independent and is not affiliated with any government entity. Data is obtained from the public mindicador.cl API (https://mindicador.cl). The plugin only receives data; it never sends any information to the service.

Main features:

  • Real-time data from the public mindicador.cl API (no registration or API key)
  • 12 indicators: UF, UTM, Dollar, Euro, IPC, IVP, IMACEC, TPM, Copper Pound, Unemployment Rate, Bitcoin and Exchange Dollar
  • [hupind_indicadores] shortcode with multiple configurable parameters
  • Admin screen under Tools — indicator selection and shortcode builder on a single page
  • Automatic format per indicator type: $ (CLP), US$ (USD) or % (percentage)
  • Change versus the previous day: % for prices/currencies, percentage points (pp) for rates and indices
  • ▲ green / ▼ red arrows for positive/negative change
  • Horizontal or vertical layout, configurable separator
  • Date format selector (short, long, numeric)
  • Chilean number format (comma decimal, period thousands separator)
  • Configurable cache with WordPress Transients (1h / 6h / 12h / 24h)
  • Automatic fallback to the last successful value if the mindicador.cl API is unavailable
  • No CSS on the frontend — style it with BEM classes from Bricks or Elementor
  • No WooCommerce or external plugin dependencies

Example shortcode:

[hupind_indicadores show="uf,dolar,euro" layout="horizontal" show_variation="true" show_date="true"]

BEM classes available for styling:

  • .hupind-indicadores — main wrapper
  • .hupind-indicadores__item — each indicator
  • .hupind-indicadores__item--{id} — per-indicator modifier (–uf, –dolar, etc.)
  • .hupind-indicadores__label — indicator name
  • .hupind-indicadores__value — formatted value
  • .hupind-indicadores__variation — change (with –up / –down modifiers)
  • .hupind-indicadores__divider — separator between items
  • .hupind-indicadores__updated — update date
  • .hupind-indicadores--error / .hupind-indicadores__error — notice shown when no data is available yet

External services

This plugin connects to the public mindicador.cl API to retrieve the current values of Chilean economic indicators.

  • Service: mindicador.cl — https://mindicador.cl
  • What is sent: nothing. The plugin only performs read (GET) requests to retrieve indicator values; no personal or site data is transmitted.
  • When: when the shortcode is rendered and the cache has expired (cache duration is configurable, default 1 hour).
  • Terms / privacy: https://mindicador.cl

Screenshots

Installation

  1. Upload the hup-indicadores-economicos-chile folder to the /wp-content/plugins/ directory.
  2. Activate the plugin from the Plugins menu in WordPress.
  3. Go to Tools HUP Indicadores in the WordPress admin.
  4. Enable the indicators you want to show and adjust the decimals.
  5. Copy the automatically generated shortcode and paste it wherever you need it.

FAQ

Do I need WooCommerce or another plugin to use this?

No. The plugin is fully independent. It works without WooCommerce or any other external plugin.

Is the data in real time?

Data is fetched from the public mindicador.cl API. The refresh frequency depends on the configured cache duration (1 hour by default). Indicators such as the UF are updated daily.

Can I style the shortcode?

Yes. The plugin does not load any CSS on the frontend on purpose. Use the BEM classes documented in the “CSS classes” accordion of the admin screen to apply your styles from Bricks Builder, Elementor or your own stylesheet. The change colors (green/red) can be changed by defining the CSS variables --hupind-color-up and --hupind-color-down on .hupind-indicadores.

What happens if the mindicador.cl API does not respond?

The plugin keeps a permanent fallback transient with the last successful value. Once at least one request has succeeded, that value is served automatically if the API later fails, so the frontend never goes blank. Only on a brand-new install, before the first successful request and while the API is unreachable, is there no value to show; in that case the shortcode outputs a short notice that you can customize with the error_text attribute (set error_text="" to output nothing).

Can I show only some indicators?

Yes, in two ways: enabling/disabling them from the admin screen, or using the show parameter directly in the shortcode: [hupind_indicadores show="uf,dolar,euro"].

How many decimals are shown?

Configurable per indicator from the admin screen (0 to 4 decimals).

Reviews

There are no reviews for this plugin.

Contributors & Developers

“HUP – Indicadores Económicos (Chile)” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • First public release.
  • 12 indicators from the public mindicador.cl API: UF, UTM, Dollar, Euro, IPC, IVP, IMACEC, TPM, Copper Pound, Unemployment Rate, Bitcoin, Exchange Dollar.
  • [hupind_indicadores] shortcode with parameters: show, layout, separator, class, show_date, show_variation, format, date_format, error_text.
  • Admin screen under Tools: indicator selection and live shortcode builder on a single page, plus a Cache screen.
  • Automatic format per indicator type: $ (CLP), US$ (USD) or % (percentage); change in % for prices/currencies and in percentage points (pp) for rates and indices.
  • ▲ green / ▼ red arrows, with colors overridable via CSS variables.
  • Horizontal or vertical layout, configurable separator and date format selector.
  • Chilean number format (comma decimal, period thousands separator).
  • Non-blocking frontend: values are served from cache/fallback and refreshed in the background via WP-Cron, with automatic fallback if the API is unavailable.
  • Customizable notice (error_text) shown only on a fresh install when no value is available yet and the API is unreachable.
  • No CSS on the frontend — BEM design ready to style. Compatible with Bricks Builder and Elementor.