Get Kochi Silver (XAG-KOCH) Historical Prices with Metals-API

Introduction
Metals-API offers a robust solution. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices and other valuable data related to Silver. We will explore the innovative features of the API, its endpoints, and how it can empower developers to create next-generation applications in the metals market.
About Silver (XAG)
Metals-API Overview
Metals-API is a powerful tool designed to provide real-time and historical data on various metals, including Silver. It enables developers to access a wealth of information through a simple and intuitive API. With its focus on innovation and technological advancement, the Metals-API transforms how businesses interact with metals data, allowing for the development of sophisticated applications that can analyze trends, forecast prices, and optimize supply chains.
Key Features and Endpoints
Latest Rates Endpoint
{
"success": true,
"timestamp": 1742180474,
"base": "USD",
"date": "2025-03-17",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1742094074,
"base": "USD",
"date": "2025-03-16",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid and Ask Endpoint
{
"success": true,
"timestamp": 1742180474,
"base": "USD",
"date": "2025-03-17",
"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
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1742180474,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-03-10",
"end_date": "2025-03-17",
"base": "USD",
"rates": {
"2025-03-10": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-03-12": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-03-17": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-03-10",
"end_date": "2025-03-17",
"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
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
{
"success": true,
"timestamp": 1742180474,
"base": "USD",
"date": "2025-03-17",
"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
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
{
"success": true,
"timestamp": 1742094074,
"base": "USD",
"date": "2025-03-16",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
API Key and Authentication
API Response Structure
Practical Use Cases and Integration Strategies
- Trading Applications: Developers can create trading applications that utilize real-time data from the Metals-API to execute trades based on current market conditions.
- Investment Analysis Tools: By leveraging historical data, analysts can build tools that forecast future price movements and provide insights into market trends.
- Supply Chain Management: Businesses can integrate the API to monitor metal prices, helping them make informed purchasing decisions and optimize their supply chains.
Conclusion
Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. Visit the Metals-API Website to learn more about the capabilities and features that can help you leverage metals data effectively.