The Easiest Way to Get Bhopal Gold 22k (BHOP-22k) Historical Rates via Web Scraping
The Easiest Way to Get Bhopal Gold 22k (BHOP-22k) Historical Rates via Web Scraping
In today's digital age, accessing historical prices for precious metals like Gold (XAU) has become increasingly straightforward, thanks to APIs like Metals-API. This blog post will guide you through the process of obtaining historical prices for Gold using the Metals-API, including example endpoints, parameters, and data formats. Whether you are a developer looking to integrate real-time data into your applications or a trader seeking insights into market trends, this guide will provide you with the necessary tools and knowledge.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and its digital transformation is reshaping how we trade and analyze this precious metal. The integration of data analytics and technology in trading has opened new avenues for market insights and price discovery. With the advent of digital asset solutions, traders can now leverage real-time data to make informed decisions. The Metals-API is at the forefront of this transformation, providing developers with the tools to build next-generation applications that can analyze and visualize Gold prices effectively.
API Description
The Metals-API is a powerful tool that offers real-time and historical data for various metals, including Gold (XAU). It empowers developers to create applications that can track market trends, analyze price fluctuations, and convert currencies seamlessly. By utilizing the API, you can access a wealth of information that can enhance your trading strategies and decision-making processes.
For more information, visit the Metals-API Website or check out the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. It allows you to access the most current prices for Gold and other metals.
- Historical Rates Endpoint: You can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, you can retrieve the historical price of Gold on that date.
- Bid And Ask Endpoint: This feature enables you to retrieve real-time Bid and Ask prices for Gold, providing insights into market dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing you to convert any amount from one metal to another or to/from USD.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice, enabling you to analyze trends over time.
- Fluctuation Endpoint: Track how Gold prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about Gold rates by Carat, which is essential for jewelers and traders dealing with different purity levels.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API to get the lowest and highest price of Gold for a specified date.
- Open/High/Low/Close (OHLC) Price Endpoint: Access the open, high, low, and close prices for Gold, which are crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Your API Key is essential for accessing the API and must be included in your requests.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API offers 14 different endpoints, each providing unique functionalities to cater to various needs.
- Supported Symbols Endpoint: This 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 effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the following endpoint:
{
"success": true,
"timestamp": 1767852490,
"base": "USD",
"date": "2026-01-08",
"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": 1767766090,
"base": "USD",
"date": "2026-01-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
To get exchange rates for a specific time period, use the time-series endpoint:
{
"success": true,
"timeseries": true,
"start_date": "2026-01-01",
"end_date": "2026-01-08",
"base": "USD",
"rates": {
"2026-01-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
To convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1767852490,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
To track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-01",
"end_date": "2026-01-08",
"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) Price Endpoint
To get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1767852490,
"base": "USD",
"date": "2026-01-08",
"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
To get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1767852490,
"base": "USD",
"date": "2026-01-08",
"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 provides a robust and versatile platform for accessing historical and real-time data for Gold and other precious metals. By leveraging its various endpoints, developers can create applications that offer valuable insights into market trends, price fluctuations, and trading strategies. Whether you are interested in the latest rates, historical data, or detailed analytics, the Metals-API has the tools you need to succeed in the digital trading landscape.
For further exploration, consider visiting the Metals-API Documentation for detailed technical guidance, or check the Metals-API Supported Symbols to familiarize yourself with the available metal symbols. The future of trading is digital, and with the right tools, you can navigate it successfully.