Access Gold UAE 18 k (XAUUAE18) prices with this API
Access Gold UAE 18 k (XAUUAE18) Prices with This API
In the rapidly evolving world of finance, the demand for real-time data on precious metals has surged, particularly for gold, represented by the symbol XAU. The Metals-API is a powerful tool that provides developers with the ability to access current and historical gold prices, along with other metals, through a comprehensive API. This blog post will delve into the intricacies of the Metals-API, exploring its features, capabilities, and how it can be leveraged to gain insights into the gold market.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and currency fluctuations. The digital transformation in precious metals trading has opened new avenues for investors and developers alike. With the integration of data analytics and market insights, the Metals-API empowers users to make informed decisions based on real-time data. The API facilitates innovation in price discovery, allowing developers to create applications that provide users with up-to-date information on gold prices, trends, and market movements.
As the world shifts towards digital asset solutions, the Metals-API stands out by offering a robust platform for accessing gold prices in various formats. This API not only provides the latest rates but also historical data, enabling users to analyze trends over time. By harnessing the power of technology, developers can integrate this data into their applications, enhancing user experience and engagement.
API Description
The Metals-API is designed to provide developers with a seamless experience when accessing precious metals data. Its capabilities include real-time updates, historical data retrieval, and various endpoints that cater to different needs. The API is built with innovation in mind, allowing for the development of next-generation applications that can transform how users interact with precious metals.
One of the key features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on the subscription plan, users can receive updates every 60 minutes, every 10 minutes, or even more frequently. This ensures that developers can provide their users with the most accurate and timely information available.
For those interested in historical data, the Metals-API offers access to rates dating back to 2019. This is particularly useful for developers looking to analyze trends over time or for investors who want to understand how gold prices have fluctuated in the past. By appending a specific date to the API request, users can retrieve historical rates with ease.
Another powerful feature is the Bid and Ask endpoint, which allows developers to retrieve real-time bid and ask prices for gold and other metals. This information is crucial for traders who need to make quick decisions based on market conditions. Additionally, the Convert endpoint enables users to convert amounts between different metals or to/from USD, making it easier to manage transactions across various currencies.
The Time-Series endpoint allows developers to query the API for daily historical rates between two chosen dates. This is particularly useful for analyzing price movements over specific periods, providing insights into market trends and potential future movements. Similarly, the Fluctuation endpoint offers information on how prices fluctuate on a day-to-day basis, helping users understand volatility in the market.
For those interested in gold rates by carat, the Metals-API provides a dedicated Carat endpoint. This feature allows users to retrieve information about gold rates based on carat weight, which is essential for jewelers and consumers alike. Furthermore, the Lowest/Highest Price endpoint enables users to query the API for the lowest and highest prices within a specified timeframe, offering valuable insights into market extremes.
The Open/High/Low/Close (OHLC) Price endpoint provides a comprehensive view of price movements over a specific period, detailing the opening, highest, lowest, and closing prices. This data is invaluable for traders looking to analyze market performance and make informed decisions.
To access the Metals-API, developers must use their unique API key, which is passed into the API base URL's access_key parameter. This key ensures secure access to the API and allows for personalized data retrieval based on the user's subscription plan. The API response is delivered in JSON format, with exchange rates typically relative to USD, making it easy to integrate into various applications.
For a complete list of available symbols, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD), developers can refer to the Metals-API Supported Symbols page. This resource is essential for understanding the full range of data accessible through the API.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to cater to specific needs within the precious metals market. Here are some of the key features:
- Latest Rates Endpoint: Access real-time exchange rates for all available metals. The response includes the latest prices, updated based on the user's subscription plan.
- Historical Rates Endpoint: Retrieve historical exchange rates for any date since 2019, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: Get current bid and ask prices for metals, essential for traders looking to make quick decisions.
- Convert Endpoint: Easily convert any amount from one metal to another or to/from USD, simplifying transactions across currencies.
- Time-Series Endpoint: Query for daily historical rates between two dates, providing insights into price movements over specific periods.
- Fluctuation Endpoint: Track rate fluctuations between two dates, helping users understand market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, essential for jewelers and consumers.
- Lowest/Highest Price Endpoint: Query for the lowest and highest prices within a specified timeframe, offering insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed price movements over a specific period, including opening, highest, lowest, and closing prices.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing valuable data for market analysis.
- API Key: Secure access to the API using a unique API key, ensuring personalized data retrieval.
- API Response: Receive exchange rates in JSON format, typically relative to USD, making integration straightforward.
- Available Endpoints: The API includes 14 endpoints, each providing different functionalities to cater to various needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
API Endpoint Examples and Responses
Understanding the API's responses is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1765677616,
"base": "USD",
"date": "2025-12-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"
}
The response indicates a successful request, providing the latest exchange rates for various metals relative to USD. Each rate is expressed per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1765591216,
"base": "USD",
"date": "2025-12-13",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for a specific date, allowing users to analyze past market performance. The data can be used to identify trends and make informed decisions based on historical performance.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-12-07",
"end_date": "2025-12-14",
"base": "USD",
"rates": {
"2025-12-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-12-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-14": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates between two dates, allowing users to visualize price movements over time. Such data is invaluable for trend analysis and forecasting.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1765677616,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert endpoint response shows the conversion of an amount from USD to gold (XAU). The result indicates how much gold can be purchased with the specified amount of USD, providing users with quick conversion capabilities.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-07",
"end_date": "2025-12-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"
}
This response details the fluctuations in prices over a specified period, highlighting changes in rates and percentage changes. This information is crucial for traders looking to understand market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1765677616,
"base": "USD",
"date": "2025-12-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"
}
The OHLC response provides a comprehensive view of price movements for a specific date, detailing the opening, highest, lowest, and closing prices. This data is essential for traders and analysts looking to evaluate market performance.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1765677616,
"base": "USD",
"date": "2025-12-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"
}
This response provides the current bid and ask prices for metals, along with the spread. This information is vital for traders who need to make quick decisions based on market conditions.
Conclusion
The Metals-API is an invaluable resource for developers looking to access real-time and historical data on precious metals, particularly gold (XAU). With its extensive range of features and endpoints, the API empowers users to build innovative applications that can transform how individuals and businesses interact with the precious metals market. By leveraging the capabilities of the Metals-API, developers can provide their users with accurate, timely, and insightful data, enhancing decision-making processes and overall user experience.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation. This resource provides comprehensive guidance on API usage, including detailed descriptions of each endpoint, response examples, and best practices for integration. Additionally, explore the Metals-API Supported Symbols page to familiarize yourself with the various metals available through the API.
In a world where data is king, the Metals-API stands out as a powerful tool for accessing precious metals information, enabling developers to create applications that meet the demands of today's market. By embracing this technology, you can stay ahead of the curve and provide your users with the insights they need to navigate the complex world of precious metals trading.