Get iShares Gold Trust Micro (IAUM) Historical Prices from a Reliable Source using this API

Get iShares Gold Trust Micro (IAUM) Historical Prices from a Reliable Source using this API
In the ever-evolving landscape of financial markets, obtaining accurate and timely data is crucial for making informed investment decisions. For those interested in precious metals, particularly gold, the iShares Gold Trust Micro (IAUM) represents a compelling investment vehicle. This blog post will delve into how to access historical prices for IAUM using the Metals-API, a powerful tool that provides real-time and historical data on various metals, including gold (XAU).
Understanding Gold (XAU)
Gold has long been regarded as a safe haven asset, particularly during times of economic uncertainty. Its intrinsic value and historical significance make it a popular choice among investors. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. With the integration of technology in trading, investors can now leverage advanced tools to enhance their trading strategies and optimize their portfolios.
One of the most significant innovations in this space is the emergence of APIs that provide real-time data on metal prices. The Metals-API stands out as a leading solution, offering developers the ability to build next-generation applications that can access and analyze metal prices efficiently. This API not only empowers developers but also transforms the way traders and investors interact with market data.
API Description
The Metals-API is designed to provide comprehensive access to metal prices, including gold, silver, platinum, and palladium. It offers a range of endpoints that allow users to retrieve the latest rates, historical data, and even perform conversions between different metals and currencies. The API is built with a focus on innovation, enabling users to harness the power of real-time data for their trading strategies.
With the Metals-API, developers can create applications that provide insights into market trends, price fluctuations, and historical performance. This capability is particularly valuable for those looking to analyze the performance of IAUM and other gold-related investments. The API's flexibility and ease of use make it an essential tool for any developer working in the financial technology space.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to cater to specific needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes or more frequently depending on your subscription plan. It allows users to access the most current prices for gold and other metals, ensuring that they have the latest information at their fingertips.
- Historical Rates Endpoint: Users can access historical rates for most metals dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, which is essential for analyzing trends and making informed investment decisions.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals. Understanding the bid-ask spread is crucial for traders looking to execute orders at optimal prices.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts from one metal to another or to/from USD. This feature is particularly useful for investors dealing with multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two dates of their choice. It is invaluable for conducting in-depth analyses of price movements over specific periods.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis. This endpoint provides insights into market volatility, helping traders make informed decisions based on price movements.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, which is essential for jewelers and those involved in the jewelry market.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices of metals over a specified period, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends.
- API Key: To access the Metals-API, users must include their unique API key in the request, ensuring secure and authorized access to the data.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format for easy integration into applications.
- Available Endpoints: The Metals-API offers a comprehensive list of endpoints, each providing different functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metal symbols, ensuring users can access the data they need.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for investors in the Indian market.
- News Endpoint: The Metals-API provides access to the latest news articles related to various metals, keeping users 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 Symbols page. This resource is invaluable for developers looking to integrate specific metal data into their applications.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various endpoints and their responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1752379261,
"base": "USD",
"date": "2025-07-13",
"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 that the latest gold price (XAU) is 0.000482 per troy ounce, providing a snapshot of the current market conditions.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1752292861,
"base": "USD",
"date": "2025-07-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to retrieve historical rates for a specific date, allowing users to analyze past performance and trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-06",
"end_date": "2025-07-13",
"base": "USD",
"rates": {
"2025-07-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-13": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows users to track price changes over a specified period, providing valuable insights into market trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1752379261,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response demonstrates how to convert an amount from USD to gold (XAU), showcasing the API's versatility in handling different currencies and metals.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-06",
"end_date": "2025-07-13",
"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 understanding market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1752379261,
"base": "USD",
"date": "2025-07-13",
"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 is crucial for traders who rely on technical analysis, as it provides essential data points for evaluating market performance.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1752379261,
"base": "USD",
"date": "2025-07-13",
"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 is essential for traders looking to execute orders at the best possible prices, providing real-time market data.
Conclusion
In conclusion, the Metals-API is an invaluable resource for developers and traders interested in precious metals, particularly gold. By leveraging its extensive features and capabilities, users can access real-time and historical data, perform conversions, and analyze market trends effectively. The API's innovative design empowers developers to create applications that enhance trading strategies and provide insights into market dynamics.
For those looking to get started with the Metals-API, the Metals-API Documentation provides comprehensive guidance on how to implement the various endpoints and utilize the data effectively. Additionally, the Symbols List is a valuable resource for understanding the different metal symbols available through the API.
As the financial landscape continues to evolve, staying informed and leveraging advanced tools like the Metals-API will be essential for making sound investment decisions in the precious metals market.