Fetch daily Nagpur Gold 22k (NAGP-22k) prices using this API
Fetch Daily Nagpur Gold 22k (NAGP-22k) Prices Using This API
In the ever-evolving landscape of precious metals trading, the demand for accurate and real-time data has never been more critical. For developers and traders alike, having access to reliable gold prices, especially for specific markets like Nagpur's 22k gold (NAGP-22k), is essential. The Metals-API provides a robust solution for fetching daily gold prices and other metal data, empowering users to make informed decisions based on the latest market insights.
About Gold (XAU)
Gold, represented by the symbol XAU, is not just a commodity; it is a digital asset that has undergone a significant transformation in recent years. The integration of technology in trading has revolutionized how investors access and analyze gold prices. With the rise of data analytics, traders can now leverage market insights to predict price movements and make strategic decisions. The digital transformation in precious metals trading has paved the way for innovative solutions that enhance price discovery and trading efficiency.
The Metals-API stands at the forefront of this transformation, offering developers the tools needed to build next-generation applications that can track gold prices in real-time. By utilizing advanced technology, the API provides seamless integration for applications, enabling users to access comprehensive data analytics and insights into the gold market.
API Description
The Metals-API is a powerful tool designed to provide real-time and historical data for various metals, including gold. With its extensive capabilities, developers can create applications that cater to the needs of traders and investors looking for accurate pricing information. The API empowers users to access a wealth of data, including the latest rates, historical trends, and conversion capabilities, all through a simple and intuitive interface.
For more detailed information, you can refer to the Metals-API Documentation, which outlines the various features and functionalities available to users.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide different functionalities, making it a versatile tool for developers. Here are some of the key features:
- Latest Rates Endpoint: This endpoint delivers real-time exchange rate data for gold and other metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes, ensuring that users have access to the most current market prices.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can query the API for past prices, allowing for in-depth market analysis and trend identification.
- Bid And Ask Endpoint: This feature provides real-time bid and ask prices for metals, enabling traders to gauge market sentiment and make informed trading decisions.
- Convert Endpoint: The conversion endpoint allows users to convert amounts from one metal to another or to/from USD. This is particularly useful for traders dealing in multiple currencies and metals.
- Time-Series Endpoint: This endpoint enables users to query daily historical rates between two specified dates, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Users can track how prices fluctuate on a day-to-day basis, which is essential for understanding market volatility and making strategic trading decisions.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, providing specific pricing information for different purities of gold.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for a given date, which is crucial for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, offering a snapshot of daily trading activity.
- Historical LME Endpoint: Access 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, which is required for authentication when making requests to the API.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
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 interact with the Metals-API is crucial for developers. Below are some examples of API responses for various endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1781395771,
"base": "USD",
"date": "2026-06-14",
"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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1781309371,
"base": "USD",
"date": "2026-06-13",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-06-07",
"end_date": "2026-06-14",
"base": "USD",
"rates": {
"2026-06-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-14": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1781395771,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-07",
"end_date": "2026-06-14",
"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) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1781395771,
"base": "USD",
"date": "2026-06-14",
"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
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1781395771,
"base": "USD",
"date": "2026-06-14",
"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
The Metals-API is an invaluable resource for developers and traders seeking to access real-time and historical data on gold and other metals. By leveraging the API's extensive features, users can build applications that provide critical insights into market trends and pricing. Whether you are looking to fetch the latest rates, analyze historical data, or convert between different metals, the Metals-API offers a comprehensive solution.
For those interested in exploring the capabilities of the Metals-API further, I encourage you to visit the Metals-API Website and check out the Metals-API Documentation for detailed guidance on implementation. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metal symbols, ensuring that you have all the information you need to get started.