Get Micro Silver Futures (SIL) Historical Prices using this API

Get Micro Silver Futures (SIL) Historical Prices using this API
Metals-API. This powerful API provides developers with the tools to access real-time and historical data on various metals, including silver, which is represented by the symbol XAG. In this blog post, we will explore the significance of silver, the capabilities of the Metals-API, and how to effectively retrieve historical prices.
About Silver (XAG)
API Description
Metals-API is designed to provide developers with comprehensive access to metals data, enabling the creation of next-generation applications. This API is built on the principles of innovation and technological advancement, offering real-time data that can transform how businesses and individuals interact with metal markets.
Key Features and Endpoints
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for silver and other metals. Depending on your subscription plan, updates can occur every 60 minutes or even more frequently. This is essential for traders who need up-to-the-minute information to make quick decisions.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your query. This allows users to analyze past performance and trends, which is crucial for forecasting future movements in the silver market.
- Bid And Ask Endpoint: This feature enables users to retrieve real-time bid and ask prices for silver. Understanding the spread between these prices is vital for traders looking to optimize their buying and selling strategies.
- Convert Endpoint: The conversion endpoint allows users to convert amounts from one metal to another or to/from USD. This is particularly useful for investors who deal in multiple currencies and need to understand the value of their investments in different terms.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This feature is beneficial for analyzing trends over specific periods, helping traders identify patterns and make informed decisions.
- Fluctuation Endpoint: This endpoint provides insights into how silver prices fluctuate over time. By tracking rate changes between two dates, users can assess market volatility and adjust their strategies accordingly.
- Carat Endpoint: For those interested in gold, this endpoint allows users to retrieve information about gold rates by carat. While primarily focused on gold, it highlights the versatility of the Metals-API in handling various precious metals.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of silver over a specified period. Understanding price extremes can help traders identify potential entry and exit points.
- Open/High/Low/Close (OHLC) Price Endpoint: Retrieve the open, high, low, and close prices for silver on a specific date. This data is crucial for technical analysis and helps traders understand market movements.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008. This is particularly useful for those interested in the London Metal Exchange's pricing data.
- API Key: Your unique API key is essential for accessing the Metals-API. It must be included in your API requests to authenticate your access.
- API Response: The API delivers exchange rates relative to USD by default. Understanding the structure of the API response is crucial for developers to effectively utilize the data.
- Available Endpoints: The Metals-API features numerous endpoints, each providing different functionalities. Familiarizing yourself with these endpoints is key to maximizing the API's potential.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring that developers have access to the latest data.
- Gold Price India Endpoint: Retrieve the latest gold price in India, showcasing the API's versatility in providing localized data.
- News Endpoint: Stay updated with the latest news articles related to various metals, allowing users to stay informed about market trends and developments.
API Endpoint Examples and Responses
Latest Rates Endpoint
{
"success": true,
"timestamp": 1745888790,
"base": "USD",
"date": "2025-04-29",
"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
{
"success": true,
"timestamp": 1745802390,
"base": "USD",
"date": "2025-04-28",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-04-22",
"end_date": "2025-04-29",
"base": "USD",
"rates": {
"2025-04-22": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-24": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-04-29": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1745888790,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-22",
"end_date": "2025-04-29",
"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) Price Endpoint
{
"success": true,
"timestamp": 1745888790,
"base": "USD",
"date": "2025-04-29",
"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
{
"success": true,
"timestamp": 1745888790,
"base": "USD",
"date": "2025-04-29",
"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
Metals-API. By leveraging its powerful endpoints, developers can create applications that provide real-time insights into the silver market, analyze trends, and make informed trading decisions. The API's capabilities, including the latest rates, historical data, and fluctuation tracking, empower users to navigate the complexities of the silver market effectively.
Metals-API Documentation for detailed information on each endpoint and its functionalities. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metals, ensuring that users have access to the latest data.