Place the live gold price in Swiss francs on your website with one free iframe and no API key. Today's pure gold reference is unavailable per gram for 24K. At 18K, the jewellery preview displays unavailable per gram and includes code to copy.
Gold price previews for Switzerland
<iframe src="https://goldprice.dev/embed/xau?currency=CHF&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=CHF&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 | CHF |
| 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 Switzerland
Switzerland's gold page provides 24K and 18K values in CHF. Four nines describes 99.99% purity, a useful distinction when comparing gold bars with the pure gold reference. A jewellery page can instead show the 18K gram widget for that gold content.
A Vreneli has 90% purity, so its spot comparison depends on gold content, not total coin weight alone. The card can display grams or troy ounces. Swiss coin and finance pages can use the CHF reference alongside their own explanations.
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.