Fetch Jaipur Gold 24k (JAIP-24k) Historical Prices through this API

Introduction
In the world of precious metals trading, having access to 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, the ability to fetch historical prices for gold, such as the Fetch Jaipur Gold 24k (JAIP-24k), is essential for analyzing market trends and making strategic investments. This blog post will delve into how to obtain historical prices using the Metals-API, a powerful tool that provides real-time and historical data for various metals.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability. In recent years, the digital transformation in precious metals trading has revolutionized how investors access and analyze gold prices. With the integration of data analytics and market insights, traders can now leverage technology to make more informed decisions. The Metals-API plays a pivotal role in this transformation, providing developers with the tools to build next-generation applications that can analyze gold prices in real-time.
Through the Metals-API, users can access a wealth of information about gold, including its historical prices, current market trends, and fluctuations. This API empowers developers to create innovative solutions for price discovery and digital asset management, allowing for a more streamlined trading experience.
API Description
The Metals-API is designed to provide developers with comprehensive access to metals data, including gold, silver, platinum, and palladium. With its robust set of features, the API enables users to fetch real-time and historical prices, perform currency conversions, and analyze market trends. The API's capabilities are built on a foundation of technological advancement, ensuring that users have access to the most accurate and up-to-date information available.
For more detailed information, refer to the Metals-API Documentation, which outlines the various endpoints and their functionalities. The API supports a wide range of symbols, which can be found on the Metals-API Supported Symbols page.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability for developers and traders. Below are some of the most important endpoints and their applications:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for various metals, including gold. Depending on your subscription plan, this endpoint can return data updated every 60 minutes or every 10 minutes. This feature is crucial for traders who need to make quick decisions based on the latest market conditions.
{
"success": true,
"timestamp": 1746864019,
"base": "USD",
"date": "2025-05-10",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. This is particularly useful for analyzing trends over time and making informed investment decisions. Users can query the Metals-API by appending a specific date to retrieve the historical rates for gold and other metals.
{
"success": true,
"timestamp": 1746777619,
"base": "USD",
"date": "2025-05-09",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that enables users to retrieve real-time bid and ask prices for metals. This information is essential for traders looking to execute buy or sell orders at the best possible prices.
{
"success": true,
"timestamp": 1746864019,
"base": "USD",
"date": "2025-05-10",
"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
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1746864019,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting in-depth analyses of price movements over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2025-05-03",
"end_date": "2025-05-10",
"base": "USD",
"rates": {
"2025-05-03": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-05-05": {
"XAU": 0.000483,
"XAG": 0.0382
},
"2025-05-10": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
Using the Fluctuation Endpoint, users can retrieve information about how currencies fluctuate on a day-to-day basis. This feature is essential for understanding market volatility and making informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-03",
"end_date": "2025-05-10",
"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
The OHLC Price Endpoint provides users with the open, high, low, and close prices for a specific time period. This data is crucial for traders who rely on technical analysis to make trading decisions.
{
"success": true,
"timestamp": 1746864019,
"base": "USD",
"date": "2025-05-10",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME Endpoint allows users to access historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for traders interested in the London Metal Exchange's pricing data.
API Key and Response
Your API Key is a unique identifier that must be included in the API base URL's access_key parameter. This key is essential for authenticating your requests and ensuring that you have access to the data you need. The API response will typically include exchange rates relative to USD, with all data returned in a structured JSON format.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of tools for accessing historical prices and real-time data for gold and other precious metals. By leveraging the various endpoints, developers can create innovative applications that enhance trading strategies and market analysis. Whether you are interested in the latest rates, historical data, or fluctuations, the Metals-API provides the necessary resources to make informed decisions in the precious metals market.
For more information about the API's capabilities, visit the Metals-API Documentation, explore the Metals-API Supported Symbols, and check out the Metals-API Website for additional resources and support.