Fetch iShares Gold Trust Micro (IAUM) Historical Prices through this API

Metals-API, a powerful tool that provides real-time and historical data for various metals, including gold.
Understanding Gold (XAU)
Metals-API Overview
Metals-API is designed to provide developers with the tools necessary to build next-generation applications that require real-time metals data. With a focus on innovation and technological advancement, this API empowers users to access a wealth of information about various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD).
Key Features of Metals-API
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This allows traders to stay informed about the latest market movements.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. You can query the Metals-API for historical rates by appending a specific date to the endpoint. This feature is essential for analyzing trends and making informed investment decisions.
- Bid and Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for various metals, providing insights into market liquidity and pricing.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing you to convert any amount from one metal to another or to/from USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice, enabling detailed analysis of price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: Retrieve information about gold rates by carat, allowing for precise valuation of gold jewelry and other items.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specific 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, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for comprehensive market analysis.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates delivered by the Metals-API are relative to USD by default, with all data returned in a structured JSON format.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring you have access to the latest information.
- Gold Price India Endpoint: Retrieve the latest gold price in India, catering to a specific market segment.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context and insights into market movements.
Fetching Historical Prices for IAUM
GET https://metals-api.com/api/historical/XAU?date=2025-08-20&access_key=YOUR_API_KEY
Example API Responses
Latest Rates Endpoint
{
"success": true,
"timestamp": 1755745297,
"base": "USD",
"date": "2025-08-21",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1755658897,
"base": "USD",
"date": "2025-08-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-08-14",
"end_date": "2025-08-21",
"base": "USD",
"rates": {
"2025-08-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-08-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-08-21": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Common Use Cases
- Investment Analysis: Investors can use historical price data to analyze trends and make informed decisions about buying or selling gold.
- Market Research: Analysts can leverage the API to gather data for reports and presentations, providing insights into market dynamics.
- Trading Algorithms: Developers can integrate the API into trading algorithms to automate buying and selling based on real-time data.
- Portfolio Management: Financial advisors can use the API to track the performance of gold within client portfolios, ensuring optimal asset allocation.
Performance Optimization and Security Considerations
- Rate Limiting: Be aware of your subscription plan's rate limits to avoid exceeding your quota. Implement caching strategies to reduce the number of API calls.
- Data Validation: Ensure that all data received from the API is validated and sanitized before use to prevent potential security vulnerabilities.
- Error Handling: Implement robust error handling to manage API response errors gracefully, providing fallback mechanisms when necessary.
Conclusion
Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. The Metals-API Website is also a great resource for additional insights and updates.