How to get Dehradun Gold 18k (DEHR-18k) prices through an API
Introduction
In the world of precious metals trading, having access to real-time data is crucial for making informed decisions. For developers looking to integrate gold pricing into their applications, the Metals-API offers a robust solution. This blog post will explore how to get Dehradun Gold 18k (DEHR-18k) prices through the Metals-API, focusing on its capabilities, features, and how it can transform the way you interact with gold and other precious metals.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, is one of the most sought-after precious metals in the world. Its value is influenced by various factors, including market demand, geopolitical stability, and economic indicators. In recent years, the digital transformation in precious metals trading has opened new avenues for investors and developers alike. By leveraging data analytics and market insights, traders can make more informed decisions based on real-time data.
The integration of technology in trading has led to innovations in price discovery and digital asset solutions. With the rise of APIs, developers can now access real-time gold prices and historical data, enabling them to build applications that cater to the needs of investors and traders. The Metals-API is at the forefront of this transformation, providing a comprehensive suite of tools for accessing gold prices and other metal data.
API Description
The Metals-API is a powerful tool that allows developers to access real-time and historical data for various metals, including gold, silver, platinum, and palladium. This API empowers developers to create next-generation applications that require accurate and timely metals data. With its innovative features, the Metals-API is designed to meet the needs of modern traders and investors.
For more information, you can visit the Metals-API Website or check the Metals-API Documentation for detailed guidance on implementation.
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
The Latest Rates Endpoint provides real-time exchange rate data for metals, updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. This endpoint is essential for applications that require up-to-the-minute pricing information.
{
"success": true,
"timestamp": 1772324008,
"base": "USD",
"date": "2026-03-01",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access to historical rates is crucial for analyzing trends and making predictions. The Historical Rates Endpoint allows you to query rates dating back to 2019, providing valuable insights into market movements over time.
{
"success": true,
"timestamp": 1772237608,
"base": "USD",
"date": "2026-02-28",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
This endpoint is particularly useful for traders looking to understand market dynamics. Depending on your subscription plan, the Bid and Ask Endpoint retrieves real-time bid and ask prices, allowing for better trading decisions.
{
"success": true,
"timestamp": 1772324008,
"base": "USD",
"date": "2026-03-01",
"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 you to convert any amount from one metal to another or to/from USD. This feature is particularly useful for applications that require currency conversion for pricing.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772324008,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows you to query the API for daily historical rates between two dates of your choice. This feature is invaluable for analyzing price trends over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2026-02-22",
"end_date": "2026-03-01",
"base": "USD",
"rates": {
"2026-02-22": {
"XAU": 0.000485
},
"2026-03-01": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into how currencies fluctuate on a day-to-day basis. This information is crucial for traders looking to understand market volatility.
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-22",
"end_date": "2026-03-01",
"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, allowing traders to analyze market performance comprehensively.
{
"success": true,
"timestamp": 1772324008,
"base": "USD",
"date": "2026-03-01",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint allows you to query the API to get the lowest and highest price for a specific date, which is essential for understanding market extremes.
{
"success": true,
"timestamp": 1772324008,
"base": "USD",
"date": "2026-03-01",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008, which is beneficial for those interested in industrial metals.
{
"success": true,
"timestamp": 1772237608,
"base": "USD",
"date": "2026-02-28",
"rates": {
"XCU": 0.294118
},
"unit": "per troy ounce"
}
API Key and Authentication
Your API Key is the unique key that is passed into the API base URL's access_key parameter. This key is essential for authenticating your requests and ensuring secure access to the API's features.
API Response
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 to parse and integrate into your applications.
Supported Symbols Endpoint
The Metals-API provides a constantly updated endpoint that returns all available currencies. For a complete list of supported symbols, refer to the Metals-API Supported Symbols page.
News Endpoint
The News Endpoint allows you to retrieve the latest news articles related to various metals, providing context and insights that can influence market trends.
Conclusion
The Metals-API is a powerful tool for developers looking to integrate real-time gold pricing and other precious metals data into their applications. With its extensive features, including the Latest Rates Endpoint, Historical Rates Endpoint, and various conversion tools, the API offers a comprehensive solution for accessing metals data. By leveraging this API, developers can create innovative applications that provide valuable insights and enhance trading strategies.
For more information on how to implement these features, visit the Metals-API Documentation and explore the various endpoints available. The future of precious metals trading is digital, and with the Metals-API, you can be at the forefront of this transformation.