Access Kochi Gold 24k (KOCH-24k) API for Fetching Exchange Rates in JSON Format
Access Kochi Gold 24k (KOCH-24k) API for Fetching Exchange Rates in JSON Format
In the rapidly evolving landscape of financial technology, the ability to access real-time data is crucial for developers and businesses alike. The Metals-API provides a robust solution for retrieving exchange rates for precious metals, including Gold (XAU), in JSON format. This blog post will delve into the capabilities of the Metals-API, focusing on how developers can leverage it to build innovative applications that require accurate and timely metals data.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and its value is influenced by various factors, including market demand, geopolitical events, and economic indicators. In recent years, the digital transformation in precious metals trading has opened new avenues for data analytics and market insights. The integration of technology in trading has not only enhanced price discovery but also provided innovative digital asset solutions.
As developers, understanding the dynamics of Gold pricing and the factors that influence it is essential. The Metals-API allows you to tap into this wealth of information, enabling you to create applications that can analyze trends, forecast prices, and provide users with valuable insights into the gold market.
API Description
The Metals-API is a powerful tool designed to provide developers with real-time and historical data on precious metals. With its innovative capabilities, the API empowers users to build next-generation applications that can analyze and visualize metals data effectively. The API supports various endpoints, each designed to cater to specific data retrieval needs, from the latest exchange rates to historical trends.
For more information, visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a range of endpoints that provide different functionalities, allowing developers to access a wealth of data. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for precious metals, updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your query. This endpoint is invaluable for analyzing trends over time and understanding how market conditions have changed.
- Bid And Ask Endpoint: Retrieve real-time Bid and Ask prices for metals, allowing users to make informed trading decisions based on current market conditions.
- Convert Endpoint: This endpoint enables currency conversion, allowing users to convert any amount from one currency to another, facilitating seamless transactions across different markets.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This feature is particularly useful for analyzing price movements over specific periods.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and helping users make informed decisions.
- Carat Endpoint: Retrieve information about Gold rates by Carat, which is essential for jewelers and traders dealing in different carat weights.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, which can help in understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Your unique API Key is required for authentication and must be included in the API base URL's access_key parameter.
- API Response: The Metals-API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The API features 14 endpoints, each providing different functionalities tailored to various data needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals supported by the API.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
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.
API Endpoint Examples and Responses
Understanding how to interpret API responses is crucial for effective integration. Below are examples of various API responses for different endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1776888460,
"base": "USD",
"date": "2026-04-22",
"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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1776802060,
"base": "USD",
"date": "2026-04-21",
"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": "2026-04-15",
"end_date": "2026-04-22",
"base": "USD",
"rates": {
"2026-04-15": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-17": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-22": {
"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": 1776888460,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-15",
"end_date": "2026-04-22",
"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": 1776888460,
"base": "USD",
"date": "2026-04-22",
"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": 1776888460,
"base": "USD",
"date": "2026-04-22",
"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
The Metals-API is an invaluable resource for developers looking to integrate real-time and historical data on precious metals, particularly Gold (XAU), into their applications. By leveraging the various endpoints, developers can create sophisticated tools that analyze market trends, provide currency conversion, and track fluctuations in metal prices.
With the ability to access comprehensive data through endpoints like the Latest Rates, Historical Rates, and Bid/Ask, developers can build applications that cater to traders, investors, and financial analysts. The API's structured JSON responses make it easy to parse and utilize the data effectively.
For further exploration of the API's capabilities, refer to the Metals-API Documentation and the Metals-API Supported Symbols page. By harnessing the power of the Metals-API, developers can stay ahead in the competitive landscape of precious metals trading and analysis.