Display the live gold price in Canadian dollars through one free iframe, without an API key. Today's 24K price is unavailable per gram. The jewellery preview shows unavailable per gram at 18K, ready to copy into a page that accepts HTML.
Gold price previews for Canada
<iframe src="https://goldprice.dev/embed/xau?currency=CAD&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=CAD&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 | CAD |
| 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 Canada
Canada's gold page lists 24K, 18K, 14K and 10K values. The widget supports each of those karats when grams are selected. A Canadian jewellery site can choose the setting that matches an item's purity and show its gold content reference.
For coin comparisons, the Gold Maple Leaf has 99.99% purity, so use its fine gold content when comparing it with spot. The widget offers gram and troy ounce displays. A Canadian finance site can place the CAD card alongside its gold coverage.
The gold content behind the price
The gold spot price is the basis for this value, which reflects gold content only. Dealer premium, making charges and tax are excluded. A shop includes these costs in its selling price.
Alongside the price, the card displays the update time and gold's twenty four hour percentage change. It updates by itself and links to goldprice.dev. The price on the card and the figures written in the page text are both fifteen minutes late, as of unavailable.