Gold price widget for WordPress
A free live gold and silver price block for any WordPress site — no plugin required, although an official one exists.
gold spot price · EUR / troy oz
€103.61 / gram
Source timestamp: 2026-11-21 20:15 UTC
Price data: MetalflowAPI · Indicative spot, not a dealer offer. *Available feed comparison; see methodology.
Live preview
Paste anywhere in your HTML. Works on every CMS that allows iframes.
<iframe src="/embed?metals=gold%2Csilver¤cy=EUR&unit=g&theme=light&accent=B8860B&style=card&size=m&lang=en"
width="320" height="174"
loading="lazy" style="border:0" scrolling="no"
title="Live gold and silver prices"></iframe>
<a href="https://metalflowapi.com/gold-price-api/eur" target="_blank" rel="noopener">Prices by MetalflowAPI</a>Two minutes, three steps
Configure the widget above — metals, currency, gram or ounce pricing, light or dark theme and your brand colour — then open the WordPress tab and copy the snippet. In the WordPress editor, click the plus button, search for Custom HTML, paste, and preview. That is the whole installation. Because the embed is a plain iframe, theme styling stays separate from the widget. Check the finished page after changes to WordPress, your security policy or your editor permissions.
For sidebars and footers, go to Appearance → Widgets and drop a Custom HTML widget into the area you want. Narrow columns look best with the ticker layout at size S; a sidebar in a jewellery shop usually looks best with the card layout showing gold and silver per gram.
Page builders and classic themes
Elementor users can use the HTML widget, Divi users the Code module, Beaver Builder users the HTML module, and WPBakery users the Raw HTML element. On classic themes you can also paste the snippet straight into a template file. If your site uses a caching plugin such as WP Rocket or LiteSpeed Cache, the widget is loaded in its own frame and refreshes itself independently of your page cache, so the surrounding HTML can remain cached independently. Check the source timestamp because upstream outages can still produce stale or unavailable quotes.
Performance notes
The frame is a few kilobytes and ships no fonts, no jQuery and no tracking. It is marked as lazily loaded, so it only fetches once it approaches the viewport, reducing competing requests for the initial page render. Measure the finished site rather than assuming any embed has zero performance cost. Prices are rendered server-side, which means the number is present in the frame's initial HTML rather than appearing after a client-side request. If you want full control over the markup instead, use the MetalflowAPI REST API directly from a small plugin or a server-side snippet.
How the EUR gold price per gram is calculated
Gold is quoted per troy ounce, which weighs exactly 31.1034768 grams. Right now one troy ounce of fine gold costs €3,223, so dividing by 31.1034768 gives €103.61 per gram of pure gold. A kilogram bar is simply the gram price times 1,000, about €103,613. MetalflowAPI quotes EUR directly, so no currency conversion is applied.
Gold price per gram by karat in EUR
Jewellery is rarely pure. The karat number tells you how many parts out of 24 are gold, and the hallmark says the same in thousandths. To price a piece, multiply the pure gold gram price by the purity factor:
| Purity | Factor | Per gram (EUR) |
|---|---|---|
| 24k (999) | 0.999 | €103.51 |
| 22k (916) | 0.916 | €94.91 |
| 21k (875) | 0.875 | €90.66 |
| 18k (750) | 0.750 | €77.71 |
| 14k (585) | 0.585 | €60.61 |
| 10k (417) | 0.417 | €43.21 |
| 9k (375) | 0.375 | €38.86 |
Worked examples with today's price
- A 5 g 18k wedding band contains 5 × 0.750 = 3.75 g of fine gold, worth about €388.55.
- A 20 g 14k chain contains 11.7 g of fine gold, worth about €1,212.
- A 10 g 9k bracelet holds 3.75 g of fine gold, about €388.55.
- A 1 oz 24k bullion coin is worth about €3,223 before dealer premiums.
Tips before you buy or sell gold
- Weigh pieces on a gram scale and subtract stones, springs and clasps made of other metals; they add weight but no gold value.
- Check the hallmark (375, 417, 585, 750, 916, 999). Unmarked items are usually acid- or XRF-tested before a buyer makes an offer.
- Dealers pay less than the melt value shown here, because the offer has to cover refining, assaying and their margin. Compare several quotes.
- The market moves all day: note the update time on the widget and re-check before you visit a shop or accept an offer.
Try the scrap gold calculator for your own items, or read our methodology and data source.
Need raw data?
Build your own dashboards, pricing tools or checkout logic with the MetalflowAPI gold price API — live and historical prices for gold, silver, platinum and palladium in 10+ currencies.
Frequently asked questions
- How do I add a gold price widget to WordPress?
- Edit your page, add a Custom HTML block, paste the iframe code generated on this page and publish. No plugin is required.
- Can I put the widget in a sidebar or footer?
- Yes. In Appearance → Widgets add a Custom HTML widget to any widget area and paste the same code. The ticker layout is a good fit for narrow footers.
- Does it work with Elementor, Divi or block themes?
- Yes. Use Elementor's HTML widget, Divi's Code module, or a Custom HTML block in the site editor. The embed is a standard iframe.
- Is there an official WordPress plugin?
- Yes, MetalflowAPI publishes a plugin at metalflowapi.com/wordpress if you would rather use a shortcode than paste HTML.
- How is the gold price per gram calculated?
- The live price per troy ounce is divided by 31.1034768, the number of grams in one troy ounce. The kilogram price is the gram price multiplied by 1,000.
- How do I work out the value of 18k or 14k gold?
- Multiply the weight in grams by the 24k price per gram and by the purity factor: 0.750 for 18k, 0.585 for 14k and 0.375 for 9k. The scrap gold calculator does this for you.
- Is the price shown what a dealer will pay me?
- No. It is the market value of the pure gold content. Dealers and scrap buyers pay less because their offer has to cover refining, assaying and their margin, so compare several quotes.