Live gold prices on your website in two minutes
Cards, tables, tickers, charts, converters and karat tables that update themselves. Pick symbols, currency, unit, language and colours, then paste two lines of HTML.
No sign-up needed · 10 languages · light and dark · no API key on your page
Build your widget
Change anything on the left and the preview updates live. Copy the code when you like it.
<div data-metalapi-widget="custom" data-type="cards" data-symbols="XAU,XAG,XPT,XPD" data-base="USD" data-unit="troy_oz" data-theme="auto" data-accent="#d9a529" data-lang="en" data-show-change="1"></div>
<script src="https://metalapi.com/js/widget.js" async></script>Widgets without an account show hourly prices and a small “Prices by MetalAPI” link. Create a free account to save widgets and manage them; paid plans refresh faster and Pro and higher can remove the link.
Seven widgets, one line of code
Every widget follows your colours, speaks your visitors' language and resizes itself.
Made for real websites
Jewellers and bullion dealers
Show today's gold price per gram by karat in your local currency, next to your products.
News and finance publishers
Add a ticker to every page and charts to market articles — no development work.
E-commerce shops
Explain your prices with the live metal price they're based on, updated automatically.
Dashboards and intranets
Give teams live metal, energy and currency prices on internal pages and screens.
Everything you'd expect, nothing you have to maintain
Always up to date
Prices refresh by themselves at your plan's speed. No reloads, no cron jobs.
10 languages
English, Türkçe, Español, Deutsch, Français, Português, Русский, 中文, 日本語 and العربية, right-to-left included.
Any currency and unit
57 currencies, metals per gram, kilogram, ounce or troy ounce.
Your look
Light, dark or automatic theme with your accent colour, so it fits any design.
Responsive
Fits any width and sets its own height. Works on phones without extra code.
Light and private
One small script, no tracking and never your API key on the page.
Works wherever you can paste HTML
WordPress, Shopify, Wix, Webflow, Squarespace, Ghost, Blogger or your own code.
Free to embed, faster with a plan
Without an account
- Hourly prices
- Up to 8 symbols
- “Prices by MetalAPI” link
With a paid plan
- Fresher prices that follow your plan, refreshed as often as every 30 seconds
- Up to 20 symbols per widget
- Saved widgets with view statistics
- No link on Pro and higher
Questions
Is it really free?+
Yes. You can embed any widget without an account. It shows hourly prices and a small link to MetalAPI. Plans add faster updates and more options.
Do widgets use my API requests?+
No. Widget views don't count against your API quota, however many visitors you have.
Will a widget slow my site down?+
No. The script is small, loads asynchronously and renders the widget in a lightweight frame, so your page never waits for it.
Can I change a widget after I embed it?+
Saved widgets (with an account) can be edited in your dashboard and update everywhere they're embedded. Code-only widgets change when you change their code.
Which languages and currencies are supported?+
Ten languages and 57 currencies, plus precious metals, industrial metals, energy and crypto. Metals can be shown per gram, kilogram, ounce or troy ounce.
Add live prices to your site today
Build a widget above, or create a free account to save and manage your widgets.