Get Gold UAE 18 k (XAUUAE18) - Per Gram Historical Data for Your Applications using this API

Get Gold UAE 18 k (XAUUAE18) - Per Gram Historical Data for Your Applications using this API
In today's fast-paced financial landscape, the demand for accurate and timely data on precious metals, particularly gold, has surged. The Metals-API provides developers with a powerful tool to access historical prices and real-time data for gold and other metals. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices for Gold (XAU) and the innovative features that make this API a game-changer for developers looking to integrate precious metals data into their applications.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, a hedge against inflation, and a symbol of wealth. In the context of digital transformation, the trading and investment landscape for gold is evolving rapidly. The integration of data analytics and technology into trading practices is reshaping how investors approach precious metals. With the rise of digital asset solutions, the demand for real-time market insights has never been greater.
As developers, understanding the nuances of gold pricing and the factors that influence its market value is crucial. The Metals-API offers a comprehensive suite of tools that empower developers to harness the power of data analytics for informed decision-making. By leveraging this API, you can access historical price data, analyze market trends, and create applications that provide users with valuable insights into gold prices.
API Description
The Metals-API is a robust JSON API that provides real-time and historical data for various metals, including gold, silver, platinum, and palladium. This API is designed to facilitate seamless integration into applications, enabling developers to build next-generation solutions that require accurate metals data.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on your subscription plan, you can receive updates every 60 minutes, every 10 minutes, or even more frequently. This level of granularity allows developers to create applications that respond to market changes in real time.
Moreover, the Metals-API supports a variety of endpoints that cater to different data needs. Whether you are looking for the latest rates, historical prices, or specific market insights, this API has you covered. The transformative potential of real-time metals data cannot be overstated, as it empowers developers to create innovative applications that enhance user experience and engagement.
Key Features and Endpoints
The Metals-API offers a diverse range of endpoints, each designed to provide specific functionalities. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. For example, if you are subscribed to the highest tier, you can receive updates every 10 minutes, ensuring that your application has the most current data available.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to your request, you can retrieve past prices for gold, allowing for in-depth analysis of market trends over time.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for metals, which is essential for trading applications that require precise pricing information.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing you to convert amounts from one metal to another or to/from USD. This is particularly useful for applications that need to display prices in different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is invaluable for developers looking to analyze price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how metal prices fluctuate on a day-to-day basis. This endpoint provides insights into market volatility, which can inform trading strategies.
- Carat Endpoint: Get information about gold rates by carat. This is particularly useful for jewelers and retailers who need to price gold items accurately based on their carat weight.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, enabling you to assess market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of metals traded on the London Metal Exchange.
- API Key: Your unique API key is required to access the Metals-API. This key is passed into the API base URL's access_key parameter, ensuring secure access to the data.
- API Response: The exchange rates delivered by the Metals-API are by default relative to USD, providing a consistent basis for comparison.
- Available Endpoints: The Metals-API comes with a constantly updated endpoint returning all available currencies, ensuring that you have access to the latest data.
- Gold Price India Endpoint: Retrieve the latest gold price in India using the dedicated endpoint, which is particularly useful for developers targeting the Indian market.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context and insights into market movements.
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 understand the various metals available for querying.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for effective integration. Below are examples of responses from various endpoints, showcasing the data you can expect:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1747011781,
"base": "USD",
"date": "2025-05-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"
}
The above response provides real-time exchange rates for various metals, with gold (XAU) priced at 0.000482 per troy ounce. This data is essential for applications that require up-to-date pricing information.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1746925381,
"base": "USD",
"date": "2025-05-11",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response illustrates how to access historical rates for gold and other metals. By specifying a date, developers can retrieve past pricing data, which is crucial for trend analysis.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-05",
"end_date": "2025-05-12",
"base": "USD",
"rates": {
"2025-05-05": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-07": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-12": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows developers to analyze price movements over a specified period. This is particularly useful for applications that require historical data for forecasting and analysis.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1747011781,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint is essential for applications that need to display prices in different currencies. In this example, converting 1000 USD results in 0.482 troy ounces of gold.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-05",
"end_date": "2025-05-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"
}
This endpoint provides insights into how metal prices fluctuate over time, which is critical for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1747011781,
"base": "USD",
"date": "2025-05-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"
}
The OHLC endpoint is vital for technical analysis, providing traders with the necessary data to make informed decisions based on price movements throughout the trading day.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1747011781,
"base": "USD",
"date": "2025-05-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"
}
The bid/ask endpoint provides essential pricing information for traders, allowing them to make informed decisions based on current market conditions.
Conclusion
The Metals-API is an invaluable resource for developers looking to integrate precious metals data into their applications. With its comprehensive suite of endpoints, developers can access real-time and historical data for gold and other metals, enabling them to create innovative solutions that meet the demands of today's market.
By leveraging the capabilities of the Metals-API, you can enhance your applications with accurate pricing information, historical trends, and market insights. Whether you are building a trading platform, a financial analysis tool, or a simple price tracker, the Metals-API provides the data you need to succeed.
For more information on how to get started, refer to the Metals-API Documentation and explore the various endpoints available. Don't forget to check the Metals-API Supported Symbols page for a complete list of metal symbols you can query. With the right tools and data at your disposal, you can build applications that empower users with the insights they need to navigate the world of precious metals.