MetalAPI
XAU3,653.50+2.40%XAG43.753+5.31%XPT1,333.25+3.14%XPD896.03+2.72%XCU5.6005+2.84%WTI83.08−2.24%BRENT90.84−0.91%EUR1.093700−0.31%GBP1.309600−0.08%JPY0.0062672−0.17%CHF1.196029−0.18%TRY0.019706+0.06%BTC59,921.50+1.01%ETH1,659.04+0.79%
Free price widgets

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.

Up to 8 symbols
XAUXAGXPTXPD
Live preview
Embed code
<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.

Price cardsBig, clear prices with daily change. Ideal for a homepage or sidebar.
Price tableMany symbols in one compact table, in any currency and unit.
TickerA scrolling strip of prices for headers and news sites.
Single priceOne price, large — for a product page, banner or landing page.
Price chartHistory from one month to five years with the latest price and change.
ConverterVisitors enter grams or ounces and see the value in your currency.
Karat tableGold per gram for 24K, 22K, 21K, 18K, 14K and 10K. Made for jewellers.

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.