Fetch current Jaipur Gold 22k (JAIP-22k) prices via this API

Fetch Current Jaipur Gold 22k (JAIP-22k) Prices via this API
In today's digital age, the precious metals market is undergoing a significant transformation, driven by technology and data analytics. One of the most prominent symbols in this market is XAU, which represents gold. For developers and traders alike, accessing real-time data on gold prices, especially in specific markets like Jaipur, is crucial for making informed decisions. This is where the Metals-API comes into play, offering a robust solution for fetching current gold prices and much more.
Metals-API Information
The Metals-API is a powerful tool that provides real-time and historical data on various metals, including gold, silver, platinum, and palladium. With its innovative approach to data delivery, the API empowers developers to create applications that can analyze market trends, track price fluctuations, and facilitate trading strategies. By leveraging the capabilities of the Metals-API, developers can integrate precious metals data into their applications seamlessly.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, especially in times of economic uncertainty. The digital transformation in the precious metals sector has made it easier for investors to access gold prices and make informed decisions. With the rise of data analytics, market insights can now be derived from real-time data, allowing traders to react quickly to market changes.
Technology integration in trading has also revolutionized how gold is bought and sold. The Metals-API provides developers with the tools needed to create applications that can analyze gold price trends, enabling users to make data-driven decisions. Moreover, the innovation in price discovery through APIs like Metals-API allows for more accurate and timely information, which is essential for traders looking to capitalize on market movements.
Furthermore, digital asset solutions are becoming increasingly popular, with gold being tokenized and traded on various platforms. This trend highlights the importance of having access to real-time gold prices, which can be achieved through the Metals-API.
API Description
The Metals-API is designed to provide developers with comprehensive access to real-time and historical metals data. Its capabilities include fetching the latest rates, historical rates, bid and ask prices, and much more. By utilizing this API, developers can build next-generation applications that cater to the needs of traders and investors in the precious metals market.
For detailed information on how to implement the API, developers can refer to the Metals-API Documentation, which provides extensive guidance on using the API effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This is crucial for traders who need the most current prices to make informed decisions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. This endpoint allows users to query for historical rates by appending a specific date, enabling analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, which can be used to convert any amount from one currency to another. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, allowing for detailed analysis of price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and consumers looking to buy gold jewelry.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, enabling traders to identify price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is useful for traders focused on industrial metals.
- API Key: The unique key that is passed into the API base URL's access_key parameter for authentication.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The API comes with a constantly updated endpoint returning all available currencies and metals.
- Gold Price India Endpoint: Retrieve the latest gold price in India using the dedicated endpoint, which is particularly useful for local traders.
- News Endpoint: Get the latest news articles related to various metals, keeping users 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 developers. Below are examples of various endpoints and their responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1750212126,
"base": "USD",
"date": "2025-06-18",
"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"
}
The response indicates a successful query with the latest rates for various metals, including gold (XAU). The rates are provided per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1750125726,
"base": "USD",
"date": "2025-06-17",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for a specific date, allowing users to analyze past market performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-06-11",
"end_date": "2025-06-18",
"base": "USD",
"rates": {
"2025-06-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-18": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates for the specified period, which is essential for trend analysis.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1750212126,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response demonstrates how to convert an amount from one currency to another, providing the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-11",
"end_date": "2025-06-18",
"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, which is vital for understanding market dynamics.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1750212126,
"base": "USD",
"date": "2025-06-18",
"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 provides essential OHLC data, which is crucial for traders performing technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1750212126,
"base": "USD",
"date": "2025-06-18",
"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 response provides critical information for traders looking to enter or exit positions in the market.
Conclusion
The Metals-API is an invaluable resource for developers and traders in the precious metals market. By providing real-time and historical data, the API enables users to make informed decisions based on accurate market insights. With features like the latest rates, historical data, and bid/ask prices, developers can create sophisticated applications that cater to the needs of traders.
As the market continues to evolve, the integration of technology and data analytics will play a crucial role in shaping the future of precious metals trading. By leveraging the capabilities of the Metals-API, developers can stay ahead of the curve and provide their users with the tools they need to succeed in this dynamic market.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the extensive Metals-API Documentation for detailed guidance on implementation and usage.