Fetch US Midwest Steel CRU Feb 2026 (HVG26) Historical Prices using this API

Introduction
The world of metals trading is undergoing a significant transformation, driven by technological advancements and the increasing demand for real-time data. One of the most powerful tools available to developers in this space is the Metals-API. This API provides comprehensive access to historical prices, including the US Midwest Steel CRU Feb 2026 (HVG26), enabling developers to create innovative applications that leverage real-time and historical metals data. In this blog post, we will explore how to fetch historical prices using the Metals-API, focusing on the symbol for Gold (XAU) as a case study. We will delve into the API's capabilities, its endpoints, and how it can empower developers to build next-generation applications in the metals market.
Understanding Metals-API
The Metals-API is a robust platform that offers real-time and historical data for various metals, including precious metals like gold, silver, platinum, and palladium. It is designed to cater to the needs of developers, traders, and analysts who require accurate and timely information to make informed decisions. The API provides a variety of endpoints that allow users to access the latest rates, historical prices, and even perform conversions between different metals and currencies.
About Gold (XAU)
Gold, represented by the symbol XAU, is one of the most sought-after metals in the world. Its value is influenced by various factors, including market demand, geopolitical stability, and economic indicators. The ability to access historical prices for gold is crucial for traders and analysts who want to understand market trends and make predictions about future movements. With the Metals-API, developers can easily retrieve historical data for gold, enabling them to build applications that provide insights into market behavior.
Fetching Historical Prices with Metals-API
To fetch historical prices using the Metals-API, developers can utilize the Historical Rates Endpoint. This endpoint allows users to access historical exchange rates for various metals, including gold, dating back to 2019. By appending a specific date to the API request, users can retrieve the historical price data they need.
API Description and Capabilities
The Metals-API is designed with innovation and technological advancement in mind. It provides developers with the tools they need to build applications that can analyze and visualize metals data effectively. The API offers several key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, every 10 minutes, or even more frequently, depending on the subscription plan.
- Historical Rates Endpoint: Users can access historical rates for most metals dating back to 2019, allowing for in-depth analysis of price trends over time.
- Bid and Ask Endpoint: This feature enables users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity.
- Convert Endpoint: The API includes a currency conversion feature, allowing users to convert amounts from one metal to another or to/from USD.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, facilitating trend analysis.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, essential for technical analysis.
- Historical LME Endpoint: Users can access historical rates for LME symbols dating back to 2008, which is crucial for understanding long-term market trends.
- API Key: Each user is provided with a unique API key that must be included in requests to authenticate access to the API.
- API Response: The API returns exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API offers 14 different endpoints, each providing unique functionalities tailored to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available metal symbols, ensuring users can easily find the data they need.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India, catering to a specific market segment.
- News Endpoint: This feature allows users to access the latest news articles related to various metals, keeping them informed about market developments.
Example API Responses
To illustrate the capabilities of the Metals-API, let's take a look at some example responses for different endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1760130063,
"base": "USD",
"date": "2025-10-10",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
This response provides the latest exchange rates for various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1760043663,
"base": "USD",
"date": "2025-10-09",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical exchange rates for a specific date, allowing users to analyze past market behavior.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-03",
"end_date": "2025-10-10",
"base": "USD",
"rates": {
"2025-10-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-10": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of exchange rates for gold over a specified period, enabling users to visualize trends and fluctuations.
Common Use Cases for Metals-API
The Metals-API can be utilized in various applications across different industries. Here are some common use cases:
- Trading Platforms: Developers can integrate the Metals-API into trading platforms to provide users with real-time pricing information and historical data for metals.
- Market Analysis Tools: Analysts can use the API to build tools that analyze market trends, helping traders make informed decisions based on historical price movements.
- Financial Applications: Financial institutions can leverage the API to offer clients insights into metal investments, including performance tracking and risk assessment.
- Research and Development: Researchers can utilize the API to gather data for academic studies related to metals markets, economic indicators, and investment strategies.
Best Practices for Using Metals-API
When working with the Metals-API, it is essential to follow best practices to ensure optimal performance and security:
- Authentication: Always use your unique API key in requests to authenticate and gain access to the API.
- Rate Limiting: Be aware of your subscription plan's rate limits to avoid exceeding the allowed number of requests.
- Error Handling: Implement robust error handling to manage potential issues, such as invalid requests or server errors.
- Data Validation: Ensure that any data received from the API is validated and sanitized before use to prevent security vulnerabilities.
- Performance Optimization: Cache frequently accessed data to reduce the number of API calls and improve application performance.
Conclusion
The Metals-API is a powerful tool for developers looking to access real-time and historical data for metals, including the US Midwest Steel CRU Feb 2026 (HVG26). By leveraging the API's capabilities, developers can create innovative applications that provide valuable insights into market trends and price movements. With endpoints for the latest rates, historical data, and various conversion options, the Metals-API empowers users to make informed decisions in the dynamic metals market.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols to find the data you need. Embrace the future of metals trading with the transformative potential of real-time data at your fingertips.