Access Bangalore Gold 24k (BANG-24k) API Data in JSON Format
Access Bangalore Gold 24k (BANG-24k) API Data in JSON Format
In the world of precious metals trading, having access to real-time data is crucial for making informed decisions. The Metals-API provides a powerful solution for developers looking to retrieve Gold (XAU) exchange rates in JSON format. This blog post will explore the capabilities of the Metals-API, focusing on how to effectively utilize its features to enhance your applications. We will delve into the API's endpoints, provide sample responses, and offer integration tips to help you get started.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and in today's digital age, it is undergoing a transformation through technology. The integration of data analytics and market insights is revolutionizing how traders and investors interact with precious metals. With the rise of digital asset solutions, the demand for accurate and timely data is more critical than ever. The Metals-API stands at the forefront of this digital transformation, offering developers the tools needed to build next-generation applications that leverage real-time metals data.
By utilizing the Metals-API, developers can access a wealth of information about Gold and other precious metals, enabling them to innovate in price discovery and trading strategies. The API empowers users to analyze market trends, track fluctuations, and make data-driven decisions with confidence.
API Description
The Metals-API is designed to provide developers with a comprehensive suite of features that facilitate the retrieval of real-time and historical metals data. This API is not just a data source; it is a transformative tool that enables the creation of innovative applications. With capabilities ranging from real-time exchange rates to historical data analysis, the Metals-API is equipped to meet the demands of modern trading environments.
For more information on the API's features and capabilities, visit the Metals-API Website or refer to the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, allowing developers to access a range of functionalities. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data for Gold and other metals, updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a date in the format YYYY-MM-DD, developers can query the Metals-API for past exchange rates, enabling comprehensive market analysis.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time Bid and Ask prices for Gold and other metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that allows users to convert any amount from one currency to another. This is particularly useful for traders who need to calculate the value of their holdings in different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This feature is invaluable for analyzing trends over specific periods and making informed trading decisions.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis. This endpoint helps traders understand market volatility and make strategic decisions based on historical performance.
- Carat Endpoint: Access information about Gold rates by Carat. This feature is particularly useful for jewelers and consumers interested in the value of Gold in different purities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for Gold over a specified period, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for Gold, allowing traders to analyze price movements and make informed decisions.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008. This endpoint is essential for users interested in long-term trends in the metals market.
- API Key: Your API Key is a unique identifier that must be included in the API base URL's access_key parameter to authenticate your requests.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, and all data is returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 different endpoints, each providing unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metals, ensuring users have access to the latest information.
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
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1785413259,
"base": "USD",
"date": "2026-07-30",
"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": 1785326859,
"base": "USD",
"date": "2026-07-29",
"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": "2026-07-23",
"end_date": "2026-07-30",
"base": "USD",
"rates": {
"2026-07-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-30": {
"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": 1785413259,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-23",
"end_date": "2026-07-30",
"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": 1785413259,
"base": "USD",
"date": "2026-07-30",
"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": 1785413259,
"base": "USD",
"date": "2026-07-30",
"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
In conclusion, the Metals-API offers a robust and flexible solution for developers seeking to access Gold (XAU) exchange rates and other precious metals data in JSON format. With its comprehensive suite of endpoints, the API empowers users to build innovative applications that leverage real-time and historical data. By understanding the capabilities of the Metals-API and utilizing its features effectively, developers can enhance their trading strategies and make informed decisions based on accurate market insights.
For further exploration of the API's features, be sure to check out the Metals-API Documentation and the Metals-API Supported Symbols page. Embrace the power of data and transform your approach to precious metals trading with the Metals-API.