Get Historical Data for Kolhapur Gold 22k (KOLH-22k) using this API
Introduction
Gold, represented by the symbol XAU, has long been a cornerstone of financial markets and a symbol of wealth and stability. As the world transitions into a more digital landscape, the demand for precise and real-time data regarding precious metals, particularly gold, has surged. Developers and financial analysts are increasingly turning to APIs to access historical data, market insights, and analytics that can drive informed decision-making. One such powerful tool is the Metals-API, which provides comprehensive access to gold prices and other metal data.
About Gold (XAU)
Gold is not just a commodity; it is a financial instrument that has been used for centuries as a store of value. In recent years, the digital transformation in precious metals trading has revolutionized how investors access and analyze gold data. The integration of technology in trading platforms has enabled real-time analytics, allowing traders to make informed decisions based on the latest market trends.
Data analytics plays a crucial role in understanding market dynamics. By leveraging advanced analytics, traders can gain insights into price movements, historical trends, and market sentiment. This is where the Metals-API shines, offering developers the ability to build applications that harness the power of real-time and historical data.
Moreover, the innovation in price discovery mechanisms has made it easier for investors to track gold prices and make timely decisions. Digital asset solutions are emerging, allowing for seamless transactions and enhanced security in trading precious metals.
API Description
The Metals-API is a robust platform designed to provide developers with access to real-time and historical data for various metals, including gold. This API empowers developers to create next-generation applications that can analyze market trends, track price fluctuations, and convert currencies with ease.
With the Metals-API, users can access a wide range of endpoints that cater to different needs, from retrieving the latest rates to historical data analysis. The API is designed with innovation in mind, allowing for seamless integration into existing systems and applications.
For detailed documentation on how to use the API, visit the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to provide specific functionalities that can be leveraged for different applications. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for various metals, including gold. Depending on your subscription plan, this endpoint can return data updated every 60 minutes or even more frequently. This feature is essential for traders who need to make quick decisions based on the latest market conditions.
{
"success": true,
"timestamp": 1777076214,
"base": "USD",
"date": "2026-04-25",
"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 trends over time. The Historical Rates Endpoint allows users to retrieve data dating back to 2019. By appending a specific date to the API request, developers can obtain historical prices for gold and other metals.
{
"success": true,
"timestamp": 1776989814,
"base": "USD",
"date": "2026-04-24",
"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 retrieves real-time bid and ask prices for metals. This information is vital for traders looking to execute buy or sell orders at optimal prices.
{
"success": true,
"timestamp": 1777076214,
"base": "USD",
"date": "2026-04-25",
"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": 1777076214,
"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 is particularly useful for analyzing trends over specific periods and making informed trading decisions.
{
"success": true,
"timeseries": true,
"start_date": "2026-04-18",
"end_date": "2026-04-25",
"base": "USD",
"rates": {
"2026-04-18": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2026-04-20": {
"XAU": 0.000483,
"XAG": 0.0382
},
"2026-04-25": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how metal prices fluctuate on a day-to-day basis. This feature is essential for understanding market volatility and making strategic trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-18",
"end_date": "2026-04-25",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"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 prices for a specific date. This is particularly useful for traders looking to identify price extremes over a given period.
{
"success": true,
"timestamp": 1777076214,
"base": "USD",
"date": "2026-04-25",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
The Open/High/Low/Close (OHLC) Price Endpoint provides detailed price data for a specific time period, including the opening, highest, lowest, and closing prices. This data is crucial for technical analysis and understanding market trends.
{
"success": true,
"timestamp": 1777076214,
"base": "USD",
"date": "2026-04-25",
"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 traders interested in the London Metal Exchange prices.
{
"success": true,
"timestamp": 1776989814,
"base": "USD",
"date": "2026-04-24",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825
},
"unit": "per troy ounce"
}
API Key and Response
Your API Key is the unique key that is passed into the API base URL's access_key parameter. This key is essential for authentication and authorization when making requests to the Metals-API. The API response delivers exchange rates relative to USD by default, ensuring that users have a consistent reference point for their data.
Available Endpoints
The Metals-API comes with 14 API endpoints, each providing different functionalities. This extensive range allows developers to tailor their applications to meet specific needs, whether they are focused on real-time data, historical analysis, or market insights.
Supported Symbols Endpoint
The Supported Symbols Endpoint returns all available currencies and metals that can be accessed through the API. This is crucial for developers to understand what data they can work with.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols.
News Endpoint
The News Endpoint allows users to retrieve the latest news articles related to various metals. This feature is beneficial for traders who want to stay informed about market developments and trends.
Conclusion
In conclusion, the Metals-API is a powerful tool for developers looking to access historical and real-time data for gold and other metals. With its extensive range of endpoints, developers can build applications that provide valuable insights into market trends, price fluctuations, and trading opportunities. By leveraging the capabilities of the Metals-API, traders can make informed decisions based on accurate and timely data.
Whether you are interested in the latest rates, historical trends, or market news, the Metals-API offers a comprehensive solution for all your precious metal data needs. For more information, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on how to implement these features in your applications.