Find Delhi Gold 18k (DELH-18k) Historical Prices via this API
Introduction
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. With the rise of digital transformation in the precious metals market, the ability to access historical prices and real-time data has become crucial for investors and developers alike. The Metals-API offers a robust solution for accessing historical prices of gold and other metals, empowering developers to create innovative applications that leverage real-time market insights.
About Gold (XAU)
Gold is not just a commodity; it is a symbol of stability and a hedge against inflation. In recent years, the digital transformation in precious metals has opened new avenues for trading and investment. Data analytics and market insights play a pivotal role in understanding gold price movements, allowing investors to make informed decisions. The integration of technology in trading has led to innovative price discovery methods, enabling users to access gold prices in real-time and analyze historical trends.
The Metals-API Documentation provides comprehensive information on how to utilize the API to access gold prices, including historical data that dates back to 2019. This capability is essential for developers looking to build applications that require accurate and timely data.
API Description
The Metals-API is designed to provide developers with a powerful tool for accessing real-time and historical metals data. With its innovative features, the API enables the creation of next-generation applications that can analyze market trends, track price fluctuations, and convert currencies seamlessly. The API's capabilities extend beyond mere data retrieval; it empowers developers to integrate advanced analytics and insights into their applications.
For instance, the API's Latest Rates Endpoint allows users to retrieve real-time exchange rate data, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. This feature is invaluable for applications that require up-to-the-minute pricing information.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to fulfill specific needs in the realm of metals trading and analysis. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rates for all available metals. Depending on your subscription plan, you can receive updates every 60 minutes or more frequently. This endpoint is essential for applications that need to display current market prices.
{
"success": true,
"timestamp": 1781828157,
"base": "USD",
"date": "2026-06-19",
"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
The Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. This feature is particularly useful for developers who need to analyze trends over time or for applications that require historical data for reporting purposes.
{
"success": true,
"timestamp": 1781741757,
"base": "USD",
"date": "2026-06-18",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid And Ask Endpoint provides real-time bid and ask prices for metals. This feature is crucial for traders who need to understand the market's current buying and selling prices. Depending on your subscription plan, this endpoint can deliver valuable insights into market dynamics.
{
"success": true,
"timestamp": 1781828157,
"base": "USD",
"date": "2026-06-19",
"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"
}
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 applications that require currency conversion capabilities.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1781828157,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is ideal for applications that need to analyze price trends over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2026-06-12",
"end_date": "2026-06-19",
"base": "USD",
"rates": {
"2026-06-12": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-14": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-19": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint enables users to track rate fluctuations between two dates. This feature is essential for understanding market volatility and making informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-12",
"end_date": "2026-06-19",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The Open/High/Low/Close (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 analyze price movements and trends.
{
"success": true,
"timestamp": 1781828157,
"base": "USD",
"date": "2026-06-19",
"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"
}
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 applications focused on industrial metals.
{
"success": true,
"timestamp": 1781741757,
"base": "USD",
"date": "2026-06-18",
"rates": {
"LME_CU": 0.294118,
"LME_AL": 0.434783
},
"unit": "per troy ounce"
}
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 integrate various metals into their applications.
Conclusion
In conclusion, the Metals-API offers a powerful suite of tools for accessing real-time and historical gold prices, along with a variety of other metals. By leveraging the API's capabilities, developers can create innovative applications that provide valuable insights into market trends and price fluctuations. The ability to access historical data, real-time rates, and conversion features makes the Metals-API an essential resource for anyone involved in the precious metals market.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation and usage.