Access iShares Gold Strategy ETF (IAUF) Historical Prices through this API

Access iShares Gold Strategy ETF (IAUF) Historical Prices through this API
In today's fast-paced financial landscape, the ability to access and analyze historical prices of assets like the iShares Gold Strategy ETF (IAUF) is crucial for investors and developers alike. One of the most effective ways to achieve this is through the Metals-API, a powerful tool that provides real-time and historical data for precious metals, including gold. This blog post will delve into the capabilities of the Metals-API, particularly focusing on how to retrieve historical prices for gold and other metals, while also exploring the broader implications of digital transformation in the precious metals market.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of financial markets and a safe haven for investors. As the world embraces digital transformation, the trading and analysis of gold have evolved significantly. The integration of advanced data analytics and technology has revolutionized how traders and investors interact with gold prices. With the rise of digital asset solutions, the demand for accurate and timely data has never been higher.
Data analytics plays a pivotal role in providing market insights that can guide investment decisions. By leveraging technologies that facilitate real-time data access, traders can make informed decisions based on current market conditions. The Metals-API exemplifies this innovation, offering developers the tools necessary to build next-generation applications that can analyze gold prices effectively.
API Description
The Metals-API is designed to empower developers with real-time metals data, enabling the creation of applications that can track and analyze precious metal prices. The API provides a suite of endpoints that cater to various needs, from retrieving the latest rates to accessing historical data. This flexibility allows developers to integrate metals data into their applications seamlessly.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data updated at intervals that suit different subscription plans. This ensures that users have access to the most current information, which is crucial for making timely trading decisions. Additionally, the API supports a wide range of functionalities, including historical rates, bid and ask prices, and even currency conversion.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data for metals, updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need to stay on top of market fluctuations.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical data that is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one metal to another or to/from 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 chosen dates, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: Users can track how metal prices 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 those in the jewelry industry.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, which is crucial for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, allowing traders to analyze market performance comprehensively.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, which is beneficial for those tracking industrial metals.
- API Key: Each user is assigned a unique API key that must be included in API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API offers a comprehensive list of endpoints, each designed to fulfill specific data retrieval needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India using this dedicated endpoint, catering to regional market needs.
- News Endpoint: This feature allows users to access the latest news articles related to various metals, keeping them 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 API endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1751626872,
"base": "USD",
"date": "2025-07-04",
"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, including gold (XAU).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1751540472,
"base": "USD",
"date": "2025-07-03",
"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.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-06-27",
"end_date": "2025-07-04",
"base": "USD",
"rates": {
"2025-06-27": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-29": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-04": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint provides a time-series of rates, allowing developers to visualize trends over a specified period.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1751626872,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert amounts between currencies, providing a straightforward way to understand value in different terms.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-27",
"end_date": "2025-07-04",
"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 price fluctuations, which is vital for understanding market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1751626872,
"base": "USD",
"date": "2025-07-04",
"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 provides a comprehensive view of market performance, allowing traders to analyze price movements effectively.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1751626872,
"base": "USD",
"date": "2025-07-04",
"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 endpoint provides current bid and ask prices, which are essential for traders looking to execute orders at optimal prices.
Conclusion
Accessing historical prices for the iShares Gold Strategy ETF (IAUF) and other precious metals has never been easier, thanks to the innovative capabilities of the Metals-API. By leveraging this powerful API, developers can create applications that not only retrieve real-time data but also analyze historical trends, track fluctuations, and convert between different metals and currencies.
The integration of technology in trading and data analytics has transformed the way investors interact with precious metals. With features like the latest rates, historical data, and bid/ask prices, the Metals-API stands out as a comprehensive solution for those looking to navigate the complexities of the metals market.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the full list of supported symbols at the Metals-API Supported Symbols page. Embrace the future of trading with the power of real-time metals data at your fingertips.