How to Get Kochi Gold 24k (KOCH-24k) Monthly Historical Prices via this API
Introduction
In the world of finance and investment, gold (XAU) has always held a significant place as a store of value and a hedge against inflation. With the advent of technology, accessing and analyzing historical prices of gold has become more streamlined and efficient. One of the most powerful tools available for developers and financial analysts is the Metals-API. This API allows users to retrieve real-time and historical data for various metals, including 24k gold (KOCH-24k), enabling informed decision-making based on accurate market insights.
Understanding Gold (XAU)
Gold, represented by the symbol XAU, is a precious metal that has been used for centuries as a form of currency and a symbol of wealth. In recent years, the digital transformation in precious metals trading has revolutionized how investors access and analyze gold prices. The integration of data analytics and technology in trading has opened up new avenues for innovation in price discovery and investment strategies.
With the rise of digital asset solutions, investors can now leverage advanced tools to track gold prices, analyze market trends, and make data-driven decisions. The Metals-API plays a crucial role in this ecosystem, providing developers with the necessary resources to build applications that can access real-time and historical gold price data.
API Description
The Metals-API is a comprehensive JSON API that provides access to metals prices and currency conversion. It empowers developers to create next-generation applications that can harness the power of real-time metals data. The API is designed with innovation and technological advancement in mind, allowing users to access a wide range of endpoints that cater to various needs, from retrieving the latest rates to analyzing historical trends.
With the Metals-API, developers can easily integrate metals data into their applications, enabling them to provide users with up-to-date information and insights. The API supports a variety of endpoints, each designed to fulfill specific requirements, making it a versatile tool for anyone working with precious metals.
Key Features of Metals-API
The Metals-API offers a plethora of features that cater to the diverse needs of developers and financial analysts. 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, every 10 minutes, or even more frequently. This feature is essential for traders who need to make quick decisions based on the most current market conditions.
{
"success": true,
"timestamp": 1782346769,
"base": "USD",
"date": "2026-06-25",
"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
For those interested in analyzing past performance, the Historical Rates Endpoint allows users to access historical exchange rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve valuable historical data that can be used for trend analysis and forecasting.
{
"success": true,
"timestamp": 1782260369,
"base": "USD",
"date": "2026-06-24",
"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 crucial for traders who need to understand the market dynamics and make informed decisions based on the current buying and selling prices.
{
"success": true,
"timestamp": 1782346769,
"base": "USD",
"date": "2026-06-25",
"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 looking to understand the value of their holdings in different currencies or metals.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1782346769,
"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 invaluable for conducting in-depth analyses of price movements over specific periods, enabling traders to identify trends and make predictions.
{
"success": true,
"timeseries": true,
"start_date": "2026-06-18",
"end_date": "2026-06-25",
"base": "USD",
"rates": {
"2026-06-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-25": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into how currencies fluctuate on a day-to-day basis. By tracking rate fluctuations between two dates, users can gain a better understanding of market volatility and make more informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-18",
"end_date": "2026-06-25",
"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 retrieve the open, high, low, and close prices for a specific time period. This data is essential for technical analysis, as it provides a comprehensive view of price movements and market behavior.
{
"success": true,
"timestamp": 1782346769,
"base": "USD",
"date": "2026-06-25",
"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"
}
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint allows users to query the API to get the lowest and highest price for a specified date. This feature is particularly useful for traders looking to identify price extremes and make strategic decisions based on historical data.
{
"success": true,
"timestamp": 1782346769,
"base": "USD",
"date": "2026-06-25",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
}
},
"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 users interested in analyzing the performance of metals traded on the London Metal Exchange.
{
"success": true,
"timestamp": 1782260369,
"base": "USD",
"date": "2026-06-24",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
API Key and Authentication
To access the Metals-API, users must obtain an API key, which is a unique identifier passed into the API base URL's access_key parameter. This key is essential for authentication and ensures that only authorized users can access the API's features.
API Response Structure
The API responses delivered by the Metals-API are by default relative to USD. All data is returned in a structured JSON format, making it easy for developers to parse and utilize the information in their applications. Understanding the structure of the API responses is crucial for effective data handling and analysis.
Common Use Cases for Metals-API
The Metals-API can be utilized in various scenarios, including:
- Real-time Trading Applications: Developers can build applications that provide real-time price updates for gold and other metals, enabling traders to make informed decisions.
- Historical Analysis Tools: Analysts can create tools that analyze historical price trends, helping investors understand market movements and make predictions.
- Portfolio Management: Investors can use the API to track the performance of their metal investments and make adjustments based on real-time data.
- Market Research: Researchers can leverage the API to gather data for studies on market trends and price fluctuations.
Conclusion
The Metals-API is a powerful tool for developers and financial analysts looking to access real-time and historical data for precious metals, including gold (XAU). With its wide range of endpoints and capabilities, the API empowers users to build innovative applications that can analyze market trends, track price movements, and make data-driven decisions.
By leveraging the features of the Metals-API, developers can create solutions that enhance trading strategies, improve investment analysis, and provide valuable insights into the precious metals market. For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals.
As the digital landscape continues to evolve, the integration of technology in precious metals trading will only become more significant. Embracing these advancements will enable investors and developers to stay ahead in a rapidly changing market.