Skip to content

How To Get Cobalt Rates In JSON Format Using An API

Do you want to get cobal rates in json format? Keep reading, we show you how to ge it.

In 2020, the total volume of cobalt mined around the world will be 140,000 metric tons. In 2018, 148,000 metric tons of cobalt were produced. This demonstrates that cobalt is one of the most valuable metals since it is in high demand worldwide and is utilized in a variety of industries. 

Automobile airbags, catalysts for the petroleum and chemical industries, cemented carbides (also known as hard metals) and diamond tools, corrosion- and wear-resistant alloys, drying agents for paints, varnishes, and inks, dyes and pigments, ground coats for porcelain enamels, and high-speed machining are all applications for this metal.

If you want to invest in this industry, you should stay updated with the latest price of cobalt.  We recommend using an API because you will obtain the prices of any metal in real-time.

What Is An Api?

An application programming interface (API). This technology collects data from several sources and from a specific place before returning it to the user who requested it.

How To Get Cobalt Rates In JSON Format Using An API

A programming interface (API) is a way for computers or computer programs to communicate with one another. It’s a form of software interface that helps other programs by providing a service.

It can be tough to find a transparent pricing website, application, or program that gives data in real-time. You should utilize Metals-API, which is the best software that uses an API and is the most accurate because it collects data from over 15 trustworthy data sources, including banks and financial institutions.

Cobalt, gold, bronze, and other metal prices are updated on a regular basis. Spreadsheets, websites, mobile apps, and other corporate applications can all benefit from this information.

How To Get Cobalt Rates In JSON Format Using An API

It is hard to receive this type of cash via the internet, despite the fact that it is available in over 170 currencies, including bitcoin, litecoin, and other altcoins. Using the Metals-API, you may convert any quantity between different currencies.


To obtain the prices in JSON format, you have to do:

  1. Go to www.metals-API.com to get your API key.
  2. Look for the lead symbol and currency sign you want to use in the website’s list.
  3. Add metal and money to the list with these symbols, then make the API call.
  4. As a programming language, you can use JSON or PHP.

This is how the API will appear:

{"success":true,"timestamp":1639676400,"date":"2021-12-16","base":"USD","rates":{"LCO":0.46217237426917,"USD":1}}

Also published on Medium.

Published inAppsTechnology
%d bloggers like this: