Free Metal Price Widgets and Charts

Want to add our charts or pricing tables to your website? It's simple: Simply grab the bits of pre-configured code we've listed below, or follow the instructions to create your own custom widgets.

They're Fully Responsive

Our Metal Price Widgets are fully responsive meaning that they will fit to the full size of whatever container you put them in. Along with their neutral styling, this gives website owners maximum flexibility in many use cases.

View some examples here: Widget Example Page

More heavily customized implementations are available for a fee. Please contact us for details.

Build Your Own Widgets!

IMPORTANT! Our widgets use pym.js for automatic iframe resizing. This code need only be added once at the end of your page just before the </body> tag, regardless of how many widgets are place on that page. Without it, the widgets will not size properly and your data may be cut-off.

Place the following code once just before the </body> tag on any pages where our widgets or charts are being used:

<script type="text/javascript" src="//dailymetalprice.com/js/pym.min.js"></script>

Pricing Table Widget

The pricing table widget uses two variables, which may be placed in the url parameters to construct the desired table.

  • c is a comma seperated commodity list. The two-letter chemical element symbols are used for each metal. Invalid or missing values will default to a short list of the more popular metals listed on this site.
    • Base Metals: al (aluminum), cu (copper), fe (iron ore), pb (lead), ni (nickel), zn (zinc)
    • Secondary Metals: co (cobalt), mo (molybdenum), sn (tin)
    • Precious Metals: au (gold), ag (silver)
    • Platinum Group Metals: pt (platinum), pd (palladium), rhodium (rh), ruthenium (ru), ir (iridium)
  • x is the 3 digit currency code. The currencies must be from those listed here and invalid or missing values will default to USD
  • u is the unit code. Available units are: lb (pound), kg (kilogram), g (gram), oz (troy ounce), mt (metric ton or tonne), and t (short ton or ton). Invalid or missing values will default to the preferred units: lbs, for base metals, troy oz. for precious metals and PGMs, metric tons for iron ore.

Example Metal Price Code

Popular Metals in USD (Default)

<div id="DMP_1" data-pym-src="//dailymetalprice.com/prices.php"></div>

<script type="text/javascript" src="//dailymetalprice.com/js/pym.min.js"></script>

Base Metals in EUR (Euro)

<div id="DMP_2" data-pym-src="//dailymetalprice.com/prices.php?c=al,cu,fe,pb,ni,zn&x=EUR"></div>

<script type="text/javascript" src="//dailymetalprice.com/js/pym.min.js"></script>

Base Metals Plus Gold and Silver in CAD (Canadian Dollar)

<div id="DMP_3" data-pym-src="//dailymetalprice.com/prices.php?c=al,cu,fe,pb,ni,zn,au,ag&x=CAD"></div>

<script type="text/javascript" src="//dailymetalprice.com/js/pym.min.js"></script>

Platinum Group Metals (Default USD)

<div id="DMP_4" data-pym-src="//dailymetalprice.com/prices.php?c=pt,pd,rh,ru,ir"></div>

<script type="text/javascript" src="//dailymetalprice.com/js/pym.min.js"></script>

Platinum Only (Default USD) in grams (g)

<div id="DMP_5" data-pym-src="//dailymetalprice.com/prices.php?c=pt&u=g"></div>

<script type="text/javascript" src="//dailymetalprice.com/js/pym.min.js"></script>

Copper, Lead and Zinc in GBP (£) and kg (kilograms)

<div id="DMP_6" data-pym-src="//dailymetalprice.com/prices.php?c=cu,pb,zn&x=GBP&u=kg"></div>

<script type="text/javascript" src="//dailymetalprice.com/js/pym.min.js"></script>

IMPORTANT: The div id (eg. DMP_1) can be anything, but it should be unique for each div on a page.

Metal Price Charts

The charting widget uses three variables, which may be placed in the url parameters to construct the desired chart.

  • c is the commodity to be charted. As above, the two-letter chemical element symbols are used for each metal. Invalid or missing values will default to cu (copper).
  • u is the unit code. Available units are: lb (pound), kg (kilogram), g (gram), oz (troy ounce), mt (metric ton or tonne), and t (short ton or ton). Invalid or missing values will default to the preferred units: lbs, for base metals, troy oz. for precious metals and PGMs, metric tons for iron ore.
  • d is the number of data days to show. Since market data is only available on business days the numbers are adjusted (roughly) to the number of business days in a given calendar interval. (eg. 5 = One Week, 20 = 1 Month). Invalid or missing values will default to one month (20). Valid values include:
    • 0 (all available data)
    • 5 (one week)
    • 10 (two weeks)
    • 20 (one month)
    • 60 (three months)
    • 120 (six months)
    • 240 (1 year)
    • 480 (2 years)
    • 1200 (5 years)
    • 2400 (10 years).

Example Metal Price Chart Code

Copper (lbs) One Month (Default)

<div id="DMPC_1" data-pym-src="//dailymetalprice.com/charts.php"></div>

<script type="text/javascript" src="//dailymetalprice.com/js/pym.min.js"></script>

Gold (oz) One Year

<div id="DMPC_2" data-pym-src="//dailymetalprice.com/charts.php?c=au&d=240"></div>

<script type="text/javascript" src="//dailymetalprice.com/js/pym.min.js"></script>

Silver (oz) Max

<div id="DMPC_3" data-pym-src="//dailymetalprice.com/charts.php?c=ag&d=0"></div>

<script type="text/javascript" src="//dailymetalprice.com/js/pym.min.js"></script>

Colbalt (mt) 5 Years

<div id="DMPC_4" data-pym-src="//dailymetalprice.com/charts.php?c=co&u=mt&d=1200"></div>

<script type="text/javascript" src="//dailymetalprice.com/js/pym.min.js"></script>

IMPORTANT: The id (eg. DMPC_1) can be anything, but it should be unique for each div on a page.

Troubleshooting

Have you remembered to add the pym.js script to the end of your page? If you put it in the head it will not work.

Have you assigned unique id's to each widget container on the page?

If you are getting a 404 Not Found Error in place of your widget, have you checked that the data-pym-src url is valid? You can test it in your browser to be sure.

If you're still having problems after checking these items, please feel free to get in touch.

Spot Prices Updated Daily

Updated daily. Spot prices on 16 base and precious metals PLUS charts and historical prices going back as far as January 2000.

NEW Show metal prices in your own currency courtesy of Foreign Exchange Resource

Advertisement

Metal Price Charts


Daily Metal Prices

MetalPrice
Aluminum$1.0433
Copper$3.0855
Gold$1296.35
Iron Ore$66.360
Lead$1.1347
Nickel$6.5862
Palladium$986.00
Platinum$917.00
Silver$16.510
Zinc$1.3703