Find Archived Bangalore Gold 22k (BANG-22k) Historical Prices using this API
Introduction
In the world of finance, gold (XAU) has always held a significant place as a valuable asset. Investors and traders alike seek to understand its historical prices to make informed decisions. With the advent of technology, accessing this data has become easier than ever. One such tool is the Metals-API, which provides comprehensive access to real-time and historical gold prices. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve archived Bangalore Gold 22k (BANG-22k) historical prices and the innovative features that make this API a valuable resource for developers.
About Gold (XAU)
Gold has been a cornerstone of wealth and investment for centuries. Its value is influenced by various factors, including market demand, geopolitical stability, and economic conditions. In recent years, the digital transformation in precious metals has revolutionized how investors access and analyze gold data. The integration of data analytics and technology in trading has enabled more precise market insights, allowing traders to make data-driven decisions.
The Metals-API stands at the forefront of this transformation, offering developers the tools needed to build next-generation applications that leverage real-time metals data. By utilizing the API, developers can innovate in price discovery and create digital asset solutions that cater to the evolving needs of the market.
API Description
The Metals-API is a powerful resource that provides access to real-time and historical data for various metals, including gold. It empowers developers to create applications that can analyze market trends, track price fluctuations, and convert currencies seamlessly. The API's capabilities extend beyond mere data retrieval; it offers transformative potential for developers looking to harness the power of metals data in their applications.
For more detailed information, you can refer to the Metals-API Documentation, which outlines the various features and endpoints available.
Key Features and Endpoints
The Metals-API boasts a range of features that cater to different needs in the financial sector. Here are some of the key endpoints and their applications:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. This endpoint is crucial for traders who need the most current pricing information to make timely decisions. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes, ensuring that users have access to the latest market data.
Historical Rates Endpoint
For those interested in analyzing trends over time, the Historical Rates Endpoint allows users to access historical rates dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can query the API for past prices, enabling them to conduct thorough analyses of gold price movements.
{
"success": true,
"timestamp": 1784419921,
"base": "USD",
"date": "2026-07-19",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is another powerful feature that provides real-time bid and ask prices for metals. This information is essential for traders looking to execute buy or sell orders at the best possible prices. Understanding the spread between bid and ask prices can also offer insights into market liquidity.
{
"success": true,
"timestamp": 1784506321,
"base": "USD",
"date": "2026-07-20",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1784506321,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows developers to query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting in-depth analyses of price trends over specific periods, enabling users to identify patterns and make informed predictions.
{
"success": true,
"timeseries": true,
"start_date": "2026-07-13",
"end_date": "2026-07-20",
"base": "USD",
"rates": {
"2026-07-13": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2026-07-15": {
"XAU": 0.000483,
"XAG": 0.0382
},
"2026-07-20": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into how currencies fluctuate on a day-to-day basis. By tracking rate changes between two dates, traders can better understand market volatility and make strategic decisions based on historical performance.
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-13",
"end_date": "2026-07-20",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint provides detailed price information for a specific time period, including the open, high, low, and close prices. This data is crucial for traders looking to analyze market trends and make predictions based on historical performance.
{
"success": true,
"timestamp": 1784506321,
"base": "USD",
"date": "2026-07-20",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for users interested in the historical performance of metals traded on the London Metal Exchange.
API Key and Response
To access the Metals-API, users must obtain an API Key, which is passed into the API base URL's access_key parameter. The API delivers exchange rates relative to USD by default, ensuring that users receive consistent and reliable data.
Available Endpoints and Supported Symbols
The Metals-API offers a total of 14 endpoints, each providing unique functionalities. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page. This resource is invaluable for developers looking to integrate specific metals into their applications.
Conclusion
The Metals-API is a powerful tool for developers seeking to access real-time and historical gold prices, including archived Bangalore Gold 22k (BANG-22k) data. With its innovative features, such as the Latest Rates, Historical Rates, and various conversion endpoints, the API empowers users to create applications that can analyze market trends and make informed trading decisions.
By leveraging the capabilities of the Metals-API, developers can enhance their applications with comprehensive metals data, enabling them to provide valuable insights to their users. Whether you are looking to track price fluctuations, convert currencies, or analyze historical trends, the Metals-API offers the tools you need to succeed in the dynamic world of precious metals trading.
For more information on how to get started, visit the Metals-API Website and explore the extensive Metals-API Documentation for detailed guidance on implementing these features in your applications.