Access Detailed iShares Gold Trust (IAU) Historical Prices through this API
Access Detailed iShares Gold Trust (IAU) Historical Prices through this API
In the ever-evolving landscape of financial technology, the ability to access and analyze historical prices of precious metals like gold is crucial for investors and developers alike. The iShares Gold Trust (IAU) is a popular investment vehicle that allows individuals to gain exposure to gold without the need to physically hold the metal. By leveraging the Metals-API, developers can access detailed historical prices of IAU and other precious metals, enabling them to build sophisticated applications that provide insights into market trends and price movements.
Metals-API Information
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, particularly during times of economic uncertainty. As the world transitions into a more digital economy, the integration of technology in trading and investment practices has become paramount. The digital transformation in precious metals trading is not just about buying and selling; it encompasses data analytics, market insights, and innovative price discovery mechanisms. The Metals-API plays a pivotal role in this transformation by providing real-time and historical data that empowers developers to create applications that can analyze trends, forecast prices, and optimize trading strategies.
With the rise of digital asset solutions, the demand for accurate and timely data has never been higher. The Metals-API offers a comprehensive suite of endpoints that allow users to access a wealth of information about gold and other metals, making it an invaluable resource for developers looking to harness the power of data in their applications.
API Description
The Metals-API is designed to provide developers with a robust platform for accessing real-time and historical metals data. This API empowers users to build next-generation applications that can analyze market conditions, track price movements, and provide insights into trading strategies. With its focus on innovation and technological advancement, the Metals-API is a game-changer for those involved in the precious metals market.
For comprehensive documentation on how to utilize the API effectively, developers can refer to the Metals-API Documentation. This resource provides detailed information on the various endpoints available, including their functionalities and how to implement them in your applications. Additionally, the Metals-API Supported Symbols page offers a complete list of all available metal symbols, ensuring that developers have access to the data they need.
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: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes, ensuring that you have the most current data at your fingertips.
- Historical Rates Endpoint: Access historical rates dating back to 2019 for most currencies. This endpoint allows you to query historical prices by appending a specific date (YYYY-MM-DD) to the request, making it easy to analyze past performance.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics. This feature is essential for traders looking to make informed decisions based on current market conditions.
- Convert Endpoint: This endpoint allows you to convert any amount from one metal to another or to/from USD. It simplifies the process of understanding the value of metals in different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This feature is particularly useful for trend analysis and forecasting.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and price stability.
- Carat Endpoint: Retrieve information about gold rates by carat, allowing for precise valuation based on purity.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized use of the service.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies, ensuring that you can always find the data you need.
- Intraday Endpoint: Query intraday exchange rate data for a single symbol, allowing for real-time trading decisions.
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": 1786752875,
"base": "USD",
"date": "2026-08-15",
"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, with the base currency being USD. The rates are given per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1786666475,
"base": "USD",
"date": "2026-08-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful retrieval of historical rates for a specific date. Developers can use this data to analyze trends over time and make informed investment decisions.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-08-08",
"end_date": "2026-08-15",
"base": "USD",
"rates": {
"2026-08-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates for a specified period, allowing developers to visualize trends and fluctuations in metal prices over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1786752875,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion of 1000 USD to gold (XAU), providing the equivalent amount in troy ounces. This feature is particularly useful for investors looking to understand the value of their investments in different metals.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-08",
"end_date": "2026-08-15",
"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"
}
The fluctuation endpoint provides insights into how prices have changed over a specified period, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1786752875,
"base": "USD",
"date": "2026-08-15",
"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"
}
This endpoint provides critical data for technical analysis, allowing traders to assess market conditions based on the opening, high, low, and closing prices for a specific date.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1786752875,
"base": "USD",
"date": "2026-08-15",
"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 information for traders, allowing them to understand the current market spread and make informed trading decisions.
Conclusion
Accessing detailed historical prices of the iShares Gold Trust (IAU) through the Metals-API opens up a world of possibilities for developers and investors alike. By leveraging the various endpoints offered by the API, users can gain insights into market trends, analyze price movements, and make informed investment decisions. The integration of technology in precious metals trading is transforming the landscape, and the Metals-API is at the forefront of this change.
For those looking to dive deeper into the capabilities of the Metals-API, the Metals-API Documentation provides a wealth of information on how to effectively utilize the API. Additionally, the Metals-API Supported Symbols page ensures that developers have access to the most up-to-date data available.
As the financial landscape continues to evolve, staying informed and utilizing advanced tools like the Metals-API will be crucial for success in the precious metals market. Embrace the digital transformation and leverage the power of data to enhance your trading strategies and investment decisions.