Free gold price widgetsWidget

Gold price widget for Mexico

Add a gold spot price reference in Mexican pesos to your site

27 Oct 2026 · 2 min read

Show the live gold price in Mexican pesos using one iframe and no API key. Today's reference is unavailable per gram for 24K gold and unavailable per gram at 18K. This free widget refreshes automatically and displays the quote time.

24K gold per gram in MXN
18K gold per gram in MXN

Gold price previews for Mexico

Embed code for 24K
<iframe src="https://goldprice.dev/embed/xau?currency=MXN&unit=gram&karat=24&theme=auto&locale=en" title="Gold price" width="360" height="190" loading="lazy" style="border:0;width:100%;max-width:360px" referrerpolicy="strict-origin-when-cross-origin"></iframe>
Embed code for 18K
<iframe src="https://goldprice.dev/embed/xau?currency=MXN&unit=gram&karat=18&theme=auto&locale=en" title="Gold price" width="360" height="190" loading="lazy" style="border:0;width:100%;max-width:360px" referrerpolicy="strict-origin-when-cross-origin"></iframe>

Add the widget to your website

Copy the iframe code below either preview. Paste it into a custom HTML block on your page, then save your changes.

Open your page on a phone and check that the card fits. It stays within 360 pixels and fits narrow screens. The price refreshes by itself.

Widget settings

Each setting is a query parameter in the iframe address. Use the widget builder to choose your settings and generate the code.

SettingOptionsUsed on this page
currencyUSD, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, ILS, INR, ISK, JPY, KRW, MXN, MYR, NOK, NZD, PHP, PLN, RON, SEK, SGD, THB, TRY, ZARMXN
unitoz, gramgram
karat24, 22, 21, 20, 18, 16, 14, 1024, 18
themeauto, light, darkauto
localeen, ar, es, id, ja, ko, vi, zhen

A gold widget for Mexico

Mexico's gold page covers 24K, 18K and 14K values in pesos. For coins such as the Centenario and Libertad, fine gold weight determines the gold content estimate. The widget displays grams and troy ounces, letting a site choose either unit for its reference.

A Mexican finance page can use an MXN widget beside coin coverage and explain how fine gold weight relates to spot value. A jewellery shop can choose a gram karat setting. Coin premiums and jewellery making charges sit outside the displayed gold content value, as does tax.

Using this price as a reference

Use this value as a reference for gold content only. It comes from the gold spot price and leaves out dealer premium, making charges and tax. These costs are included in a shop's selling price.

The card refreshes on its own, links to goldprice.dev and shows both the update time and gold's twenty four hour percentage change. Its price and the figures in this page's text are both fifteen minutes late, as of unavailable.

Questions

How can I add a gold price widget in Mexican pesos?

In the builder at /widgets/gold-price, pick MXN and select grams or troy ounces. Choose Spanish text if it suits your page, then paste the iframe into HTML. There is no sign-up or API key.

Does the MXN gold price match a shop's selling price?

The MXN widget gives a spot estimate for gold content. Jewellery prices add making charges, premium and tax, while a coin's selling price includes premium and tax.

Can I use the widget to value a Centenario or Libertad?

A Centenario or Libertad can be compared with the MXN spot price using its fine gold weight. The result estimates gold content only. A coin's selling price also includes premium and tax.

Keep reading

Start with a free API key

5,000 requests a month on the free plan. No credit card.

Get a free key