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.
Gold price previews for Mexico
<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><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.
| Setting | Options | Used on this page |
|---|---|---|
| currency | USD, 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, ZAR | MXN |
| unit | oz, gram | gram |
| karat | 24, 22, 21, 20, 18, 16, 14, 10 | 24, 18 |
| theme | auto, light, dark | auto |
| locale | en, ar, es, id, ja, ko, vi, zh | en |
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.