Metals API

Metals API

The API is capable of delivering real-time precious metals rate data.

API description

Metals-API is 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 the lowest and highest price of any day.

This API is used by thousands of developers, SMBs, and large corporations every day. Rock-solid data sources and 6+ years of experience make Metals-API the #1 resource for real-time precious metals rates.

 

Bank-Level Security

Your connection to the Metals-API API is encrypted using bank-grade 256-bit SSL Encryption.

Dedicated Support

Our world-class support team is happy to assist any time of the day and any day of the year. That's a promise.

Drupal Module & Wordpress Plugin

If you're looking for a way to insert precious metal pricing into your website without coding them, this may be the solution you're looking for.

Our principle at Metals-API — developers first. Detailed API Documentation, intuitive code examples and a straightforward API structure will allow you to implement the API in under 10 minutes.

Powerful, Reliable JSON API

The Metals-API API comes with guaranteed availability, scalable volumes and responds within milliseconds.

Extensive Documentation

An API Documentation packed with simple instructions and code examples enable quick implementation at any level.

Historical Data

Historical exchange rate data is available all the way back to 1st January, 2019.

Currency Conversion Endpoints

Aside from live data, Metals-API also comes with separate endpoints for single currency conversion, Time-Series and Gold Carats data.

Where is our data coming from?

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.

Which type of currency data is supported?

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.

Can I convert currencies and metals?

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.

Which precious metals and currencies are supported?

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.

Which type of historical rates does the API offer?

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.

How can I read USD current prices of metals?

All the metals rates you get using USD as a base currency need to be divided by 1. We return the values based on the base currency. For example, for 1 USD the return is a number like 0.000634 for Gold (XAU). To get the gold rate per troy ounce in USD: 1/0.000634= 1577.28 USD

API Documentation

Endpoints


The API comes with a constantly updated endpoint returning all available symbols.



                                                                            
GET https://zylalabs.com/api/6/metals+api/23/supported+symbols
                                                                            
                                                                        
Supported Symbols - Endpoint Features
Object Description

The latest API endpoint will return real-time exchange rate data updated every 60 seconds.



                                                                            
GET https://zylalabs.com/api/6/metals+api/24/latest+rates
                                                                            
                                                                        
Latest Rates - Endpoint Features
Object Description
base [Required] Enter the three-letter currency code or metal code of your preferred base currency.
symbols [Required] Enter a list of comma-separated currency codes or metal codes to limit output codes.

Historical rates are available for most symbols all the way back to the year of 2019. You can query the API for historical rates by appending a date (format YYYY-MM-DD) to the base URL.



                                                                            
GET https://zylalabs.com/api/6/metals+api/25/historical+rates
                                                                            
                                                                        
Historical Rates - Endpoint Features
Object Description
base [Required] Enter the three-letter currency code or metal code of your preferred base currency.
symbols [Required] Enter a list of comma-separated currency codes or metal codes to limit output codes.
date [Required]

Timeseries endpoint lets you query the API for daily historical rates between two dates of your choice.
This endpoint has a limitation of 365 days and only one symbol per request.



                                                                            
GET https://zylalabs.com/api/6/metals+api/26/time-series
                                                                            
                                                                        
Time-Series - Endpoint Features
Object Description
start_date [Required] The start date of your preferred timeframe.
end_date [Required] The end date of your preferred timeframe.
base [Required] Enter the three-letter currency code or metal code of your preferred base currency.
symbols [Required] Enter the three-letter currency code or metal code of your preferred base currency.

Using the fluctuation API endpoint, you will be able to retrieve information about how prices fluctuate from day to day.
This endpoint has a limitation of 365 days and only one symbol per request



                                                                            
GET https://zylalabs.com/api/6/metals+api/27/fluctuation
                                                                            
                                                                        
Fluctuation - Endpoint Features
Object Description
start_date [Required]
end_date [Required]
base [Required] Enter the three-letter currency code or metal code of your preferred base currency.
symbols [Required] Enter the three-letter currency code or metal code of your preferred base currency.

Allows you to query the API to get the open, high, low, and close price.
This endpoint has a limitation of one symbol per request.



                                                                            
GET https://zylalabs.com/api/6/metals+api/28/open-high-low-close+%28ohlc%29+price
                                                                            
                                                                        
Open/High/Low/Close (OHLC) Price - Endpoint Features
Object Description
base [Required]
symbols [Required]

Using the API karat endpoint, you will be able to retrieve information about gold rates per karat.



                                                                            
GET https://zylalabs.com/api/6/metals+api/29/carat
                                                                            
                                                                        
Carat - Endpoint Features
Object Description

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Metals API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🧙Free
$0.00 / Mo

  • 50 Requests / Month
⚡Pro
$49.99 / Mo

  • 200 Requests / Month
✨Plus
$199.99 / Mo

  • 2,500 Requests / Month
🌟Elite
$499.99 / Mo

  • 5,000 Requests / Month
🚀 Enterprise
Custom quote

Need more? We offer unlimited API calls, Request Quote


Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

API Provider: MV

Useful links:


Category: