GET https://metals-api.com/api/latest { "base": USD, "date": "2024-12-23", "rates": { "Silver(USDXAG)": 29.6529 "Gold(USDXAU)": 2616.3000 "Palladium(USDXPD)": 920.0000 "Platinum(USDXPT)": 933.1493 "Ruthenium(USDRUTH)": 463.0000 "Copper(USDXCU)": 0.2576 "Aluminum(USDALU)": 0.0790 "Nickel(USDNI)": 0.4707 "Zinc(USDZNC)": 0.0917 "Tin(USDTIN)": 0.8894 "Iridium(USDIRD)": 4300.0000 "Lead(USDLEAD)": 0.0605 "Iron Ore(USDIRON)": 0.0032 "LBMA Gold Am(USDLBXAUAM)": 2606.1500 "LBMA Gold Pm(USDLBXAUPM)": 2616.4500 "LBMA Silver(USDLBXAG)": 28.8000 "LBMA Platinum Am(USDLBXPTAM)": 922.0000 "LBMA Platinum Pm(USDLBXPTPM)": 930.0000 "LBMA Palladium Am(USDLBXPDAM)": 912.0000 "LBMA Palladium Pm(USDLBXPDPM)": 921.0000 "LME Aluminium(USDLME-ALU)": 0.0772 "LME Copper(USDLME-XCU)": 0.2735 "LME Zinc(USDLME-ZNC)": 0.0920 "LME Nickel(USDLME-NI)": 0.4655 "LME Lead(USDLME-LEAD)": 0.0605 "LME Tin(USDLME-TIN)": 0.8857 "Uranium(USDURANIUM)": 72.7500 "LME Steel Scrap CFR Turkey(USDSTEEL-SC)": 0.0107 "LME Steel Rebar FOB Turkey(USDSTEEL-RE)": 0.0176 "LME Steel HRC FOB China(USDSTEEL-HR)": 0.0148 "Bronze(USDBRONZE)": 0.1680 "Magnesium(USDMG)": 0.0839 "Osmium(USDOSMIUM)": 50831.8637 "Rhenium(USDRHENIUM)": 76.5467 "Tungsten(USDTUNGSTEN)": 0.0103 "Lithium(USDLITHIUM)": 0.2687 "Ahmedabad Gold(USDXAU-AHME)": 2560.6754 "Bangalore Gold(USDXAU-BANG)": 2560.6754 "Chennai Gold(USDXAU-CHEN)": 2564.0075 "Coimbatore Gold(USDXAU-COIM)": 2559.0094 "Delhi Gold(USDXAU-DELH)": 2564.0075 "Hyderabad Gold(USDXAU-HYDE)": 2559.0094 "Kochi Gold(USDXAU-KOCH)": 2559.0094 "Kolkata Gold(USDXAU-KOLK)": 2559.0094 "Mumbai Gold(USDXAU-MUMB)": 2559.0094 "Surat Gold(USDXAU-SURA)": 2560.6754 "Antimony(USDANTIMONY)": 0.5437 "Bitumen(USDBITUMEN)": 0.0151 "Gallium(USDGALLIUM)": 8.6417 "Manganese(USDMN)": 0.0001 "Neodymium(USDND)": 1.9342 "Tellurium(USDTE)": 2.5051 "Titanium(USDTITANIUM)": 44.5000 "Indium(USDINDIUM)": 9.8845 "Molybdenum(USDMO)": 1.9985 "Cobalt(USDLCO)": 0.7558 "Ahmedabad Silver(USDXAG-AHME)": 32.9949 "Bangalore Silver(USDXAG-BANG)": 32.9943 "Chennai Silver(USDXAG-CHEN)": 32.9943 "Coimbatore Silver(USDXAG-COIM)": 32.9943 "Delhi Silver(USDXAG-DELH)": 32.9943 "Hyderabad Silver(USDXAG-HYDE)": 32.9943 "Kochi Silver(USDXAG-KOCH)": 32.9943 "Kolkata Silver(USDXAG-KOLK)": 32.9943 "Mumbai Silver(USDXAG-MUMB)": 32.9943 "Surat Silver(USDXAG-SURA)": 32.9943 "iShares Gold Trust(USDIAU)": 49.5000 [170+ world Currencies, Metals and Cryptocurrencies] }, "unit":"per ounce" }
The Metals-API API comes with guaranteed availability, scalable volumes and responds within milliseconds.
Get your API keyOur principle at Metals-API.com — developers first. Detailed API Documentation, intuitive code examples and a straightforward API structure will allow you to implement the API in under 10 minutes.
Get your API keyMetals-API is used by thousands of developers, SMBs and large corporations every day. Rock-solid data sources and 6+ years of experience make our API the #1 resource for metals rates.
Get your API keyYour connection to the Metals-API API is encrypted using bank-grade 256-bit SSL Encryption.
Get your API keyCurrency data delivered by Metals-API is sourced from financial data providers and banks, including the European Central Bank.
Get your API keyOur world-class support team is happy to assist any time of the day and any day of the year. That's a promise.
Get your API KeyYou can always refer to our Documentation, but here are a few answers to common questions.
Metals-API started out as a simple, lightweight Open-Source API for current and historical precious metals rates published by the banks. The Metals-API API is capable of delivering real-time precious metals data via API at an accuracy of 2 decimal points and a frequency as high as every 60 seconds. Capabilities include delivering exchange rates for Precious Metals, converting single currencies, returning Time-Series data, fluctuation data and lowest and highest price of any day.
Please check our pricing page
Yes! When you choose an annual plan, you save the cost of 2 months, meaning you get 2 months free compared to paying monthly.
You can message us through our chat popup, or email us using our contact info
No, it is not possible to have both a monthly and an annual plan simultaneously.
Once you have purchased a monthly plan, you will only be able to purchase other monthly plans.
Similarly, if you have an annual plan, you will only be able to purchase other annual plans.
If you want to switch from a monthly plan to an annual plan or vice versa, you will need to cancel your current plan and purchase the new plan that you want.
Yes, we use LME as one of our data sources.
We offer a Carat Endpoint, all the values on this endpoint are per Carat (ct) unit. For other endpoints, please check the Supported Metals & Currencies where the unit for each metal is detailed. In order to get the price per gram, please have a look at the following example:
1 carat = 0.2 grams
Carat 24K: 12.907 per carat
12.907/0.2 = 64.535 g
Depending on the type of Subscription plan you choose when purchasing the Subscription, you will be invoiced in advance on a recurring and periodic basis (such as daily, weekly, monthly, or annually). Unless you or the company decide to terminate it, Your Subscription will automatically renew at the end of each period under the same terms.
Metals-API provides Gold (XAU) and Silver (XAG) rates for many cities in India. Please have a look at the Supported Metals & Currencies where you can find which cities are available.
We don’t offer fluctuation data for the same day. For the same day, you need to query us at 00:00 each day and save it on your site, then make one request each time the user visits the website. Fluctuation endpoint is available per date.
Yes, we are always online from Monday to Friday; 8am-5pm (EST). Send us a message via the contact form or email and our Customer Support team will be with you shortly. Urgent requests are usually handled within minutes.
Please have a look at our Refund Policy: https://metals-api.com/refund
Yes! But it has to be for a bigger bundle than what’s available.
You can manage all of this on your own from your dashboard!
All the metals rates you get using USD as a base currency need to be divided by 1. This means 1/value.
We return the values based on the base currency.
For example, for 1 USD the return is a number like 0.00049817281835633 for Gold (XAU).
To get the gold rate per ounce in USD: 1/0.00049817281835633 = 2007.33 USD.
It starts on the day that you subscribe to one of our paid plans.
1 - Register
2 - Look for the symbols that match your search
3 - Make an API call with them, placing your selected metals in symbol, and your preferred currency in base currency.
Yes! It’s deleted automatically. The information is handled by Stripe, we don’t store your credit or debit card data.
You can find them by going onto the Billing section (https://www.metals-api.com/payment-setting). There you will be able to download your invoices.
If you’re doing a call with a time-series endpoint, you can’t use today’s date as the end date. The date is updated on the time zone 0 UTC
The Soft Limit is an extra usage threshold, enabled by default, that allows additional calls. It’s capped at the sum of the API calls allowed in all active plans.
Yes, you may turn off the Soft Limit in your Metals-API account settings whenever you choose.
These invoices are created at the end of each billing cycle and include usage charges, if any, from the previous cycle.
If unpaid, Klazify Inc. reserves the right to suspend your account. No refunds will be provided for any subscription fees for periods affected by the suspension due to unpaid invoices.
Exchange rate data delivered by the Metals-API API is collected from over 15 reliable data sources, every minute. Sources include banks and financial data providers.
Metals API provides various London Metal Exchange (LME) prices. We offer the Settlement Price, which is closer to the offer price. For example, the symbol for copper is LME-XCU. Additionally, we provide 3 Month prices, indicated by symbols like XCU3M. Please note that this is just one example of the many LME symbols we support.
Metals API returns LME prices per troy ounce. To convert the price to per ton, you need to multiply the value by 32,150. Here’s an example request and conversion:
Example request:
{
"success": true,
"timestamp": 1721936340,
"date": "2024-07-25",
"base": "USD",
"rates": {
"LME-XCU": 3.6055511943479,
"USD": 1,
"USDLME-XCU": 0.2773501043523139
}
}
Conversion:
0.2773501043523139 * 32,150 = 8,916.80585493
This means the price per ton would be approximately 8,916.81 USD.
Currency and Metals conversion are supported using the same API endpoints and can be used to convert any amount from one currency to another, or from one metal to any metal and any currency to any metal.
The Metals-API API delivers EOD / End of Day historical exchange rates, which become available at 00:05am GMT for the previous day and are time stamped at one second before midnight.
All exchange rate data delivered by Metals-API is midpoint data. Midpoint rates are determined by calculating the average median rate of Bid and Ask at a certain time.
The Metals-API API is capable of delivering accurate exchange rate data for Precious Metals, in 170 world currencies, including Bitcoin and other major cryptocurrencies.
All the metals rates you get using USD as a base currency need to be divided by 1. This means 1/value.
We return the values based on the base currency.
For example, for 1 USD the return is a number like 0.00049817281835633 for Gold (XAU).
To get the gold rate per ounce in USD: 1/0.00049817281835633 = 2007.33 USD.
By default, it is (240 / minute) because we want to avoid attacks or abusers, but we can expand it for you in case you need more.
You can display the latest Metals (Gold, Silver, Platinum, etc) rates in the desired currencies (USD, GBP, CAD, etc) on your website using this WordPress plugin. The plugin includes comprehensive controls to display desired date metal rates as well as the latest, with the help of short codes with custom WP Editor.
Install your WordPress plugin here
The API has had an uptime of 99.99% throughout the last 12 months. You can review the current status anytime on the Status icon on the main menu.
Metals API is a Drupal module that consumes, caches and produces blocks to display precious metal prices from our API. In order to use the Metals API module, install the module following Standard Drupal module installation practices. More information is included in the README.txt file. Once the module is installed, navigate to the Metals API Integration Settings page from the Configuration -> Web Services menu item and paste your Metals API Key in the provided field. The module is configured to refresh the feed at a rate of once every 24 hours. You can adjust that to whatever rate you feel is necessary, provided that your Metals API Account allows for it.
Install your Metals API Drupal module here.