Get Bangalore Gold 22k (BANG-22k) Historical Prices to enhance your application using this API
Get Bangalore Gold 22k (BANG-22k) Historical Prices to Enhance Your Application Using This API
In the rapidly evolving landscape of digital finance, the demand for accurate and real-time data on precious metals has surged. One of the most sought-after commodities is gold, particularly in its 22k form, which is widely used in jewelry and investment. For developers looking to integrate historical price data into their applications, the Metals-API offers a robust solution. This blog post will explore the capabilities of the Metals-API, focusing on how to retrieve historical prices for Bangalore Gold 22k (BANG-22k) and other precious metals.
About Gold (XAU)
Gold, represented by the symbol XAU, has been a cornerstone of wealth and value for centuries. Its significance transcends mere aesthetics; it is a hedge against inflation, a safe haven during economic uncertainty, and a critical component in various industries, including electronics and medicine. As digital transformation sweeps through the financial sector, the integration of data analytics and technology in trading has become paramount. The Metals-API stands at the forefront of this transformation, providing developers with the tools needed to access real-time and historical data on gold and other precious metals.
With the rise of digital asset solutions, understanding the historical prices of gold can provide invaluable insights into market trends and investment strategies. By leveraging the Metals-API, developers can create applications that not only display current prices but also analyze historical data to forecast future movements. This capability is essential for traders, investors, and financial analysts who rely on accurate data to make informed decisions.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical data on various metals, including gold, silver, platinum, and palladium. This API empowers developers to build next-generation applications that require accurate and timely information. With its user-friendly interface and comprehensive documentation, the Metals-API simplifies the process of integrating metals data into applications.
For more detailed information, you can visit the Metals-API Website and explore the Metals-API Documentation for implementation guidance.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Hereβs a closer look at some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for precious metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is crucial for applications that require the most current pricing information.
- Historical Rates Endpoint: Developers can access historical rates dating back to 2019 by appending a specific date to the API request. This feature allows for in-depth analysis of price trends over time, making it invaluable for market research and investment strategies.
- Bid And Ask Endpoint: This powerful feature retrieves real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: This endpoint enables users to query the API for daily historical rates between two specified dates, facilitating comprehensive analysis of price movements over time.
- Fluctuation Endpoint: Developers can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This endpoint allows users to retrieve gold rates by carat, which is essential for applications focused on jewelry pricing.
- Lowest/Highest Price Endpoint: This feature enables users to query the API for the lowest and highest prices within a specified date range, which is crucial for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive market analysis.
- API Key: Each user is assigned a unique API key, which is required for authentication and access to the API's features.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency across data retrieval.
- Available Endpoints: The Metals-API includes 14 different endpoints, each designed to provide specific functionalities, making it a versatile tool for developers.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring that developers have access to the latest symbols.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users 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
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1770164423,
"base": "USD",
"date": "2026-02-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": 1770078023,
"base": "USD",
"date": "2026-02-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": "2026-01-28",
"end_date": "2026-02-04",
"base": "USD",
"rates": {
"2026-01-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-30": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-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": 1770164423,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-28",
"end_date": "2026-02-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": 1770164423,
"base": "USD",
"date": "2026-02-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": 1770164423,
"base": "USD",
"date": "2026-02-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 is an invaluable resource for developers looking to integrate historical and real-time data on precious metals, including Bangalore Gold 22k (BANG-22k). By utilizing the various endpoints offered by the API, developers can create sophisticated applications that provide users with insights into market trends, price fluctuations, and investment opportunities. The ability to access historical data, real-time rates, and conversion functionalities makes the Metals-API a comprehensive solution for anyone involved in the precious metals market.
For more information on how to implement these features, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols page for a complete list of available metals. By leveraging the capabilities of the Metals-API, developers can enhance their applications and provide users with the critical data they need to navigate the complex world of precious metals.