Get Accurate Gold UAE 22 k (XAUUAE22) Historical Prices with Metals-API Documentation

Introduction
In the ever-evolving landscape of precious metals trading, obtaining accurate historical prices for gold, specifically 22k gold in the UAE (XAUUAE22), is crucial for investors, traders, and analysts. The Metals-API provides a robust solution for accessing real-time and historical data on various metals, including gold. This blog post delves into the capabilities of the Metals-API, focusing on how to retrieve historical prices and leverage the API's features for enhanced trading strategies and market insights.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and a critical asset in financial markets. With the digital transformation of trading, the integration of data analytics and technology has revolutionized how investors approach precious metals. The Metals-API stands at the forefront of this transformation, offering developers the tools needed to access real-time data and historical prices efficiently.
As the demand for digital asset solutions grows, understanding the dynamics of gold pricing becomes essential. The Metals-API not only provides current rates but also historical data that can be analyzed to identify trends, make informed decisions, and optimize trading strategies. By utilizing advanced data analytics, traders can gain insights into market movements and price fluctuations, enabling them to act swiftly in a competitive environment.
API Description
The Metals-API is designed to empower developers to build next-generation applications that require real-time metals data. With a focus on innovation and technological advancement, the API offers a range of endpoints that cater to various needs, from retrieving the latest rates to accessing historical data dating back to 2019.
For developers looking to integrate metals data into their applications, the Metals-API Documentation provides comprehensive guidance on how to utilize the API effectively. The documentation covers everything from authentication to endpoint usage, ensuring that developers have the resources they need to succeed.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability and functionality for developers:
- 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 up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, users can retrieve past pricing data, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint that enables users to convert any amount from one currency to another, facilitating seamless transactions across different markets.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, helping traders understand volatility and market trends.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers interested in specific gold qualities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, aiding in market analysis and decision-making.
- 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 trading in industrial metals.
- API Key: Each user is assigned a unique API key that must be included in API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API comes with a comprehensive list of endpoints, each providing different functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay updated on the latest symbols supported by the API.
- Gold Price India Endpoint: Retrieve the latest gold price in India using the dedicated endpoint, which is particularly useful for traders in the Indian market.
- News Endpoint: Stay informed with the latest news articles related to various metals, helping traders make informed decisions based on current events.
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 integrate specific metals into their applications.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for developers. Below are examples of various API endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1744592525,
"base": "USD",
"date": "2025-04-14",
"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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1744506125,
"base": "USD",
"date": "2025-04-13",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2025-04-07",
"end_date": "2025-04-14",
"base": "USD",
"rates": {
"2025-04-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-04-14": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1744592525,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-07",
"end_date": "2025-04-14",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1744592525,
"base": "USD",
"date": "2025-04-14",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1744592525,
"base": "USD",
"date": "2025-04-14",
"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"
}
Conclusion
The Metals-API is a powerful tool for developers seeking to access accurate gold prices and historical data for trading and analysis. By leveraging its extensive features, including real-time rates, historical data, and various endpoints, users can gain valuable insights into the precious metals market. Whether you are a trader looking to optimize your strategies or a developer building applications that require metals data, the Metals-API provides the necessary resources to succeed.
For further exploration of the API's capabilities, refer to the Metals-API Documentation and stay updated with the latest supported symbols on the Metals-API Supported Symbols page. Embrace the digital transformation in precious metals trading and unlock the potential of real-time data with the Metals-API.