Accessing Dehradun Gold 22k (DEHR-22k) prices in your project using this API
Accessing Dehradun Gold 22k (DEHR-22k) Prices in Your Project Using Metals-API
In today's fast-paced financial landscape, accessing real-time data on precious metals such as Gold (XAU) is crucial for developers and businesses alike. The Metals-API provides a robust solution for integrating gold prices, including the Dehradun Gold 22k (DEHR-22k), into your applications. This blog post will explore the capabilities of the Metals-API, focusing on how it can empower developers to access and utilize gold price data effectively.
Metals-API Information
About Gold (XAU)
Gold has always been a symbol of wealth and stability. In recent years, the digital transformation in precious metals trading has revolutionized how investors and developers interact with this valuable asset. The integration of data analytics and market insights has enabled a more informed approach to trading, allowing for innovative price discovery methods. With the rise of digital asset solutions, accessing gold prices has never been easier.
The Metals-API stands at the forefront of this transformation, offering real-time data that developers can leverage to build next-generation applications. By utilizing the API, you can gain insights into market trends, analyze historical data, and make informed decisions based on accurate and timely information.
API Description
The Metals-API is designed to provide developers with comprehensive access to real-time and historical data for various metals, including gold, silver, platinum, and palladium. Its innovative architecture allows for seamless integration into applications, enabling users to retrieve essential market data effortlessly.
With the Metals-API, developers can build applications that require real-time pricing, historical trends, and conversion capabilities. The API's transformative potential lies in its ability to provide accurate data that can enhance trading strategies, inform investment decisions, and drive business growth.
For more detailed information, you can refer to the Metals-API Documentation, which outlines the various endpoints and their functionalities.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, making it a versatile tool for developers. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on your plan, you can receive updates every 60 minutes or even every 10 minutes, ensuring you have the latest information at your fingertips.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date to your query, you can retrieve past prices for analysis and comparison.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices for metals, providing insight into market dynamics and helping you make informed trading decisions.
- Convert Endpoint: The conversion endpoint enables you to convert amounts from one metal to another or to/from USD, making it easy to work with different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and businesses dealing in gold jewelry.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API for the lowest and highest prices over a specified period, helping you identify market trends.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Your unique API key is essential for accessing the API, ensuring secure and authorized requests.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 different endpoints, each providing unique functionalities to meet various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring you have access to the latest symbols.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
For a complete list of all supported symbols, including the Dehradun Gold 22k (DEHR-22k), refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Here are examples of various endpoints and their responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1767831049,
"base": "USD",
"date": "2026-01-08",
"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"
}
This response indicates that the latest gold price (XAU) is 0.000482 per troy ounce, with additional rates for other metals included.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1767744649,
"base": "USD",
"date": "2026-01-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows historical rates for gold and other metals on a specific date, allowing for analysis of price trends over time.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-01-01",
"end_date": "2026-01-08",
"base": "USD",
"rates": {
"2026-01-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily historical rates for a specified time period, enabling developers to analyze trends and fluctuations in gold prices.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1767831049,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows you to convert a specified amount from one currency to another, in this case converting 1000 USD to gold (XAU).
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-01",
"end_date": "2026-01-08",
"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"
}
This endpoint tracks fluctuations in metal prices over a specified period, providing insights into market volatility and trends.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1767831049,
"base": "USD",
"date": "2026-01-08",
"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"
}
This response provides the open, high, low, and close prices for gold and other metals, which is essential for technical analysis and trading strategies.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1767831049,
"base": "USD",
"date": "2026-01-08",
"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"
}
The bid/ask endpoint provides current bid and ask prices for metals, which is crucial for traders looking to make informed decisions based on market conditions.
Conclusion
The Metals-API is a powerful tool for developers looking to access real-time and historical data on precious metals, including gold. By leveraging its various endpoints, you can build applications that provide valuable insights into market trends, facilitate trading strategies, and enhance decision-making processes.
With features like the latest rates, historical data, conversion capabilities, and fluctuation tracking, the Metals-API empowers developers to create innovative solutions that meet the demands of today's financial landscape. For more information, explore the Metals-API Documentation and start integrating gold prices into your projects today.