Retrieve Real-Time Gold UAE 22 k (XAUUAE22) - Per Gram Prices in Multiple Currencies with this API
Retrieve Real-Time Gold UAE 22 k (XAUUAE22) - Per Gram Prices in Multiple Currencies with this API
In today's fast-paced financial landscape, having access to accurate and real-time data is crucial for businesses and developers alike. The Metals-API provides a powerful solution for retrieving real-time gold prices, specifically for UAE 22k gold (XAUUAE22), in various currencies. This API not only offers the latest rates but also historical data, bid and ask prices, and much more, enabling developers to create innovative applications that leverage precious metals data.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a critical asset in financial markets. With the digital transformation in precious metals trading, the demand for accurate and timely data has surged. The Metals-API stands at the forefront of this transformation, providing developers with the tools needed to integrate gold pricing into their applications seamlessly.
Data analytics and market insights derived from gold prices can empower businesses to make informed decisions. By utilizing the Metals-API, developers can harness technology integration in trading, allowing for real-time updates and innovative price discovery methods. The API's capabilities extend beyond mere price retrieval; it offers digital asset solutions that can enhance trading strategies and investment portfolios.
API Description
The Metals-API is designed to provide developers with comprehensive access to metals pricing data. With its user-friendly interface and robust capabilities, the API enables the creation of next-generation applications. Whether you are building a trading platform, a financial analysis tool, or a market insights dashboard, the Metals-API can serve as a foundational component.
For detailed information on how to implement the API, developers can refer to the Metals-API Documentation, which outlines the various endpoints and their functionalities.
Key Features and Endpoints
The Metals-API offers a range of endpoints, each designed to cater to specific data retrieval needs. Below 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 is essential for applications that require up-to-the-minute pricing, such as trading platforms.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. This feature allows developers to analyze trends over time by appending a specific date to the API request.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices, which are crucial for traders looking to make informed decisions based on market conditions.
- Convert Endpoint: The API includes a currency conversion endpoint that allows users to convert any amount from one currency to another, facilitating transactions across different markets.
- Time-Series Endpoint: This endpoint allows querying for daily historical rates between two dates of your choice, providing insights into price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, which is vital for understanding market volatility and making strategic decisions.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and retailers in the precious metals market.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest prices for a specific date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period, which is essential for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API comes with 14 endpoints, each providing distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing developers to stay updated on the latest symbols.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
List of Symbols
The 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 how to interact with the Metals-API is crucial for developers. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1766103762,
"base": "USD",
"date": "2025-12-19",
"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 the success of the request and provides the latest rates for various metals, including gold (XAU).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1766017362,
"base": "USD",
"date": "2025-12-18",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates, allowing developers to analyze past pricing data.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-12-12",
"end_date": "2025-12-19",
"base": "USD",
"rates": {
"2025-12-12": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-12-14": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-19": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time-series view of gold prices, which is essential for trend analysis.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1766103762,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert amounts between currencies, making it easier to conduct transactions in different markets.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-12",
"end_date": "2025-12-19",
"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, providing valuable insights into market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1766103762,
"base": "USD",
"date": "2025-12-19",
"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 detailed OHLC data, which is essential for traders conducting technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1766103762,
"base": "USD",
"date": "2025-12-19",
"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 market prices, which are crucial for traders looking to execute orders effectively.
Conclusion
The Metals-API is an invaluable resource for developers seeking to integrate real-time gold pricing data into their applications. With its extensive range of endpoints, including the latest rates, historical data, and conversion capabilities, the API empowers businesses to make data-driven decisions in the precious metals market. By leveraging the power of technology and data analytics, developers can create innovative solutions that enhance trading strategies and market insights.
For more information on how to utilize the Metals-API, visit the Metals-API Documentation and explore the Metals-API Supported Symbols page for a comprehensive list of available metal symbols. Start building your next-generation applications today with the Metals-API Website.