Get Gold UAE 18 k (XAUUAE18) prices using this API

Get Gold UAE 18 k (XAUUAE18) Prices Using This API
In the ever-evolving landscape of precious metals trading, the demand for real-time data and analytics has never been more critical. For developers and traders looking to access the latest Gold (XAU) prices in the UAE, the Metals-API offers a robust solution. This API provides comprehensive access to market data, enabling users to integrate real-time gold pricing into their applications seamlessly. In this blog post, we will explore the capabilities of the Metals-API, focusing on how it can be utilized to retrieve Gold prices, analyze market trends, and enhance trading strategies.
Metals-API Information
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, especially in times of economic uncertainty. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. With the integration of technology in trading, developers can leverage innovative solutions for price discovery and digital asset management. The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to access real-time gold prices and historical data.
As the world shifts towards digital asset solutions, the importance of accurate and timely data cannot be overstated. The Metals-API empowers developers to build next-generation applications that can analyze market trends, forecast price movements, and optimize trading strategies. By utilizing advanced data analytics, traders can make informed decisions based on real-time insights, enhancing their overall trading performance.
API Description
The Metals-API is designed to provide developers with a comprehensive suite of features that facilitate the retrieval of metals data, including Gold (XAU). This API is built on a foundation of innovation and technological advancement, allowing users to access real-time metals data with ease. The API supports various endpoints that cater to different data needs, from the latest rates to historical trends.
For more information on the API's capabilities, visit the Metals-API Website or check out the Metals-API Documentation for detailed implementation guidance.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that can be utilized to access different types of data. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need to stay updated on the latest market movements.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to your query, you can retrieve past gold prices, which is crucial for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices for gold and other metals. Understanding the bid-ask spread is vital for traders looking to optimize their entry and exit points.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one currency to another. This is particularly useful for traders operating in multiple currencies.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice. It is beneficial for analyzing price trends over specific periods.
- Fluctuation Endpoint: Retrieve information about how gold prices fluctuate on a day-to-day basis. This feature helps traders understand market volatility and make informed decisions.
- Carat Endpoint: This endpoint provides information about gold rates by carat, allowing users to get precise pricing based on the purity of gold.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for gold over a specified period, which is crucial for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access the open, high, low, and close prices for gold, providing a comprehensive view of market performance over time.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is essential for traders focused on industrial metals.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, providing a consistent basis for comparison.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metal symbols, ensuring users have access to the latest data.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is useful for traders in the Indian market.
- News Endpoint: Stay updated with the latest news articles related to various metals, helping traders stay informed about market developments.
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.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective implementation. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1748048550,
"base": "USD",
"date": "2025-05-24",
"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 API successfully retrieved the latest rates for various metals, including Gold (XAU), which is priced at 0.000482 per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1747962150,
"base": "USD",
"date": "2025-05-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful retrieval of historical rates for Gold and other metals, providing valuable data for trend analysis.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-17",
"end_date": "2025-05-24",
"base": "USD",
"rates": {
"2025-05-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily historical rates for Gold, allowing traders to analyze price movements over a specified period.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1748048550,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates the conversion of 1000 USD to Gold (XAU), resulting in 0.482 troy ounces based on the current exchange rate.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-17",
"end_date": "2025-05-24",
"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 fluctuation response provides insights into how Gold prices have changed over a specified period, highlighting both absolute and percentage changes.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1748048550,
"base": "USD",
"date": "2025-05-24",
"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 endpoint provides a comprehensive view of the market's performance for Gold, including the opening, highest, lowest, and closing prices.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1748048550,
"base": "USD",
"date": "2025-05-24",
"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"
}
This response provides the current bid and ask prices for Gold, which is essential for traders looking to execute orders at optimal prices.
Conclusion
The Metals-API is a powerful tool for developers and traders seeking to access real-time Gold prices and other precious metals data. With its comprehensive suite of endpoints, the API enables users to retrieve the latest rates, historical data, and market insights, facilitating informed decision-making in trading strategies. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance trading performance and provide valuable market analytics.
For further details on how to implement the Metals-API in your applications, refer to the Metals-API Documentation. Explore the full range of supported symbols on the Metals-API Supported Symbols page, and start integrating real-time metals data into your projects today by visiting the Metals-API Website.