Integrate iShares Gold Strategy ETF (IAUF) prices using this API into your application
Integrate iShares Gold Strategy ETF (IAUF) Prices Using Metals-API into Your Application
In the world of finance, the integration of real-time data into applications is crucial for making informed investment decisions. One such asset that has garnered significant attention is the iShares Gold Strategy ETF (IAUF), which provides exposure to gold prices. By utilizing the Metals-API, developers can seamlessly integrate gold price data into their applications, enhancing user experience and providing valuable insights into market trends.
About Gold (XAU)
Gold, represented by the symbol XAU, is not just a precious metal; it is a digital asset that has undergone a transformation in the age of technology. The digital transformation in precious metals has opened new avenues for data analytics and market insights. With the rise of technology integration in trading, investors can now leverage innovative solutions for price discovery and trading strategies.
As the demand for gold continues to rise, understanding its market dynamics becomes essential. The Metals-API provides developers with the tools to access real-time and historical data, enabling them to build applications that can analyze trends, forecast prices, and provide users with actionable insights. This API empowers developers to create next-generation applications that can adapt to the rapidly changing landscape of precious metals trading.
API Description
The Metals-API is a powerful tool that offers real-time metals data, allowing developers to build applications that can respond to market changes instantly. With its comprehensive set of features, the API supports various endpoints that cater to different data needs, from real-time exchange rates to historical data analysis.
One of the standout features of the Metals-API is its ability to provide real-time data updates. Depending on your subscription plan, the API can deliver the latest rates every 60 minutes or even every 10 minutes. This capability ensures that developers can provide their users with the most accurate and up-to-date information available.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that can be utilized for different purposes:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for various metals, including gold (XAU). The response includes the latest rates updated based on your subscription plan.
- Historical Rates Endpoint: Developers can access historical rates dating back to 2019. By appending a specific date to the request, users can retrieve past rates for analysis.
- Bid and Ask Endpoint: This feature allows developers to retrieve real-time bid and ask prices, which are crucial for traders looking to make informed decisions based on market conditions.
- Convert Endpoint: The API includes a currency conversion endpoint that enables users to convert amounts between different metals or to/from USD, making it versatile for various applications.
- Time-Series Endpoint: This endpoint allows developers to query daily historical rates between two dates, providing insights into price trends over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, which is essential for understanding market volatility.
- Carat Endpoint: This feature provides information about gold rates by carat, catering to jewelers and consumers interested in specific gold qualities.
- Lowest/Highest Price Endpoint: Developers can query the API to get the lowest and highest prices for a specified date, which is useful for identifying 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, allowing for in-depth market analysis.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API comes with 14 endpoints, each designed to provide specific functionalities tailored to developers' needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring developers have access to the latest information.
- News Endpoint: Retrieve 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 Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1765346449,
"base": "USD",
"date": "2025-12-10",
"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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1765260049,
"base": "USD",
"date": "2025-12-09",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2025-12-03",
"end_date": "2025-12-10",
"base": "USD",
"rates": {
"2025-12-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-12-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-10": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1765346449,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-03",
"end_date": "2025-12-10",
"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"
}
OHLC (Open/High/Low/Close) Price Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1765346449,
"base": "USD",
"date": "2025-12-10",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1765346449,
"base": "USD",
"date": "2025-12-10",
"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"
}
Conclusion
Integrating the iShares Gold Strategy ETF (IAUF) prices into your application using the Metals-API can significantly enhance the functionality and user experience of your financial applications. By leveraging the comprehensive features of the Metals-API, developers can provide real-time data, historical insights, and analytical tools that empower users to make informed investment decisions.
With the ability to access various endpoints, including the latest rates, historical data, and fluctuation tracking, developers can create robust applications that cater to the needs of traders and investors alike. The API's versatility and ease of integration make it an invaluable resource for anyone looking to delve into the world of precious metals.
For more information on how to get started, visit the Metals-API Documentation and explore the Metals-API Supported Symbols to find the right data for your application. Embrace the future of trading with the Metals-API and unlock the potential of real-time metals data.