Fetch Patna Gold 22k (PATN-22k) prices through this API

Fetch Patna Gold 22k (PATN-22k) Prices Through This API
Metals-API provides a robust solution for fetching the latest prices of various metals, including the highly sought-after Patna Gold 22k (PATN-22k). This blog post delves into the intricacies of the Metals-API, exploring its capabilities, features, and how it can empower developers to create innovative applications in the precious metals market.
Metals-API Information
About Gold (XAU)
XAU, has long been a cornerstone of wealth and investment. With the digital transformation sweeping through financial markets, the integration of data analytics and technology in trading has become essential. The Metals-API stands at the forefront of this transformation, offering developers access to real-time gold prices, historical data, and advanced analytics.
API Description
Metals-API is designed to deliver real-time metals data with a focus on innovation and technological advancement. By leveraging this API, developers can create next-generation applications that cater to the needs of traders and investors in the precious metals market. The API provides a comprehensive suite of features, including endpoints for fetching the latest rates, historical data, and even bid and ask prices.
Metals-API Documentation, which outlines the various functionalities and how to implement them effectively. The API is structured to support a wide range of symbols, including gold, silver, platinum, and palladium, making it a versatile tool for any developer in the field.
Key Features and Endpoints
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on the user's subscription plan. Developers can access the latest gold prices, including Patna Gold 22k, with just a simple API call.
- Historical Rates Endpoint: For those interested in analyzing trends over time, the historical rates endpoint allows users to query data dating back to 2019. This feature is invaluable for traders looking to understand market movements.
- Bid And Ask Endpoint: This powerful feature enables developers to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion feature allows users to convert any amount from one metal to another or to/from USD, facilitating seamless transactions and calculations.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two chosen dates, making it easier to analyze price movements over specific periods.
- Fluctuation Endpoint: Developers can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, which is particularly useful for jewelers and traders dealing in various gold purities.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specific date, aiding in market analysis and decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides comprehensive data on the open, high, low, and close prices for metals, essential for traders looking to analyze market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for in-depth analysis of market trends.
- API Key: Each user is provided with a unique API key, which is essential for authentication and accessing the API's features.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency and ease of use for developers.
- Available Endpoints: The Metals-API offers a wide range of endpoints, each designed to provide specific functionalities tailored to the needs of developers.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals, ensuring developers have access to the most up-to-date information.
- Gold Price India Endpoint: Specifically designed for the Indian market, this endpoint retrieves the latest gold prices in India, including Patna Gold 22k.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context and insights into market movements.
List of Symbols
Metals-API Supported Symbols page. This resource is invaluable for developers looking to integrate various metals into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
{
"success": true,
"timestamp": 1752987619,
"base": "USD",
"date": "2025-07-20",
"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"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1752901219,
"base": "USD",
"date": "2025-07-19",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-13",
"end_date": "2025-07-20",
"base": "USD",
"rates": {
"2025-07-13": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-15": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-20": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1752987619,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-13",
"end_date": "2025-07-20",
"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"
}
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1752987619,
"base": "USD",
"date": "2025-07-20",
"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"
}
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1752987619,
"base": "USD",
"date": "2025-07-20",
"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"
}
Conclusion
Metals-API is a powerful tool for developers looking to access real-time data on precious metals, including Patna Gold 22k (PATN-22k). With its extensive range of features and endpoints, the API empowers users to build innovative applications that can analyze market trends, track historical data, and facilitate seamless transactions.
Metals-API Website and explore the comprehensive Metals-API Documentation for detailed guidance on implementation.