The Easiest Way to Get Rhodium (XRH) Historical Rates Using Public APIs
The Easiest Way to Get Rhodium (XRH) Historical Rates Using Public APIs
In the rapidly evolving world of finance and commodities, having access to accurate and timely data is crucial. For those interested in precious metals, understanding historical prices can provide valuable insights into market trends and investment opportunities. One of the most effective ways to access historical rates for metals like Rhodium (XRH) is through the Metals-API. This blog post will guide you through the process of retrieving historical prices using the Metals-API, including example endpoints, parameters, and data formats.
Metals-API Information
The Metals-API is a powerful tool that provides real-time and historical data for various metals. It is designed for developers looking to integrate metal price data into their applications, enabling them to build next-generation financial tools. The API supports a wide range of metals, including Gold (XAU), Silver (XAG), Platinum (XPT), Palladium (XPD), and of course, Rhodium (XRH).
About Rhodium (XRH)
Rhodium is a rare and precious metal that has gained significant attention in recent years due to its unique properties and applications, particularly in the automotive industry for catalytic converters. As the demand for cleaner emissions increases, the value of Rhodium has seen substantial fluctuations. Understanding these price movements is essential for investors and industry professionals alike.
Digital transformation in metal markets has led to the integration of advanced technologies and data analytics. The Metals-API exemplifies this transformation by providing developers with the tools to access and analyze metal prices in real-time. This capability allows for smarter technology integration, enabling businesses to make informed decisions based on accurate data.
API Description
The Metals-API offers a comprehensive suite of features that empower developers to access metal price data efficiently. With capabilities such as real-time exchange rates, historical data retrieval, and conversion functionalities, the API is a valuable resource for anyone working with metals. The API is designed to be user-friendly, with extensive documentation available at the Metals-API Documentation.
One of the standout features of the Metals-API is its ability to provide historical rates dating back to 2019. This allows users to analyze trends over time and make data-driven decisions. Additionally, the API supports various endpoints that cater to different needs, such as retrieving the latest rates, historical data, bid and ask prices, and more.
Key Features and Endpoints
The Metals-API comes equipped with several key features that enhance its usability:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated at intervals of 60 minutes, 10 minutes, or even more frequently. This feature is essential for applications requiring up-to-the-minute pricing information.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical price data for Rhodium and other metals.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices, which are crucial for trading applications.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert amounts from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, providing insights into price trends over specific periods.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, which is vital for understanding market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed price information, including opening, high, low, and closing prices for a specific time period.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specific date, which is useful for identifying market extremes.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, providing context and insights into market movements.
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. This resource is invaluable for developers looking to integrate specific metal data into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the following endpoint:
{
"success": true,
"timestamp": 1768795686,
"base": "USD",
"date": "2026-01-19",
"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 using this endpoint:
{
"success": true,
"timestamp": 1768709286,
"base": "USD",
"date": "2026-01-18",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
To get exchange rates for a specific time period, use the time-series endpoint:
{
"success": true,
"timeseries": true,
"start_date": "2026-01-12",
"end_date": "2026-01-19",
"base": "USD",
"rates": {
"2026-01-12": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-14": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-19": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
To convert any amount from one metal to another or to/from USD, use the convert endpoint:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1768795686,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates with this endpoint:
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-12",
"end_date": "2026-01-19",
"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
To get OHLC data for a specific time period, use this endpoint:
{
"success": true,
"timestamp": 1768795686,
"base": "USD",
"date": "2026-01-19",
"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 using this endpoint:
{
"success": true,
"timestamp": 1768795686,
"base": "USD",
"date": "2026-01-19",
"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
Accessing historical rates for Rhodium (XRH) and other metals has never been easier, thanks to the Metals-API. With its comprehensive set of features, including real-time data, historical rates, and various endpoints tailored for different needs, developers can build robust applications that leverage metal price data effectively. Whether you are looking to analyze market trends, perform currency conversions, or track fluctuations, the Metals-API provides the tools necessary to succeed.
For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols page for a complete list of available metals. With the right tools and data at your fingertips, you can navigate the complex world of metal markets with confidence.