Get Jaipur Gold 22k (JAIP-22k) Historical Prices with Time Series Data using this API

Get Jaipur Gold 22k (JAIP-22k) Historical Prices with Time Series Data using this API
In the ever-evolving landscape of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. For developers and traders interested in Gold (XAU), the Metals-API offers a robust solution for retrieving historical prices, including the specific rates for Jaipur Gold 22k (JAIP-22k). This blog post will delve into the capabilities of the Metals-API, focusing on how to access historical prices and leverage various endpoints to gain insights into market trends.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and currency fluctuations. In recent years, the digital transformation in precious metals trading has opened new avenues for investors and developers alike. The integration of data analytics and technology has revolutionized how market insights are gathered and utilized. With the rise of digital asset solutions, traders can now access real-time data, enabling them to make swift decisions based on the latest market trends.
As the demand for gold continues to rise, understanding its historical prices becomes essential for forecasting future trends. The Metals-API provides a comprehensive platform for accessing this data, allowing developers to build next-generation applications that can analyze and visualize gold price movements over time. By utilizing the API, traders can innovate their price discovery processes and enhance their trading strategies.
API Description
The Metals-API is a powerful tool designed to provide real-time and historical data for various metals, including gold, silver, platinum, and palladium. With its user-friendly interface and extensive documentation, developers can easily integrate the API into their applications. The API empowers users to access a wealth of information, including the latest rates, historical prices, and fluctuations, all in a structured format.
For more detailed information, you can visit the Metals-API Website or check the Metals-API Documentation for comprehensive guidance on how to utilize the API effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, allowing users to retrieve data in real-time or access historical records. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated every 60 minutes or 10 minutes. This feature is crucial for traders looking to make timely decisions based on the latest market conditions.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API call, developers can retrieve past rates, which is essential for trend analysis.
- Bid And Ask Endpoint: This endpoint allows users to retrieve real-time bid and ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: This powerful feature allows users to query the API for daily historical rates between two specified dates, making it easier to analyze trends over time.
- Fluctuation Endpoint: Users can track how prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This endpoint provides information about gold rates by carat, allowing users to understand pricing variations based on purity.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, which is useful for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive historical analysis.
- API Key: Each user is assigned a unique API key, which 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 interpretation.
- Available Endpoints: The Metals-API offers numerous endpoints, each providing distinct functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring users have access to the latest symbols.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for local traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, helping users stay 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
Understanding how to interpret API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1749783616,
"base": "USD",
"date": "2025-06-13",
"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"
}
This response indicates that the latest exchange rates for gold (XAU) and other metals are provided relative to USD. The "timestamp" field denotes when the data was last updated, while the "rates" object contains the current rates for each metal.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1749697216,
"base": "USD",
"date": "2025-06-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for a specific date. The "rates" object provides the exchange rates for that day, allowing users to analyze past performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-06-06",
"end_date": "2025-06-13",
"base": "USD",
"rates": {
"2025-06-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-13": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows users to retrieve daily rates over a specified period. This data is invaluable for trend analysis and forecasting.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1749783616,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how to convert an amount from USD to gold (XAU). The "result" field shows the equivalent amount in troy ounces, providing a straightforward conversion mechanism.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-06",
"end_date": "2025-06-13",
"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"
}
The fluctuation endpoint provides insights into how prices have changed over a specified period. The "change" and "change_pct" fields are particularly useful for understanding market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1749783616,
"base": "USD",
"date": "2025-06-13",
"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 endpoint provides open, high, low, and close prices for a specific date, which is essential for traders conducting technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1749783616,
"base": "USD",
"date": "2025-06-13",
"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"
}
The bid/ask endpoint provides current bid and ask prices, which are crucial for understanding market liquidity and making informed trading decisions.
Conclusion
The Metals-API is an invaluable resource for developers and traders looking to access historical prices and real-time data for precious metals like gold. By leveraging the various endpoints offered by the API, users can gain insights into market trends, analyze price fluctuations, and make informed trading decisions. Whether you are interested in the latest rates, historical data, or specific metrics like bid and ask prices, the Metals-API provides a comprehensive solution tailored to meet your needs.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation for detailed guidance, or explore the Metals-API Supported Symbols page to familiarize yourself with the available metal symbols. With the right tools and data at your fingertips, you can navigate the precious metals market with confidence and precision.