Obtain Gold UAE 24 k (XAUUAE24) - Per Gram prices via this API

Introduction
In the ever-evolving landscape of precious metals trading, obtaining accurate and real-time data is crucial for investors and developers alike. One of the most sought-after metals is gold, represented by the symbol XAU. In the United Arab Emirates (UAE), the demand for 24k gold (XAUUAE24) is particularly high, making it essential to have access to reliable pricing information. This is where the Metals-API comes into play, providing developers with the tools necessary to integrate gold pricing data into their applications seamlessly.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, often viewed as a safe-haven asset during times of economic uncertainty. The digital transformation in precious metals trading has revolutionized how investors access and analyze market data. With the rise of data analytics and market insights, traders can now make informed decisions based on real-time information. The integration of technology in trading platforms has enabled innovation in price discovery, allowing users to track fluctuations and trends with unprecedented accuracy.
As digital asset solutions continue to evolve, the importance of real-time data cannot be overstated. The Metals-API provides a comprehensive suite of tools that empower developers to create next-generation applications that cater to the needs of modern investors. By leveraging the capabilities of this API, developers can access a wealth of information about gold prices, historical data, and market trends, all in one place.
API Description
The Metals-API is designed to provide developers with real-time and historical data on various metals, including gold, silver, platinum, and palladium. This API is a game-changer for those looking to build applications that require accurate and timely information about metal prices. With its innovative features and technological advancements, the Metals-API transforms how developers interact with metals data.
One of the key aspects of the Metals-API is its ability to deliver real-time exchange rate data. Depending on your subscription plan, the API can provide updates every 60 minutes, every 10 minutes, or even more frequently. This ensures that users have access to the most current information available, allowing them to make informed trading decisions.
Moreover, the API offers a range of endpoints that cater to various needs. For instance, the Historical Rates Endpoint allows users to access historical rates dating back to 2019, providing valuable insights into market trends over time. This is particularly useful for developers looking to analyze price movements and identify patterns that could inform future trading strategies.
Another powerful feature is the Bid and Ask Endpoint, which enables users to retrieve real-time bid and ask prices for metals. This information is crucial for traders who need to understand the current market conditions and make timely decisions based on the latest data.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide different functionalities, making it a versatile tool for developers. Here are some of the key features:
- Latest Rates Endpoint: Get real-time exchange rates for all available metals. This endpoint returns data updated according to your subscription plan.
- Historical Rates Endpoint: Access historical exchange rates for any date since 2019, allowing for in-depth analysis of price trends.
- Bid and Ask Endpoint: Retrieve current bid and ask prices for metals, essential for understanding market dynamics.
- Convert Endpoint: Convert any amount from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling comprehensive analysis.
- Fluctuation Endpoint: Track rate fluctuations between two dates, providing insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, catering to specific market needs.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date range.
- Open/High/Low/Close (OHLC) Price Endpoint: Access OHLC data for a specific time period, crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates are delivered relative to USD by default, with all data returned in a structured format.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals.
- Gold Price India Endpoint: Retrieve the latest gold price in India using a dedicated endpoint.
- News Endpoint: Get the latest news articles related to various metals, keeping you 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 endpoints, including their expected responses:
Latest Rates Endpoint
This endpoint provides real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1747267611,
"base": "USD",
"date": "2025-05-15",
"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 status, a timestamp, the base currency, the date of the rates, and the rates for various metals.
Historical Rates Endpoint
This endpoint allows access to historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1747181211,
"base": "USD",
"date": "2025-05-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
The response provides historical data, including the date and rates for various metals.
Time-Series Endpoint
This endpoint allows querying for exchange rates over a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2025-05-08",
"end_date": "2025-05-15",
"base": "USD",
"rates": {
"2025-05-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response includes rates for each date within the specified range, allowing for detailed analysis of trends.
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": 1747267611,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The response includes the conversion details, showing the amount converted and the resulting value in troy ounces.
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-08",
"end_date": "2025-05-15",
"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 response provides insights into how rates have changed over the specified period, including both absolute and percentage changes.
OHLC (Open/High/Low/Close) Price Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1747267611,
"base": "USD",
"date": "2025-05-15",
"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 critical data for traders looking to perform technical analysis, showing the opening, highest, lowest, and closing prices for the specified date.
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1747267611,
"base": "USD",
"date": "2025-05-15",
"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, along with the spread, which is essential for traders to understand market liquidity.
Conclusion
The Metals-API is an invaluable resource for developers looking to integrate real-time and historical data on precious metals, particularly gold. With its comprehensive suite of endpoints, the API empowers users to access critical market information, analyze trends, and make informed trading decisions. By leveraging the capabilities of the Metals-API, developers can create innovative applications that cater to the needs of modern investors.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. The Metals-API Website also provides additional resources and support for developers looking to harness the power of real-time metals data.