Fetch Raipur Gold 18k (RAIP-18k) Historical Prices via this API
Introduction
In the world of precious metals trading, obtaining accurate and timely data is crucial for making informed decisions. One of the most sought-after metals is gold, represented by the symbol XAU. For developers and traders alike, accessing historical prices for gold can provide valuable insights into market trends and price movements. This blog post will explore how to fetch historical prices for Raipur Gold 18k (RAIP-18k) using the Metals-API, a powerful tool that offers real-time and historical data on various metals.
Metals-API Information
About Gold (XAU)
Gold has long been considered a safe haven asset, especially during times of economic uncertainty. With the digital transformation in the precious metals market, data analytics and market insights have become more accessible than ever. The integration of technology in trading has revolutionized the way investors approach gold trading. Innovations in price discovery and digital asset solutions have paved the way for a more transparent and efficient market.
The Metals-API is at the forefront of this transformation, providing developers with the tools needed to build next-generation applications that leverage real-time metals data. By utilizing the API, developers can access a wealth of information, including historical prices, current rates, and market fluctuations, all of which are essential for making informed trading decisions.
API Description
The Metals-API is designed to empower developers by providing a comprehensive suite of features that facilitate the retrieval of metals data. With a focus on innovation and technological advancement, the API allows users to access real-time exchange rates, historical data, and various endpoints tailored to specific needs. Whether you are looking to track market trends or analyze historical price movements, the Metals-API offers the capabilities to meet your requirements.
For detailed information on how to implement the API, refer to the Metals-API Documentation, which provides comprehensive guidelines on usage, endpoints, and response structures.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data, updated every 60 minutes or more frequently depending on your subscription plan. It allows users to access the current price of gold (XAU) and other metals.
- Historical Rates Endpoint: Users can retrieve historical rates for gold dating back to 2019. By appending a specific date to the API call, developers can access past prices and analyze trends over time.
- Bid And Ask Endpoint: This feature enables users to obtain real-time bid and ask prices for gold and other metals, providing insights into market liquidity and pricing.
- Convert Endpoint: The conversion endpoint allows users to convert any amount from one metal to another or to/from USD, making it easier to analyze value across different currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, enabling detailed analysis of price movements over time.
- Fluctuation Endpoint: Users can track how gold prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is particularly useful for jewelers and traders dealing in various purities.
- Lowest/Highest Price Endpoint: This endpoint provides users with the lowest and highest prices for gold over a specified period, helping traders identify price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access OHLC data for gold, which is essential for technical analysis and understanding market trends.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Each user is assigned a unique API key that must be included in API requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data retrieval.
- Available Endpoints: The Metals-API features 14 different endpoints, each offering unique functionalities tailored to various data needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
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.
API Endpoint Examples and Responses
Latest Rates Endpoint
The Latest Rates Endpoint allows users to get real-time exchange rates for all available metals. Here is an example response:
{
"success": true,
"timestamp": 1764252059,
"base": "USD",
"date": "2025-11-27",
"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"
}
In this response, the "rates" object contains the current price of gold (XAU) along with other metals, expressed in terms of USD per troy ounce.
Historical Rates Endpoint
To access historical exchange rates for any date since 1999, the Historical Rates Endpoint can be utilized. Here is an example response:
{
"success": true,
"timestamp": 1764165659,
"base": "USD",
"date": "2025-11-26",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical price of gold (XAU) for a specific date, allowing users to analyze past market behavior.
Time-series Endpoint
The Time-Series Endpoint enables users to get exchange rates for a specific time period. Here is an example response:
{
"success": true,
"timeseries": true,
"start_date": "2025-11-20",
"end_date": "2025-11-27",
"base": "USD",
"rates": {
"2025-11-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-11-27": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of gold prices over a specified period, allowing for detailed trend analysis.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. Here is an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1764252059,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates the conversion of 1000 USD to gold (XAU), providing the equivalent amount in troy ounces.
Fluctuation Endpoint
The Fluctuation Endpoint allows users to track rate fluctuations between two dates. Here is an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-20",
"end_date": "2025-11-27",
"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"
}
This response provides insights into how gold prices have fluctuated over the specified period, including percentage changes.
OHLC (Open/High/Low/Close) Price Endpoint
The OHLC Price Endpoint provides open, high, low, and close prices for a specific time period. Here is an example response:
{
"success": true,
"timestamp": 1764252059,
"base": "USD",
"date": "2025-11-27",
"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"
}
This response is essential for traders who rely on technical analysis to make informed decisions based on price movements throughout the trading day.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals. Here is an example response:
{
"success": true,
"timestamp": 1764252059,
"base": "USD",
"date": "2025-11-27",
"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"
}
This response provides critical information for traders looking to understand market liquidity and pricing dynamics.
Conclusion
In conclusion, the Metals-API offers a robust and comprehensive solution for developers seeking to access historical prices for gold and other precious metals. By leveraging the various endpoints available, users can gain valuable insights into market trends, fluctuations, and pricing dynamics. Whether you are a trader, developer, or financial analyst, the ability to fetch historical prices for Raipur Gold 18k (RAIP-18k) through the Metals-API can significantly enhance your decision-making process.
For more information on how to implement the API and access its features, visit the Metals-API Documentation. Additionally, explore the Metals-API Supported Symbols page for a complete list of available metals. The Metals-API Website is also a valuable resource for understanding the full capabilities of this powerful API.