Obtain Gold UAE 22 k (XAUUAE22) Historical Prices via this API

Obtain Gold UAE 22 k (XAUUAE22) Historical Prices via this API
In the world of precious metals trading, obtaining accurate and timely data is crucial for making informed decisions. One of the most sought-after metals is gold, particularly in the UAE where 22 karat gold (XAUUAE22) is a popular choice for jewelry and investment. To access historical prices of gold and other metals, developers can leverage the powerful Metals-API. This API provides a comprehensive suite of tools for retrieving real-time and historical data, enabling developers to create innovative applications that cater to the needs of traders and investors alike.
Metals-API Information
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially during times of economic uncertainty. Its value is influenced by various factors including market demand, geopolitical events, and currency fluctuations. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. By integrating technology into trading practices, investors can gain a competitive edge through innovation in price discovery and digital asset solutions.
With the rise of data analytics, traders can now analyze historical price trends and make predictions based on comprehensive datasets. The Metals-API plays a pivotal role in this transformation by providing developers with the tools necessary to access and analyze gold prices in real-time. This API empowers developers to build next-generation applications that can process vast amounts of data, offering insights that were previously unattainable.
API Description
The Metals-API is designed to provide developers with easy access to real-time and historical prices of various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). The API is built on modern technology stacks, ensuring high performance and reliability. With its user-friendly interface and comprehensive documentation, developers can quickly integrate the API into their applications.
One of the standout features of the Metals-API is its ability to deliver real-time data. Depending on the subscription plan, users can receive updates every 60 minutes, every 10 minutes, or even more frequently. This capability is essential for traders who need to make quick decisions based on the latest market conditions.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for all available metals. Developers can easily access the latest rates and integrate them into their applications.
- Historical Rates Endpoint: Users can query historical rates dating back to 2019 by appending a specific date to the API call. This feature is invaluable for analyzing past performance and trends.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, enabling traders to make informed decisions based on market spreads.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert amounts from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: This endpoint enables users to query daily historical rates between two specified dates, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, offering insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, which is particularly useful for jewelers and consumers looking for specific quality metrics.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for those involved in industrial metals trading.
- API Key: Each user is assigned a unique API key, which must be included in API requests to authenticate and authorize access.
- API Response: The API returns exchange rates relative to USD by default, ensuring consistency across data retrieval.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, allowing developers to stay informed about the latest offerings.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, catering to a specific market segment.
- News Endpoint: Stay updated with the latest news articles related to various metals, helping traders stay informed about market developments.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various API endpoints and their expected responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1756814430,
"base": "USD",
"date": "2025-09-02",
"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"
}
The response includes a success flag, a timestamp, the base currency, the date of the rates, and a list of rates for various metals. This data can be used to display current market conditions in applications.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1756728030,
"base": "USD",
"date": "2025-09-01",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint allows users to access historical exchange rates for any date since 1999. The response structure is similar to the latest rates, providing a straightforward way to analyze past data.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-08-26",
"end_date": "2025-09-02",
"base": "USD",
"rates": {
"2025-08-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-08-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-09-02": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint provides a time-series view of exchange rates, allowing developers to visualize trends over a specified period. Each date in the response includes the rates for the metals of interest.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1756814430,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert amounts between different metals or to/from USD. The response includes the conversion result, the rate used for the conversion, and the original query parameters.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-08-26",
"end_date": "2025-09-02",
"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. The response includes the start and end rates, as well as the percentage change.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1756814430,
"base": "USD",
"date": "2025-09-02",
"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"
}
The OHLC endpoint provides essential data for traders engaged in technical analysis. By understanding the open, high, low, and close prices, traders can make more informed decisions based on market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1756814430,
"base": "USD",
"date": "2025-09-02",
"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 endpoint provides current bid and ask prices, which are crucial for traders looking to execute orders at the best possible prices. The spread information is also valuable for assessing market liquidity.
Conclusion
The Metals-API is an invaluable resource for developers looking to access historical prices and real-time data for precious metals like gold (XAU). By leveraging the API's extensive features, developers can create innovative applications that provide traders with the insights they need to make informed decisions. From the latest rates to historical trends, the Metals-API offers a comprehensive suite of tools that can transform how traders interact with the precious metals market.
For more detailed information on how to implement these features, developers can refer to the Metals-API Documentation and explore the Metals-API Supported Symbols to stay updated on the latest offerings. With the right tools and insights, the potential for innovation in the precious metals trading space is limitless.