Explore Bhopal Gold 22k (BHOP-22k) Historical Prices for market insights with this API
Introduction
In the world of precious metals, gold (XAU) stands out as a symbol of wealth and stability. For developers and financial analysts, understanding the historical prices of gold is crucial for making informed decisions in trading and investment. The Metals-API provides a robust platform for accessing real-time and historical data on gold and other metals, enabling users to gain insights into market trends and price fluctuations. This blog post will explore the capabilities of the Metals-API, focusing on how to retrieve historical prices for Bhopal Gold 22k (BHOP-22k) and other gold-related data.
About Gold (XAU)
Gold has long been a cornerstone of financial systems, serving as a hedge against inflation and currency devaluation. As digital transformation continues to reshape the financial landscape, the integration of technology in trading and investment strategies has become paramount. The Metals-API stands at the forefront of this transformation, offering developers the tools needed to harness data analytics for market insights.
With the rise of digital asset solutions, understanding the dynamics of gold pricing through real-time data is essential. The Metals-API empowers developers to build next-generation applications that can analyze historical price trends, enabling them to make data-driven decisions. By leveraging the API's capabilities, users can explore innovative approaches to price discovery and market analysis.
API Description
The Metals-API is a comprehensive JSON API that provides access to real-time and historical prices for various metals, including gold. Its innovative features allow developers to create applications that can track price movements, analyze trends, and convert currencies seamlessly. The API is designed with a focus on technological advancement, ensuring that users have access to the most accurate and up-to-date information.
For detailed documentation on how to use the API, visit the Metals-API Documentation. This resource provides comprehensive guidance on the API's capabilities, endpoints, and usage examples.
Key Features of Metals-API
The Metals-API offers a variety of endpoints that cater to different needs, making it a versatile tool for developers. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes, every 10 minutes, or even more frequently. This endpoint is essential for developers looking to integrate live pricing into their applications.
{
"success": true,
"timestamp": 1787012280,
"base": "USD",
"date": "2026-08-18",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Accessing historical rates is crucial for analyzing market trends over time. The Historical Rates Endpoint allows users to query historical prices for most currencies dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can retrieve valuable data for analysis.
{
"success": true,
"timestamp": 1786925880,
"base": "USD",
"date": "2026-08-17",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Bid and Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that provides real-time bid and ask prices for metals. This endpoint is particularly useful for traders who need to make quick decisions based on current market conditions.
{
"success": true,
"timestamp": 1787012280,
"base": "USD",
"date": "2026-08-18",
"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 applications that require currency conversion for pricing or trading purposes.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1787012280,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users 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 movements over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2026-08-11",
"end_date": "2026-08-18",
"base": "USD",
"rates": {
"2026-08-11": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2026-08-18": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. This endpoint is useful for tracking volatility and understanding market dynamics over time.
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-11",
"end_date": "2026-08-18",
"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 allows users to retrieve the open, high, low, and close prices for a specific time period. This data is essential for traders who rely on candlestick charts for technical analysis.
{
"success": true,
"timestamp": 1787012280,
"base": "USD",
"date": "2026-08-18",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint allows users to query the API to get the lowest and highest price for a specified date. This feature is particularly useful for identifying price extremes over a given period.
{
"success": true,
"timestamp": 1787012280,
"base": "USD",
"date": "2026-08-18",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
}
},
"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 essential for users interested in analyzing historical data for metals traded on the London Metal Exchange.
{
"success": true,
"timestamp": 1787012280,
"base": "USD",
"date": "2026-08-18",
"rates": {
"XAU": 0.000482
},
"unit": "per troy ounce"
}
API Key and Authentication
To access the Metals-API, users must obtain an API key, which is passed into the API base URL's access_key parameter. This key is essential for authentication and ensures that only authorized users can access the data. Developers should keep their API keys secure and avoid sharing them publicly.
Common Use Cases for Metals-API
The Metals-API can be utilized in various applications, including:
- Trading Platforms: Integrate real-time pricing data into trading applications to provide users with up-to-date information for making informed decisions.
- Market Analysis Tools: Use historical data to analyze trends and forecast future price movements, helping investors strategize their trades.
- Financial Reporting: Generate reports that include historical prices and fluctuations, providing stakeholders with insights into market performance.
Conclusion
In conclusion, the Metals-API offers a powerful suite of tools for accessing real-time and historical data on gold and other metals. By leveraging its various endpoints, developers can create applications that provide valuable insights into market trends and price movements. Whether you are building a trading platform, a market analysis tool, or a financial reporting application, the Metals-API equips you with the necessary data to make informed decisions.
For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals. With the right tools and data, you can unlock the potential of gold trading and investment.