Discover Raipur Gold 24k (RAIP-24k) Historical Prices with Metals-API

Introduction
Metals-API. This blog post will delve into the capabilities of Metals-API, focusing on how to retrieve historical prices and other valuable data related to gold (XAU) and other metals.
About Gold (XAU)
Metals-API Overview
Metals-API is a robust JSON API that provides real-time and historical data on various metals, including gold, silver, platinum, and palladium. Its capabilities extend beyond mere price retrieval; it offers a plethora of endpoints designed to cater to the diverse needs of developers and traders. By leveraging this API, users can access critical market insights, enabling them to make data-driven decisions.
Key Features and Endpoints
Latest Rates Endpoint
{
"success": true,
"timestamp": 1745197444,
"base": "USD",
"date": "2025-04-21",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1745111044,
"base": "USD",
"date": "2025-04-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid and Ask Endpoint
{
"success": true,
"timestamp": 1745197444,
"base": "USD",
"date": "2025-04-21",
"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": 1745197444,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-04-14",
"end_date": "2025-04-21",
"base": "USD",
"rates": {
"2025-04-14": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-04-21": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-14",
"end_date": "2025-04-21",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
{
"success": true,
"timestamp": 1745197444,
"base": "USD",
"date": "2025-04-21",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
API Key and Authentication
API Response Structure
Common Use Cases
- Building trading platforms that require real-time price updates.
- Creating analytical tools for historical price analysis.
- Developing mobile applications that provide users with gold price alerts.
- Integrating with e-commerce platforms to display current metal prices.
Conclusion
Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals. The Metals-API Website is also a valuable resource for accessing the latest updates and features.