Get Delhi Gold 18k (DELH-18k) price classifications using this API
Introduction
In the ever-evolving landscape of precious metals trading, understanding the dynamics of Gold (XAU) pricing is crucial for investors and developers alike. The Metals-API provides a powerful solution for accessing real-time and historical data on Gold prices, enabling developers to create innovative applications that leverage this information. This blog post explores the capabilities of the Metals-API, focusing on how it can be utilized to classify and retrieve the price of 18k gold (DELH-18k) and other precious metals.
About Gold (XAU)
Gold has long been a symbol of wealth and a safe haven asset, especially during economic uncertainty. With the rise of digital transformation in the precious metals market, the integration of technology in trading has become more pronounced. Data analytics and market insights derived from real-time data can significantly enhance decision-making processes for traders and investors.
The Metals-API stands at the forefront of this transformation, offering developers the tools to harness the power of data analytics and technology integration. By providing access to real-time exchange rates, historical data, and various endpoints, the Metals-API empowers developers to build next-generation applications that can innovate price discovery and offer digital asset solutions.
API Description
The Metals-API is a comprehensive JSON API that provides access to metals prices and currency conversion. It allows developers to retrieve real-time and historical data for various metals, including Gold (XAU), Silver (XAG), Platinum (XPT), and Palladium (XPD). The API is designed to be user-friendly, with extensive documentation available at the Metals-API Documentation.
With the Metals-API, developers can create applications that track market trends, analyze price fluctuations, and convert between different metal values. The API's capabilities extend beyond mere data retrieval; it enables the creation of sophisticated trading algorithms and financial analysis tools that can adapt to market changes in real-time.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to serve specific needs in the realm of metals trading. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for various metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes, every 10 minutes, or even more frequently. This endpoint is essential for traders who need to make quick decisions based on the latest market conditions.
{
"success": true,
"timestamp": 1784247048,
"base": "USD",
"date": "2026-07-17",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Accessing historical rates is crucial for analyzing trends over time. The Historical Rates Endpoint allows users to retrieve data dating back to 2019, enabling comprehensive market analysis. By appending a specific date to the API request, developers can obtain historical pricing data for any metal.
{
"success": true,
"timestamp": 1784160648,
"base": "USD",
"date": "2026-07-16",
"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 make informed decisions based on current market conditions. This endpoint is particularly useful for those engaged in active trading, as it provides insights into market liquidity.
{
"success": true,
"timestamp": 1784247048,
"base": "USD",
"date": "2026-07-17",
"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": 1784247048,
"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 invaluable for analyzing trends and making predictions based on past performance.
{
"success": true,
"timeseries": true,
"start_date": "2026-07-10",
"end_date": "2026-07-17",
"base": "USD",
"rates": {
"2026-07-10": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2026-07-12": {
"XAU": 0.000483,
"XAG": 0.0382
},
"2026-07-17": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. This endpoint is useful for traders looking to understand market volatility and make informed decisions based on price movements.
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-10",
"end_date": "2026-07-17",
"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 allows users to retrieve the open, high, low, and close prices for a specific time period. This data is essential for technical analysis and helps traders identify market trends.
{
"success": true,
"timestamp": 1784247048,
"base": "USD",
"date": "2026-07-17",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Carat Endpoint
The Carat Endpoint allows users to retrieve information about Gold rates by Carat. This feature is particularly useful for jewelers and consumers looking to understand the value of gold jewelry based on its carat weight.
{
"success": true,
"rates": {
"18k": 0.000482,
"24k": 0.000482
}
}
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint enables users to query the API to get the lowest and highest price for a specific date. This information is crucial for traders looking to identify price extremes and make strategic decisions.
{
"success": true,
"lowest": {
"XAU": 0.000480
},
"highest": {
"XAU": 0.000485
}
}
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 those involved in trading metals on the London Metal Exchange.
{
"success": true,
"timestamp": 1784160648,
"base": "USD",
"date": "2026-07-16",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825
}
}
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. The API delivers exchange rates relative to USD by default, and all data is returned in 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 full scope of available data.
Conclusion
The Metals-API is a transformative tool for developers working in the precious metals market. By providing access to real-time and historical data for Gold (XAU) and other metals, it empowers users to create innovative applications that can analyze market trends, track price fluctuations, and facilitate currency conversions. With its extensive range of endpoints and user-friendly documentation, the Metals-API is an essential resource for anyone looking to leverage data in the precious metals trading space.
For more information on how to implement the Metals-API in your applications, explore the Metals-API Documentation and start building your next project today.