View Nagpur Gold 22k (NAGP-22k) Historical Prices through this API
Introduction
In the ever-evolving landscape of financial markets, the demand for precise and real-time data on precious metals, particularly gold (XAU), has surged. Developers and traders alike seek innovative solutions to access historical prices and market insights. The Metals-API stands out as a powerful tool that provides comprehensive access to gold prices, enabling users to harness the potential of data analytics and technology integration in trading.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, often serving as a hedge against inflation and economic uncertainty. As digital transformation sweeps through the financial sector, the integration of technology in trading precious metals is becoming increasingly vital. The Metals-API offers a robust platform for developers to access real-time and historical data on gold prices, facilitating informed decision-making and strategic trading.
With the rise of digital asset solutions, the importance of accurate and timely data cannot be overstated. The Metals-API empowers developers to build next-generation applications that leverage data analytics for market insights, innovation in price discovery, and enhanced trading strategies. By utilizing this API, developers can create applications that not only track gold prices but also analyze trends and fluctuations over time.
API Description
The Metals-API is designed to provide developers with a seamless experience in accessing real-time and historical metals data. With its innovative capabilities, the API allows users to retrieve exchange rates, historical prices, and other essential information related to precious metals. This transformative potential enables developers to create applications that can adapt to the dynamic nature of the metals market.
For detailed information on how to utilize the API, refer to the Metals-API Documentation, which outlines the various endpoints, their functionalities, and implementation strategies.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different needs within the metals trading community. Each endpoint serves a unique purpose, allowing developers to extract valuable data efficiently. Here are some of the key features:
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, every 10 minutes, or even more frequently. This feature is crucial for traders who need to stay informed about the latest market movements.
{
"success": true,
"timestamp": 1776644121,
"base": "USD",
"date": "2026-04-20",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Accessing historical rates is essential for analyzing trends and making informed predictions. The Historical Rates Endpoint allows users to query historical rates dating back to 2019 by appending a specific date in the format YYYY-MM-DD. This feature is invaluable for developers looking to build applications that require historical data analysis.
{
"success": true,
"timestamp": 1776557721,
"base": "USD",
"date": "2026-04-19",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Bid and Ask Endpoint
The Bid and Ask Endpoint provides real-time bid and ask prices for metals, allowing traders to gauge market sentiment and make timely decisions. This endpoint is particularly useful for those looking to execute trades at optimal prices.
{
"success": true,
"timestamp": 1776644121,
"base": "USD",
"date": "2026-04-20",
"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": 1776644121,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint enables users to query the API for daily historical rates between two specified dates. This functionality is essential for developers looking to analyze price movements over time and identify patterns in the market.
{
"success": true,
"timeseries": true,
"start_date": "2026-04-13",
"end_date": "2026-04-20",
"base": "USD",
"rates": {
"2026-04-13": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2026-04-15": {
"XAU": 0.000483,
"XAG": 0.0382
},
"2026-04-20": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint allows users to track how currencies fluctuate on a day-to-day basis. This feature is particularly useful for traders looking to understand market volatility and make informed decisions based on price changes.
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-13",
"end_date": "2026-04-20",
"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 candlestick patterns and other technical analysis methods.
{
"success": true,
"timestamp": 1776644121,
"base": "USD",
"date": "2026-04-20",
"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 provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for developers interested in analyzing the historical performance of metals traded on the London Metal Exchange.
{
"success": true,
"timestamp": 1776557721,
"base": "USD",
"date": "2026-04-19",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825
},
"unit": "per troy ounce"
}
API Key and Response
To access the Metals-API, users must obtain an API key, which is passed into the API base URL's access_key parameter. This key is essential for authentication and authorization, ensuring that only authorized users can access the data.
Exchange rates delivered by the Metals-API are, by default, relative to USD. All data is returned in a structured JSON format, making it easy for developers to integrate into their applications.
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. This resource is invaluable for developers looking to understand the various metals available for trading and analysis.
Conclusion
The Metals-API offers a powerful solution for developers seeking to access real-time and historical data on gold and other precious metals. With its extensive range of endpoints, the API empowers users to build innovative applications that leverage data analytics and market insights. By utilizing features such as the Latest Rates Endpoint, Historical Rates Endpoint, and Bid and Ask Endpoint, developers can create tools that enhance trading strategies and provide valuable insights into market trends.
As the financial landscape continues to evolve, the integration of technology in trading precious metals will become increasingly important. The Metals-API stands at the forefront of this transformation, providing the tools necessary for developers to succeed in a competitive market. For more information on how to get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation and usage.