Get Kochi Gold (XAU-KOCH) Historical Pricing Information from this API
Introduction
In the ever-evolving landscape of financial markets, the demand for accurate and timely data is paramount, especially when it comes to precious metals like Gold (XAU). The Metals-API offers a robust solution for developers seeking to access historical pricing information and real-time data for Gold and other metals. This blog post delves into the transformative potential of the Metals-API, exploring its capabilities, features, and how it can empower developers to create innovative applications in the realm of precious metals trading.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and economic uncertainty. In recent years, the digital transformation of precious metals trading has opened new avenues for investment and data analytics. The integration of technology into trading practices has enabled market participants to leverage data-driven insights for better decision-making.
With the rise of digital asset solutions, the importance of real-time data in price discovery has become increasingly evident. Developers can harness the power of the Metals-API to access comprehensive market insights, enabling them to create applications that provide users with the latest information on Gold prices, trends, and fluctuations.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical pricing data for various metals, including Gold (XAU). This API is built with innovation in mind, allowing for seamless integration into applications that require up-to-date market information. By utilizing the Metals-API, developers can create next-generation applications that cater to the needs of traders, investors, and financial analysts.
For more detailed information about the API's capabilities, you can refer to the Metals-API Documentation, which outlines the various endpoints and their functionalities.
Key Features and Endpoints
The Metals-API offers a wide range of endpoints that cater to different data needs. 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 updated rates 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": 1779840864,
"base": "USD",
"date": "2026-05-27",
"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 Gold and other metals dating back to 2019. By appending a specific date to the API request, developers can retrieve past pricing data, which is invaluable for market analysis and trend identification.
{
"success": true,
"timestamp": 1779754464,
"base": "USD",
"date": "2026-05-26",
"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 provides real-time bid and ask prices for Gold and other metals. This endpoint is crucial for traders who need to understand the market's current buying and selling prices, allowing them to make informed trading decisions.
{
"success": true,
"timestamp": 1779840864,
"base": "USD",
"date": "2026-05-27",
"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 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": 1779840864,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint enables users to query the API for daily historical rates between two specified dates. This feature is essential for analyzing price movements over time and understanding market trends.
{
"success": true,
"timeseries": true,
"start_date": "2026-05-20",
"end_date": "2026-05-27",
"base": "USD",
"rates": {
"2026-05-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-27": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into how prices fluctuate on a day-to-day basis. By tracking rate changes between two dates, developers can gain a deeper understanding of market volatility.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-20",
"end_date": "2026-05-27",
"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 provides essential data for traders by delivering the open, high, low, and close prices for a specific time period. This information is crucial for technical analysis and helps traders identify potential entry and exit points.
{
"success": true,
"timestamp": 1779840864,
"base": "USD",
"date": "2026-05-27",
"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 for the lowest and highest prices of Gold over a specified period. This feature is particularly useful for identifying price extremes and making informed trading decisions.
{
"success": true,
"timestamp": 1779840864,
"base": "USD",
"date": "2026-05-27",
"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 essential for those looking to analyze long-term trends in the metals market.
{
"success": true,
"timestamp": 1779754464,
"base": "USD",
"date": "2026-05-26",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
API Key and Response
To access the Metals-API, developers must use a unique API Key, which is 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 data.
Exchange rates delivered by the Metals-API are by default relative to USD, and all data is returned in standardized formats, making it easy for developers to integrate into their applications.
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 understand the various metals available for trading and analysis.
Conclusion
In conclusion, the Metals-API is a powerful tool for developers seeking to access historical pricing information and real-time data for Gold and other precious metals. With its extensive range of endpoints and features, the API empowers developers to create innovative applications that cater to the needs of traders and investors. By leveraging the capabilities of the Metals-API, developers can enhance their applications with accurate market insights, enabling users to make informed decisions in the dynamic world of precious metals trading.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the comprehensive Metals-API Documentation for detailed guidance on implementation and usage.