Utilize this API to obtain iShares Gold Strategy ETF (IAUF) prices

Utilize this API to Obtain iShares Gold Strategy ETF (IAUF) Prices
In the ever-evolving landscape of financial markets, the ability to access real-time data is paramount for investors and developers alike. One such valuable resource is the Metals-API, which provides comprehensive data on precious metals, including the iShares Gold Strategy ETF (IAUF). This blog post will delve into the intricacies of the Metals-API, its capabilities, and how it can be leveraged to obtain accurate and timely prices for gold and other precious metals.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of financial stability and investment strategy. As a precious metal, it serves not only as a hedge against inflation but also as a safe haven during economic uncertainty. The digital transformation in the precious metals market has led to innovative solutions that enhance trading efficiency and price discovery.
With the integration of advanced data analytics and technology, traders can now access market insights that were previously unavailable. The Metals-API stands at the forefront of this transformation, offering real-time data that empowers developers to create next-generation applications. By utilizing this API, users can gain insights into market trends, analyze historical data, and make informed trading decisions.
API Description
The Metals-API is a powerful tool that provides real-time and historical data on various metals, including gold, silver, platinum, and palladium. Its capabilities extend beyond mere price retrieval; it offers a suite of features that facilitate comprehensive market analysis and trading strategy development.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rates, updated frequently based on the user's subscription plan. This ensures that traders have access to the most current market data, allowing them to react swiftly to market changes.
Moreover, the API supports a variety of endpoints that cater to different data needs. For instance, the Latest Rates Endpoint provides real-time exchange rates for all available metals, while the Historical Rates Endpoint allows users to access historical data dating back to 2019. This flexibility makes the Metals-API an invaluable resource for developers looking to build robust trading applications.
Key Features and Endpoints
The Metals-API boasts a range of features designed to meet the needs of developers and traders. Here are some of the key endpoints and their functionalities:
- 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 to make quick decisions based on the latest market conditions.
- Historical Rates Endpoint: Users can query the Metals-API for historical rates by appending a specific date. This endpoint provides valuable insights into past market performance, allowing traders to analyze trends and make predictions.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for various metals. Understanding the bid-ask spread is essential for traders looking to optimize their entry and exit points.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice. It is ideal for analyzing price movements over specific periods.
- Fluctuation Endpoint: Users can retrieve information about how metal prices fluctuate on a day-to-day basis. This data is essential for understanding market volatility and making informed trading decisions.
- Carat Endpoint: This feature provides information about gold rates by carat, allowing users to understand the value of gold in different purities.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, helping traders identify price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: This endpoint allows users to access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Users must pass their unique API key into the API base URL's access_key parameter to authenticate their requests.
- API Response: The Metals-API delivers exchange rates relative to USD by default, and all data is returned in a structured JSON format.
- Available Endpoints: The API offers a total of 14 endpoints, each providing different functionalities to cater to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest symbol information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
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 integrate specific metal data into their applications.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1761012035,
"base": "USD",
"date": "2025-10-21",
"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 a successful request, providing the latest exchange rates for various metals relative to USD. The rates object contains the current price for each metal, which is essential for traders looking to make immediate decisions.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1760925635,
"base": "USD",
"date": "2025-10-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful response from the Historical Rates Endpoint, providing historical data for specific metals on a given date. Traders can utilize this information to analyze past performance and make predictions about future movements.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-14",
"end_date": "2025-10-21",
"base": "USD",
"rates": {
"2025-10-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-21": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The Time-series Endpoint allows users to track the price movements of metals over a specified period. This data is invaluable for traders conducting technical analysis and identifying trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1761012035,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint demonstrates how users can convert amounts between different metals or currencies. In this case, the API converts 1000 USD to its equivalent in gold (XAU), providing a clear and concise result.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-14",
"end_date": "2025-10-21",
"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 from the Fluctuation Endpoint provides insights into how metal prices have changed over a specified period. Understanding these fluctuations is crucial for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1761012035,
"base": "USD",
"date": "2025-10-21",
"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 Price Endpoint provides essential data for traders conducting technical analysis. By understanding the open, high, low, and close prices, traders can make informed decisions based on market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1761012035,
"base": "USD",
"date": "2025-10-21",
"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 from the Bid/Ask Endpoint provides current bid and ask prices for metals, which is critical for traders looking to optimize their trading strategies.
Conclusion
The Metals-API is an essential tool for developers and traders seeking to access real-time and historical data on precious metals. With its extensive range of endpoints and features, the API empowers users to build sophisticated trading applications and make informed investment decisions. By leveraging the capabilities of the Metals-API, users can gain valuable insights into market trends, analyze historical data, and optimize their trading strategies.
For more information on how to utilize the Metals-API, refer to the Metals-API Documentation. Additionally, explore the Metals-API Supported Symbols page for a comprehensive list of available metal symbols. By integrating this powerful API into your applications, you can stay ahead in the dynamic world of precious metals trading.