Access iShares Gold Trust Micro (IAUM) prices effortlessly with this API

Access iShares Gold Trust Micro (IAUM) Prices Effortlessly with this API
The iShares Gold Trust Micro (IAUM) is a popular investment vehicle that allows investors to gain exposure to the price of gold without the complexities of physical ownership. As the demand for gold continues to rise, so does the need for accurate and real-time pricing data. This is where the Metals-API comes into play, providing developers with the tools necessary to access gold prices and other precious metals data effortlessly. In this blog post, we will explore the capabilities of the Metals-API, focusing on how it can be utilized to access the latest prices for IAUM and other metals.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has been a cornerstone of wealth preservation and investment for centuries. In recent years, the digital transformation in precious metals trading has revolutionized how investors access and analyze gold prices. The integration of data analytics and technology in trading has opened new avenues for market insights and price discovery.
With the rise of digital asset solutions, investors can now leverage advanced technologies to make informed decisions. The Metals-API stands at the forefront of this transformation, offering real-time data that empowers developers to build next-generation applications. By harnessing the power of data analytics, traders can gain insights into market trends, fluctuations, and historical performance, enabling them to optimize their trading strategies.
API Description
The Metals-API is a powerful tool that provides real-time and historical data for various metals, including gold, silver, platinum, and palladium. It offers a comprehensive suite of features that cater to the needs of developers looking to integrate metals pricing into their applications. The API's capabilities include:
- Real-time Pricing: Access the latest rates for gold and other metals, updated frequently based on your subscription plan.
- Historical Data: Retrieve historical rates dating back to 2019, allowing for in-depth analysis and trend identification.
- Bid and Ask Prices: Get real-time bid and ask prices for metals, essential for traders looking to make informed decisions.
- Currency Conversion: Convert amounts between different metals and currencies seamlessly.
- Time-Series Data: Analyze price movements over specific time periods, providing insights into market behavior.
- Fluctuation Tracking: Monitor how prices fluctuate over time, helping traders understand volatility.
- Carat Pricing: Access gold rates based on carat measurements, useful for jewelers and consumers alike.
- OHLC Data: Get open, high, low, and close prices for metals, crucial for technical analysis.
- News Updates: Stay informed with the latest news articles related to metals, enhancing market awareness.
For more detailed information on the API's features, you can refer to the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide different functionalities, each designed to meet specific needs of developers and traders. Below, we will delve into some of the key features and how they can be utilized effectively.
Latest Rates Endpoint
The Latest Rates Endpoint allows users to access real-time exchange rate data for metals. Depending on your subscription plan, the API can return updated rates every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need up-to-the-minute pricing information to make informed decisions.
{
"success": true,
"timestamp": 1748066414,
"base": "USD",
"date": "2025-05-24",
"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"
}
In this response, the "rates" object provides the current price of various metals, with XAU representing gold. The "unit" indicates that the prices are quoted per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
The Historical Rates Endpoint enables users to access historical exchange rates for any date since 2019. This feature is particularly useful for conducting trend analysis and understanding how prices have changed over time.
{
"success": true,
"timestamp": 1747980014,
"base": "USD",
"date": "2025-05-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
The response includes the historical rates for the specified date, allowing developers to analyze past performance and make predictions about future movements.
Bid and Ask Endpoint
The Bid and Ask Endpoint provides real-time bid and ask prices for metals, which are crucial for traders looking to execute buy and sell orders effectively. This feature allows users to understand the current market sentiment and make informed trading decisions.
{
"success": true,
"timestamp": 1748066414,
"base": "USD",
"date": "2025-05-24",
"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" price represents the highest price a buyer is willing to pay, while the "ask" price is the lowest price a seller will accept. The "spread" indicates the difference between these two prices, which can be a critical factor in trading strategies.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies or metals.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1748066414,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
In this example, the API converts 1000 USD into gold, providing the result in troy ounces. This functionality is essential for investors looking to understand their investments' value across different asset classes.
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for traders who want to analyze price movements over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2025-05-17",
"end_date": "2025-05-24",
"base": "USD",
"rates": {
"2025-05-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily rates for the specified period, allowing traders to visualize trends and make data-driven decisions.
Fluctuation Endpoint
The Fluctuation Endpoint allows users to retrieve information about how currencies fluctuate on a day-to-day basis. This feature is essential for understanding market volatility and making informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-17",
"end_date": "2025-05-24",
"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 response details the starting and ending rates for each metal, along with the change and percentage change over the specified period. This information is crucial for traders looking to capitalize on market movements.
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint provides users with the open, high, low, and close prices for metals over a specific time period. This data is vital for technical analysis and understanding market trends.
{
"success": true,
"timestamp": 1748066414,
"base": "USD",
"date": "2025-05-24",
"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's response allows traders to assess market performance over a specific period, helping them make informed decisions based on historical data.
Security and Best Practices
When working with the Metals-API, it is essential to consider security best practices. Ensure that your API key is kept confidential and not exposed in public repositories or client-side code. Implement rate limiting and quota management to avoid exceeding your subscription limits. Additionally, validate and sanitize all input data to prevent injection attacks and ensure data integrity.
Conclusion
The Metals-API offers a comprehensive solution for accessing real-time and historical pricing data for precious metals, including gold. By leveraging its powerful features, developers can create innovative applications that provide valuable insights into market trends and price movements. Whether you are a trader looking to optimize your strategies or a developer building a financial application, the Metals-API provides the tools you need to succeed.
For more information on the API's capabilities, visit the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. Start integrating the Metals-API into your applications today and unlock the potential of real-time metals data.