Put the live gold price in Thai baht on your website through one free iframe, without an API key. Today's 24K value is unavailable per gram; at 18K it is unavailable per gram. The widget refreshes itself.
Gold price previews for Thailand
<iframe src="https://goldprice.dev/embed/xau?currency=THB&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=THB&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 | THB |
| 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 Thailand
Thailand's gold page lists 24K and 18K per gram. The widget offers 24K, 22K, 21K, 20K, 18K, 16K, 14K and 10K. Usual Thai bar gold is 96.5% pure, about 23K, which the widget does not offer. The 18K preview is a gold content reference for 18K, not a Thai bar gold price.
A Thai shop or finance page can show the widget in grams and troy ounces. Baht weight is a local gold unit, separate from the baht currency. Work out a baht weight value from the gram price, allowing for the gold's purity.
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.