Request Kolkata Gold 22k (KOLK-22k) Historical Prices through this API

Request Kolkata Gold 22k (KOLK-22k) Historical Prices through this API
In the ever-evolving landscape of precious metals trading, the ability to access real-time and historical data is paramount for developers and traders alike. One of the most sought-after metals is gold, represented by the symbol XAU. This blog post delves into how to obtain historical prices for Kolkata Gold 22k (KOLK-22k) using the Metals-API. We will explore the innovative features of the API, the significance of gold in the digital age, and how developers can leverage this powerful tool to enhance their applications.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, transcending cultures and economies. In recent years, the digital transformation in precious metals has revolutionized how traders and investors interact with this valuable asset. The integration of data analytics and market insights has enabled a more informed trading environment, allowing stakeholders to make decisions based on real-time data rather than historical assumptions.
As technology continues to advance, the trading of gold is becoming increasingly sophisticated. Innovations in price discovery mechanisms and digital asset solutions are reshaping the landscape, making it essential for developers to have access to accurate and timely data. The Metals-API provides a comprehensive solution for accessing gold prices, including historical data that can be crucial for market analysis and forecasting.
API Description
The Metals-API is a powerful tool designed to provide developers with real-time and historical data for various metals, including gold, silver, platinum, and palladium. With its user-friendly interface and extensive documentation, the API empowers developers to build next-generation applications that can analyze market trends, track price fluctuations, and provide valuable insights to end-users.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated frequently based on the user's subscription plan. This capability is essential for applications that require up-to-the-minute information, such as trading platforms and financial analysis tools.
Additionally, the API offers a range of endpoints that cater to different needs, including historical rates, bid and ask prices, and even currency conversion. This versatility makes it an invaluable resource for developers looking to integrate precious metals data into their applications.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that provide developers with the flexibility to access the data they need. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently. This is crucial for applications that require immediate access to market prices.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, which is essential for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert amounts from one metal to another or to/from USD. This is particularly useful for applications that deal with multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, which can be critical for understanding market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is particularly relevant for jewelers and consumers interested in specific gold qualities.
- Lowest/Highest Price Endpoint: This feature allows developers to query the API to get the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific date, which is essential for traders looking to analyze price movements.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is beneficial for those interested in industrial metals.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data representation.
- Available Endpoints: The Metals-API offers 14 different endpoints, each providing unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for local traders.
- News Endpoint: The API allows users to retrieve the latest news articles related to various metals, keeping developers informed about market trends and events.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of how to use various endpoints, along with sample JSON responses.
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1757217635,
"base": "USD",
"date": "2025-09-07",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1757131235,
"base": "USD",
"date": "2025-09-06",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2025-08-31",
"end_date": "2025-09-07",
"base": "USD",
"rates": {
"2025-08-31": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-09-02": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-09-07": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1757217635,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-08-31",
"end_date": "2025-09-07",
"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) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1757217635,
"base": "USD",
"date": "2025-09-07",
"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
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1757217635,
"base": "USD",
"date": "2025-09-07",
"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 offers a comprehensive suite of tools for developers looking to access real-time and historical data for precious metals, including gold. With its innovative features and user-friendly interface, the API empowers developers to create applications that can analyze market trends, track price fluctuations, and provide valuable insights to users.
By leveraging the various endpoints available, such as the Latest Rates, Historical Rates, and Time-Series endpoints, developers can build robust applications that cater to the needs of traders and investors. The ability to access detailed information about bid and ask prices, fluctuations, and OHLC data further enhances the API's utility.
For those interested in exploring the full capabilities of the Metals-API, I encourage you to visit the Metals-API Documentation and familiarize yourself with the extensive features available. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of all available metals and currencies, ensuring you have the information you need to make informed decisions.
As the digital landscape continues to evolve, staying informed and equipped with the right tools is essential for success in the precious metals market. The Metals-API is a powerful ally in this journey, providing the data and insights necessary to navigate the complexities of trading gold and other metals.