Obtain Osmium (OSMIUM) Historical Prices with this API

Obtain Osmium (OSMIUM) Historical Prices with this API
Metals-API offers a robust solution for obtaining historical prices and other essential data related to various metals, including Osmium. This blog post will delve into the capabilities of the Metals-API, focusing on how to effectively retrieve historical prices and leverage this data for analytical purposes.
Metals-API Information
About Osmium (OSMIUM)
API Description
Metals-API Documentation, which provides comprehensive guidance on how to utilize the API effectively.
Key Features and Endpoints
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals. Depending on your subscription plan, the API can return updates every 60 minutes or even every 10 minutes. This feature is essential for applications that require the most current pricing information.
- Historical Rates Endpoint: Users can access historical rates for most metals dating back to 2019. By appending a specific date to the API request, developers can retrieve historical price data, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals. Understanding the bid-ask spread is crucial for traders and investors looking to make informed decisions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts from one metal to another or to/from USD. This feature is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates. It is ideal for analyzing trends over time and understanding price movements.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis using this endpoint. It provides insights into market volatility and helps in making strategic decisions.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and gold traders.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date range, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: For users interested in LME symbols, this endpoint provides historical rates dating back to 2008, allowing for extensive market analysis.
- API Key: The API requires an API key for authentication, which must be included in the request URL to access the data.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API offers a comprehensive list of endpoints, each designed to provide specific functionalities.
- Supported Symbols Endpoint: This endpoint returns all available metal symbols, ensuring users can access the data they need.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India using this dedicated endpoint, which is essential for local traders.
- News Endpoint: The Metals-API includes a news endpoint that allows users to retrieve the latest articles related to various metals, keeping them informed about market developments.
List of Symbols
Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Latest Rates Endpoint
{
"success": true,
"timestamp": 1753412619,
"base": "USD",
"date": "2025-07-25",
"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": 1753326219,
"base": "USD",
"date": "2025-07-24",
"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-07-18",
"end_date": "2025-07-25",
"base": "USD",
"rates": {
"2025-07-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-25": {
"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": 1753412619,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-18",
"end_date": "2025-07-25",
"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
{
"success": true,
"timestamp": 1753412619,
"base": "USD",
"date": "2025-07-25",
"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": 1753412619,
"base": "USD",
"date": "2025-07-25",
"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 Documentation is an invaluable resource. Additionally, the Metals-API Supported Symbols page provides a complete list of available metal symbols, ensuring that users can access the data they need. As the metal markets continue to evolve, utilizing APIs like Metals-API will be crucial for staying informed and making data-driven decisions.