Get Delhi Gold 18k (DELH-18k) prices using this API
Introduction
In the rapidly evolving world of finance, the demand for real-time data and analytics has never been greater, especially in the precious metals market. One of the most sought-after metals is gold, represented by the symbol XAU. For developers and traders looking to access the latest gold prices and market insights, the Metals-API offers a robust solution. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve Delhi Gold 18k (DELH-18k) prices and explore the innovative features that make this API a powerful tool for market analysis.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and its value is influenced by various factors, including market demand, geopolitical events, and economic indicators. The digital transformation in the precious metals sector has opened new avenues for data analytics and market insights. With the integration of technology in trading, developers can leverage APIs to innovate price discovery and create digital asset solutions.
The Metals-API provides real-time data that empowers developers to build next-generation applications. By utilizing this API, users can access comprehensive market insights, enabling them to make informed decisions based on the latest trends and fluctuations in gold prices.
API Description
The Metals-API is designed to provide developers with real-time and historical data on various metals, including gold, silver, platinum, and palladium. This API is particularly valuable for applications that require up-to-date pricing information, historical trends, and analytics. With its user-friendly interface and extensive documentation, developers can easily integrate the API into their applications.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rates updated at intervals based on the user's subscription plan. This ensures that users have access to the most current data available, which is crucial for making timely trading decisions.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different needs within the precious metals market. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. For example, a typical response might look like this:
{
"success": true,
"timestamp": 1764115265,
"base": "USD",
"date": "2025-11-26",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
- Historical Rates Endpoint: Users can access historical rates dating back to 2019 by appending a specific date to the API call. This is particularly useful for analyzing trends over time. A sample response might be:
{
"success": true,
"timestamp": 1764028865,
"base": "USD",
"date": "2025-11-25",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825
},
"unit": "per troy ounce"
}
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insight into market liquidity and pricing dynamics. An example response is as follows:
{
"success": true,
"timestamp": 1764115265,
"base": "USD",
"date": "2025-11-26",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
- Convert Endpoint: This endpoint allows users to convert any amount from one metal to another or to/from USD. For instance, converting 1000 USD to gold might yield:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1764115265,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
- Time-Series Endpoint: This feature allows users to query for daily historical rates between two specified dates, enabling detailed analysis of price movements over time. A typical response might look like this:
{
"success": true,
"timeseries": true,
"start_date": "2025-11-19",
"end_date": "2025-11-26",
"base": "USD",
"rates": {
"2025-11-19": {
"XAU": 0.000485
},
"2025-11-26": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
- Fluctuation Endpoint: Users can track rate fluctuations between two dates, which is essential for understanding market volatility. An example response is:
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-19",
"end_date": "2025-11-26",
"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: This endpoint provides the open, high, low, and close prices for a specific time period, which is critical for traders looking to analyze market trends. A sample response might be:
{
"success": true,
"timestamp": 1764115265,
"base": "USD",
"date": "2025-11-26",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers. The response format is similar to other endpoints, providing detailed pricing based on carat weight.
- Lowest/Highest Price Endpoint: Users can query for the lowest and highest prices for a specified date, which can help in identifying market extremes. An example response might look like this:
{
"success": true,
"lowest": {
"XAU": 0.000475
},
"highest": {
"XAU": 0.000490
}
}
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for extensive analysis of market trends over a longer period.
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 through the API.
Conclusion
The Metals-API is a powerful tool for developers and traders alike, offering a wealth of features that facilitate real-time access to precious metals data. By leveraging the capabilities of this API, users can gain insights into market trends, perform detailed analyses, and make informed trading decisions. Whether you're interested in the latest gold prices or historical data, the Metals-API provides the necessary tools to navigate the complexities of the precious metals market.
For more information on how to implement these features and to access the full range of capabilities, visit the Metals-API Documentation. With the right tools and data at your fingertips, you can stay ahead in the dynamic world of precious metals trading.