Get Kolkata Gold 22k (KOLK-22k) Historical Prices for Market Analysis using this API

Introduction
In the ever-evolving landscape of financial markets, the demand for accurate and timely data is paramount, especially in the realm of precious metals trading. One of the most sought-after commodities is gold, represented by the symbol XAU. For developers and analysts looking to gain insights into historical prices of gold, the Metals-API offers a robust solution. This API provides a comprehensive suite of tools to access real-time and historical data, enabling market analysis and informed decision-making.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and a safe haven asset in times of economic uncertainty. As digital transformation sweeps across industries, the precious metals market is no exception. The integration of data analytics and technology in trading has revolutionized how investors approach gold. With the rise of digital asset solutions, traders can now leverage real-time data to make informed decisions, enhancing their trading strategies.
The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to build next-generation applications that can analyze market trends, track price fluctuations, and discover innovative trading opportunities. By utilizing the API, developers can access a wealth of historical data, allowing for in-depth market analysis and strategic planning.
API Description
The Metals-API is designed to empower developers with real-time and historical metals data. Its capabilities extend beyond mere price retrieval; it offers a transformative potential for building applications that require accurate and timely information. The API supports a variety of endpoints, each tailored to meet specific needs, from accessing the latest rates to retrieving historical data dating back to 2019.
With a user-friendly interface and comprehensive documentation, the Metals-API allows developers to seamlessly integrate metals data into their applications. This API is not just a tool; it is a gateway to unlocking insights that can drive better trading decisions and enhance market strategies.
Key Features and Endpoints
The Metals-API boasts an array of features that cater to the diverse needs of developers and traders alike. Here are some of the key endpoints and their functionalities:
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 crucial for traders who need to stay informed about the latest market movements.
{
"success": true,
"timestamp": 1760353249,
"base": "USD",
"date": "2025-10-13",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
For those interested in analyzing past market trends, the Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. This feature is invaluable for conducting market analysis and understanding price movements over time.
{
"success": true,
"timestamp": 1760266849,
"base": "USD",
"date": "2025-10-12",
"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 metals. This information is essential for traders looking to execute orders at the best possible prices.
{
"success": true,
"timestamp": 1760353249,
"base": "USD",
"date": "2025-10-13",
"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": 1760353249,
"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 essential for analyzing trends over specific periods and making informed trading decisions.
{
"success": true,
"timeseries": true,
"start_date": "2025-10-06",
"end_date": "2025-10-13",
"base": "USD",
"rates": {
"2025-10-06": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-10-08": {
"XAU": 0.000483,
"XAG": 0.0382
},
"2025-10-13": {
"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 feature is useful for traders who want to understand the volatility of gold prices over a specific period.
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-06",
"end_date": "2025-10-13",
"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 crucial for technical analysis and understanding market trends.
{
"success": true,
"timestamp": 1760353249,
"base": "USD",
"date": "2025-10-13",
"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.
API Key and Response
Your API Key is essential for accessing the Metals-API. It is passed into the API base URL's access_key parameter, ensuring secure access to the data. The API responses are delivered in JSON format, with exchange rates typically relative to USD. This standardization simplifies data handling and integration into applications.
Available Endpoints
The Metals-API offers a total of 14 endpoints, each providing unique functionalities. For a complete list of supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
Practical Use Cases and Integration Strategies
Integrating the Metals-API into your applications opens up a world of possibilities. Here are some practical use cases:
- Market Analysis Tools: Build applications that analyze historical price trends of gold and other metals, providing insights for traders.
- Portfolio Management: Develop tools that allow investors to track their metal investments in real-time, optimizing their portfolios based on current market conditions.
- Trading Bots: Create automated trading systems that utilize real-time data from the API to execute trades based on predefined strategies.
Conclusion
The Metals-API is a powerful tool for developers and traders looking to gain insights into the precious metals market, particularly gold. With its extensive range of endpoints and capabilities, the API facilitates real-time data access, historical analysis, and innovative trading solutions. By leveraging the API, developers can create applications that not only enhance trading strategies but also provide valuable market insights.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the various endpoints available. Whether you are building a market analysis tool or an automated trading system, the Metals-API offers the resources you need to succeed in the dynamic world of precious metals trading.