Retrieve Gold UAE 24 k (XAUUAE24) - Per Gram Historical Prices via Metals-API

Retrieve Gold UAE 24 k (XAUUAE24) - Per Gram Historical Prices via Metals-API
In the ever-evolving landscape of precious metals trading, the ability to access historical prices for gold, specifically the 24 karat gold (XAUUAE24), is crucial for investors and traders alike. The Metals-API provides a robust platform for retrieving real-time and historical data on gold prices, empowering developers to create applications that can analyze market trends, perform data analytics, and provide insights into the precious metals market.
About Gold (XAU)
Gold, represented by the symbol XAU, is not just a commodity; it is a digital asset that has undergone a transformation in how it is traded and valued. The digital transformation in precious metals has led to the integration of advanced technologies that facilitate trading, price discovery, and market analysis. With the rise of data analytics, traders can now leverage historical price data to make informed decisions based on market trends.
The integration of technology in trading has revolutionized the way investors interact with the gold market. By utilizing APIs like Metals-API, developers can access real-time data and historical prices, enabling them to build applications that provide market insights and analytics. This innovation in price discovery allows traders to react swiftly to market changes, optimizing their trading strategies.
Metals-API Overview
The Metals-API is a powerful tool that provides developers with access to a wide range of functionalities related to precious metals. The API is designed to deliver real-time and historical data, making it an essential resource for anyone involved in the trading of metals. With its comprehensive capabilities, Metals-API empowers developers to build next-generation applications that can analyze and visualize market data effectively.
One of the standout features of Metals-API is its ability to provide historical rates for gold and other metals dating back to 2019. This functionality is particularly valuable for traders looking to analyze past performance and make predictions about future trends. By appending a specific date to the API request, users can retrieve historical prices, which can be instrumental in developing trading strategies.
Key Features of Metals-API
The Metals-API offers a variety of endpoints that cater to different needs within the precious metals market. 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 crucial for traders who need the most current data to make informed decisions.
- Historical Rates Endpoint: Users can access historical rates for most currencies, including gold, dating back to 2019. By appending a date to the API request, developers can retrieve specific historical prices, allowing for in-depth analysis.
- Bid and Ask Endpoint: This feature enables users to retrieve real-time bid and ask prices for gold and other metals, providing insights into market liquidity and pricing.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts between different metals or from/to USD. This is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, facilitating comprehensive analysis over specific periods.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and traders dealing in various purities of gold.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API to get the lowest and highest price for gold over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can retrieve open, high, low, and close prices for gold, providing a comprehensive view of market performance.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, which is beneficial for traders focusing on industrial metals.
- API Key: Each user is provided with a unique API key that must be included in API requests to authenticate and authorize access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The API comes with numerous endpoints, each providing different functionalities tailored to the needs of traders and developers.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals supported by the API, allowing users to stay updated on the latest offerings.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for traders in the Indian market.
- News Endpoint: The Metals-API provides access to the latest news articles related to various metals, keeping users informed about market developments.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is essential 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": 1744423373,
"base": "USD",
"date": "2025-04-12",
"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": 1744336973,
"base": "USD",
"date": "2025-04-11",
"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-05",
"end_date": "2025-04-12",
"base": "USD",
"rates": {
"2025-04-05": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-07": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-04-12": {
"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": 1744423373,
"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-05",
"end_date": "2025-04-12",
"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": 1744423373,
"base": "USD",
"date": "2025-04-12",
"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": 1744423373,
"base": "USD",
"date": "2025-04-12",
"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
In conclusion, the ability to retrieve historical prices for gold (XAUUAE24) through the Metals-API is a game-changer for traders and developers in the precious metals market. By leveraging the various endpoints offered by the API, users can access real-time data, analyze historical trends, and make informed trading decisions. The integration of technology in precious metals trading not only enhances market insights but also fosters innovation in price discovery.
For developers looking to build applications that utilize precious metals data, the Metals-API Documentation provides comprehensive guidance on how to implement these features effectively. Additionally, the Metals-API Supported Symbols page offers a complete list of available symbols, ensuring that users can access the data they need for their specific trading strategies.
As the market continues to evolve, staying informed and utilizing advanced tools like Metals-API will be essential for success in the precious metals trading landscape.