Fetch Brass (BRASS) prices with this simple API
Introduction
In the ever-evolving landscape of metal markets, the demand for real-time data and analytics has never been higher. One of the most intriguing metals in this domain is Brass (BRASS), a versatile alloy that plays a crucial role in various industries, from construction to electronics. With the advent of advanced technologies and digital transformation, accessing accurate and timely Brass prices has become essential for businesses and developers alike. This is where the Metals-API comes into play, providing a robust platform for fetching real-time Brass prices and other metal data through a simple API.
Metals-API Information
About Brass (BRASS)
Brass, primarily composed of copper and zinc, is renowned for its durability, corrosion resistance, and aesthetic appeal. As industries increasingly embrace digital transformation, the integration of smart technology and data analytics into metal markets is reshaping how businesses operate. The ability to access real-time Brass prices through APIs empowers developers to create innovative applications that can analyze market trends, forecast prices, and optimize supply chains.
Technological advancements have paved the way for enhanced data analytics, enabling businesses to make informed decisions based on real-time insights. The future of Brass and other metals lies in the seamless integration of smart technologies that can provide predictive analytics, automate processes, and enhance operational efficiency. As we explore the capabilities of the Metals-API, we will uncover how it can transform the way we interact with metal markets.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical metal prices, including Brass. This API is built with innovation in mind, allowing users to fetch data effortlessly and integrate it into their applications. With a focus on technological advancement, the Metals-API offers a wide range of endpoints that cater to various needs, from retrieving the latest rates to accessing historical data.
By leveraging the Metals-API, developers can build next-generation applications that harness the power of real-time metals data. Whether you're creating a financial dashboard, a trading platform, or an analytics tool, the Metals-API provides the necessary resources to enhance your application's capabilities. The API's comprehensive documentation ensures that developers can easily navigate its features and implement them effectively.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to serve specific functionalities. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for Brass and other metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates for Brass dating back to 2019. By appending a specific date to your query, you can retrieve past prices, allowing for in-depth market analysis and trend identification.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for Brass, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts from one metal to another or to/from USD. This is particularly useful for businesses operating in multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling detailed analysis of price movements over time.
- Fluctuation Endpoint: Track how Brass prices fluctuate on a day-to-day basis, providing valuable insights into market volatility and trends.
- Carat Endpoint: Retrieve information about Gold rates by Carat, which can be useful for applications focused on precious metals.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for Brass over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows you to get the open, high, low, and close prices for Brass, essential for traders and analysts.
- Historical LME Endpoint: Access historical rates for LME symbols, dating back to 2008, providing a comprehensive view of market trends.
- API Key: Your unique API key is required to access the Metals-API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: With 14 different API endpoints, the Metals-API offers diverse functionalities to cater to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring you have access to the latest symbols.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of responses from various endpoints, showcasing the data structure and information provided.
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1764835246,
"base": "USD",
"date": "2025-12-04",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744,
"XCU": 0.294118,
"XAL": 0.434783,
"XNI": 0.142857,
"XZN": 0.344828
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1764748846,
"base": "USD",
"date": "2025-12-03",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2025-11-27",
"end_date": "2025-12-04",
"base": "USD",
"rates": {
"2025-11-27": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-29": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-04": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1764835246,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-27",
"end_date": "2025-12-04",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
},
"XAG": {
"start_rate": 0.03825,
"end_rate": 0.03815,
"change": -0.0001,
"change_pct": -0.26
},
"XPT": {
"start_rate": 0.000915,
"end_rate": 0.000912,
"change": -3.0e-6,
"change_pct": -0.33
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1764835246,
"base": "USD",
"date": "2025-12-04",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
},
"XAG": {
"open": 0.03825,
"high": 0.0383,
"low": 0.0381,
"close": 0.03815
},
"XPT": {
"open": 0.000915,
"high": 0.000918,
"low": 0.00091,
"close": 0.000912
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1764835246,
"base": "USD",
"date": "2025-12-04",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
},
"XPT": {
"bid": 0.000911,
"ask": 0.000913,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Conclusion
The Metals-API offers a comprehensive solution for developers looking to access real-time Brass prices and other metal data. By leveraging its various endpoints, businesses can gain valuable insights into market trends, optimize their operations, and enhance their applications with real-time data. The integration of smart technologies and data analytics into metal markets is transforming how industries operate, and the Metals-API is at the forefront of this revolution.
As we move towards a more data-driven future, the ability to access accurate and timely information will be paramount. The Metals-API not only provides the tools necessary for developers to build innovative applications but also empowers businesses to make informed decisions based on real-time insights. For more information on how to get started, visit the Metals-API Documentation and explore the possibilities that await in the world of metal markets.