Get Silver Mar 2025 (SIH26) Daily Closing Prices using this API

Get Silver Mar 2025 (SIH26) Daily Closing Prices using this API
XAG, is not only a precious metal but also a vital component in various industrial applications. As we delve into the world of Silver and its historical prices, we will explore how to harness the power of the Metals-API to retrieve daily closing prices and historical data efficiently. This API is a game-changer for developers looking to integrate real-time and historical metals data into their applications.
About Silver (XAG)
Metals-API comes into play, providing developers with the tools necessary to access and analyze Silver prices effectively.
API Description
Metals-API is a powerful tool designed to provide developers with access to real-time and historical metals data. It empowers users to build next-generation applications that can analyze market trends, track price fluctuations, and convert between different metals and currencies. The API's capabilities are extensive, allowing for a wide range of applications in finance, trading, and industrial sectors.
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, you can receive updates every 60 minutes, every 10 minutes, or even more frequently.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date to your query, you can retrieve past Silver prices and analyze trends over time.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for Silver, providing insight into market conditions and helping traders make informed decisions.
- Convert Endpoint: Easily convert any amount from one metal to another or to/from USD. This is particularly useful for businesses dealing with multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for detailed analysis of price movements over time.
- Fluctuation Endpoint: Track how Silver prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: Retrieve the open, high, low, and close prices for Silver over a specified time period, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for understanding long-term market trends.
- API Key: Your unique API key is required to access the Metals-API, ensuring secure and authorized usage.
- API Response: All exchange rates are delivered relative to USD by default, with comprehensive data returned in a structured format.
- Supported Symbols Endpoint: Access a constantly updated list of all available metal symbols, including Silver, Gold, Platinum, and Palladium.
- News Endpoint: Stay informed with the latest news articles related to various metals, helping you keep track of market developments.
List of Symbols
Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Latest Rates Endpoint
{
"success": true,
"timestamp": 1753776019,
"base": "USD",
"date": "2025-07-29",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
timestamp field provides the exact time of the data retrieval, ensuring that users are aware of the currency's current status.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1753689619,
"base": "USD",
"date": "2025-07-28",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-22",
"end_date": "2025-07-29",
"base": "USD",
"rates": {
"2025-07-22": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-07-24": {
"XAU": 0.000483,
"XAG": 0.0382
},
"2025-07-29": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1753776019,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-22",
"end_date": "2025-07-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
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1753776019,
"base": "USD",
"date": "2025-07-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
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1753776019,
"base": "USD",
"date": "2025-07-29",
"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"
}
Conclusion
Metals-API offers a comprehensive suite of tools for developers looking to access real-time and historical Silver prices. By leveraging the various endpoints, developers can create applications that provide valuable insights into market trends, track price fluctuations, and facilitate currency conversions. The API's capabilities extend beyond simple data retrieval, empowering users to analyze and interpret metals data in innovative ways.
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 metal symbols, ensuring you have all the necessary information at your fingertips.