Get Kanpur Gold 22k (KANP-22k) Historical Prices for investment tracking using this API
Introduction
In the world of investment, tracking the historical prices of precious metals like Gold (XAU) is crucial for making informed decisions. With the rise of digital transformation in trading and the integration of technology in financial markets, developers now have access to powerful tools like the Metals-API. This API provides real-time and historical data on various metals, enabling investors and developers to create innovative applications for investment tracking and market analysis.
About Gold (XAU)
Gold has always been a symbol of wealth and stability. As a precious metal, it plays a significant role in the global economy, serving as a hedge against inflation and currency fluctuations. The digital transformation in precious metals trading has opened new avenues for investors. By leveraging data analytics and market insights, investors can make more informed decisions. The integration of technology in trading has also led to innovations in price discovery, allowing for more accurate and timely information on market movements.
Moreover, the emergence of digital asset solutions has made it easier for investors to access and trade Gold. With the Metals-API, developers can build applications that provide real-time updates on Gold prices, historical data, and analytical tools to track investment performance. This API empowers users to harness the power of data to optimize their investment strategies.
API Description
The Metals-API is a comprehensive solution for accessing real-time and historical prices of various metals, including Gold (XAU). It offers a wide range of capabilities that allow developers to create next-generation applications for investment tracking. The API is designed with innovation and technological advancement in mind, providing users with the tools they need to stay ahead in the fast-paced world of trading.
With the Metals-API, developers can access a variety of endpoints that cater to different needs. Whether you are looking for the latest rates, historical data, or conversion capabilities, this API has you covered. For detailed information on how to use the API, refer to the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a plethora of features that enhance the user experience and provide valuable insights into the metals market. 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 updates every 60 minutes or even every 10 minutes. This feature is essential for traders who need to make quick decisions based on the latest market conditions.
{
"success": true,
"timestamp": 1780186529,
"base": "USD",
"date": "2026-05-31",
"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
The Historical Rates Endpoint allows users to access historical exchange rates for most currencies dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can query the Metals-API for past rates. This feature is particularly useful for analyzing trends and making long-term investment decisions.
{
"success": true,
"timestamp": 1780100129,
"base": "USD",
"date": "2026-05-30",
"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 a powerful feature that enables users to retrieve real-time bid and ask prices for various metals. This information is crucial for traders looking to execute buy or sell orders at the best possible prices. Depending on your subscription plan, this endpoint can provide valuable insights into market liquidity.
{
"success": true,
"timestamp": 1780186529,
"base": "USD",
"date": "2026-05-31",
"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"
}
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 investors who want to understand the value of their holdings in different currencies or metals.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1780186529,
"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 analyzing price movements over specific periods and identifying trends.
{
"success": true,
"timeseries": true,
"start_date": "2026-05-24",
"end_date": "2026-05-31",
"base": "USD",
"rates": {
"2026-05-24": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-26": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-31": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. By tracking rate fluctuations between two dates, developers can gain insights into market volatility and make informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-24",
"end_date": "2026-05-31",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows users to query the API for the open, high, low, and close prices for a specific time period. This data is essential for technical analysis and helps traders identify potential entry and exit points.
{
"success": true,
"timestamp": 1780186529,
"base": "USD",
"date": "2026-05-31",
"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"
}
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 who are interested in metals traded on the London Metal Exchange.
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. This resource is invaluable for developers looking to integrate specific metals into their applications.
Conclusion
In conclusion, the Metals-API is a powerful tool for developers and investors alike, providing access to real-time and historical data on precious metals like Gold (XAU). By utilizing the various endpoints offered by the API, users can track investment performance, analyze market trends, and make informed trading decisions. The integration of technology in the metals market has transformed the way investors interact with precious metals, making it easier than ever to access critical data.
For more information on how to implement the Metals-API in your applications, be sure to check out the Metals-API Documentation. With the right tools and insights, you can navigate the complexities of the metals market and optimize your investment strategies.