Skip to content

Get Brass Rates Using JSON API

Knowing that brass is one of the most important metals in the music industry, then you probably understand how useful it can be to invest in it. However, to do that, you need to stay updated on the prices of that product all the time, here we explain to you how to do it with an API.

Brass is a copper-zinc alloy with variable proportions that may be used to create different mechanical, electrical, and chemical characteristics. It is a substitutional alloy, which means that atoms from the two components can swap places within the same crystal structure.

Brass has long been a popular decorative material due to its brilliant, gold-like appearance; it is commonly used for drawer handles and doorknobs. It has also been frequently utilized to produce cutlery and is widely used in musical instruments such as horns and bells. It is also utilized as a copper alternative in the manufacture of costume jewelry, fashion jewelry, and other imitation jewelry.

Get Brass Rates Using JSON API

You can see that brass is used in a lot of industries and is part of our everyday life, even if we don’t notice. With that in mind, we believe that investing in this kind of business is an amazing idea right now since it’s growing more and more every year. Nevertheless, to do this, you need to stay updated on brass rates almost all the time, so you can understand the business better and gain more profits.

This sounds hard and exhausting, however, you can gain a lot of time by using an API. This is an interface that connects two programs so they can interact with each other. When you ask the API for something, you’ll get an immediate response. In this case, when you send a request (or make an API call) for brass rates in a specific currency, the software can provide you with it instantly.

How Can You Get An API?

To get this technology, you need to use a software that allows you to make API calls. There are a few online that can help you, but, to explain better how they work, we will use Metals-API, one of the most popular and complete ones.

This is an online API that can give you information about precious metals and has a large list of currencies to adapt to your needs. So, to get brass rates you need to:

1. Enter www.metals-API.com and sign in to get your own API key. 

2. Search for the symbols of brass and the currency you wish to obtain the price in.

3. Use these symbols to find the metal and currency in the list. Once you choose them, make the API call.

4. The website will return you an API in various programming languages that you can adapt and use however you like.

And just like that, you’ll get the information you were looking for. The website will provide you with it in JavaScript Object Notation (JSON) format, which is used to exchange data between online clients and web servers. If this is the programming language you were looking for to get the rates, then the answer will look something like this:

{
"success": true,
"timestamp": 1519296206,
"base": "EUR",
"date": "2018-09-10",
"rates": {
"AUD": 1.566015,
"CAD": 1.560132,
"CHF": 1.154727,
"CNY": 7.827874,
"GBP": 0.882047,
"JPY": 132.360679,
"USD": 1.23396,
[...]
}
} 

Where Does This Information Come From?

Get Brass Rates Using JSON API

Metals-API receives data from over 15 trustworthy data sources every minute. Among them are banks and financial data suppliers. As a consequence, you will obtain extremely accurate pricing. Metals-API determines the current market value of the world’s most valuable metals, such as gold, silver, aluminum, platinum, and palladium. The data from the website may be used in a variety of locations, including spreadsheets, other websites, and mobile apps.

What Precious Metals And Currencies Are Supported?

The Metals-API API can provide precise exchange rate data for precious metals as well as 170 global currencies, including Bitcoin and other major cryptocurrencies.


Also published on Medium.

Published inAppsTechnology
%d bloggers like this: