Embed the live gold price in Chinese yuan with one free iframe, without needing an API key. Today's 24K gold price is unavailable per gram, while 22K gold is unavailable per gram. Each preview includes code you can paste into your website.
Gold price previews for China
<iframe src="https://goldprice.dev/embed/xau?currency=CNY&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=CNY&unit=gram&karat=22&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 | CNY |
| unit | oz, gram | gram |
| karat | 24, 22, 21, 20, 18, 16, 14, 10 | 24, 22 |
| theme | auto, light, dark | auto |
| locale | en, ar, es, id, ja, ko, vi, zh | en |
A gold widget for China
The CNY gold page for China shows 24K, 22K and 18K prices. A jewellery site can select a matching gram setting to display the gold content reference in Chinese yuan, alongside the shop's own selling prices.
In mainland China, the liang, often written as tael in English, weighs 50 g. Its value is the gram price times 50 at the same purity. The widget itself shows grams and troy ounces only.
What this gold value covers
The value comes from the gold spot price and reflects gold content only. It excludes dealer premium, making charges and tax, which a shop's selling price includes.
The card shows the update time and gold's twenty four hour percentage change. It refreshes by itself and links to goldprice.dev. Both the card's price and the figures written in this page's text are fifteen minutes late, as of unavailable.