How to retrieve Steel Scrap HMS 1&2 (SCRAP-HM) prices via API
Introduction
In the ever-evolving landscape of metal markets, the ability to retrieve real-time data on Steel Scrap HMS 1&2 (SCRAP-HM) prices is crucial for developers and businesses alike. The Metals-API provides a robust platform for accessing a wealth of information, including the latest prices, historical data, and conversion rates for various metals. This blog post will delve into the capabilities of the Metals-API, focusing on how it empowers developers to create innovative applications that leverage real-time metals data.
Understanding the Metals-API
The Metals-API is a powerful tool designed to facilitate the retrieval of metal prices and currency conversions through a simple and intuitive API interface. By integrating this API into applications, developers can access a wide range of functionalities that enhance their ability to analyze market trends, track price fluctuations, and make informed decisions based on real-time data.
Digital Transformation in Metal Markets
As industries increasingly embrace digital transformation, the demand for accurate and timely data has never been higher. The Metals-API plays a pivotal role in this transformation by providing developers with the tools necessary to access and utilize real-time data effectively. This API not only streamlines the process of retrieving metal prices but also integrates seamlessly with existing systems, allowing for enhanced data analytics and insights.
Technological Innovation and Advancement
The Metals-API is at the forefront of technological innovation in the metal markets. By offering features such as real-time exchange rates, historical data access, and advanced conversion capabilities, it empowers developers to build next-generation applications that can adapt to the dynamic nature of the metals market. The API's architecture is designed to support high-frequency trading and data analysis, making it an invaluable resource for financial institutions and businesses involved in metal trading.
Data Analytics and Insights
With the Metals-API, developers can harness the power of data analytics to gain insights into market trends and price movements. The API provides access to various endpoints that deliver real-time and historical data, enabling users to perform in-depth analyses and make data-driven decisions. For instance, the Time-Series Endpoint allows users to query daily historical rates between two dates, providing a comprehensive view of price trends over time.
Smart Technology Integration
Integrating the Metals-API into applications is straightforward, thanks to its well-documented endpoints and clear response structures. Developers can easily implement features such as currency conversion, bid and ask price retrieval, and fluctuation tracking. This integration not only enhances the functionality of applications but also improves user experience by providing real-time updates and insights.
Future Trends and Possibilities
As the metals market continues to evolve, the potential applications of the Metals-API are vast. Future trends may include the integration of machine learning algorithms for predictive analytics, enhanced visualization tools for data representation, and expanded support for additional metal symbols. By staying ahead of these trends, developers can ensure their applications remain relevant and competitive in the market.
API Description
The Metals-API offers a comprehensive suite of features designed to meet the needs of developers and businesses in the metal trading space. With endpoints that provide real-time data, historical rates, and conversion capabilities, the API is a versatile tool for anyone looking to access metal price information.
Key Features and Endpoints
The Metals-API includes several key features that enhance its usability and functionality:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes or every 10 minutes. This feature is essential for tracking the latest market prices for metals.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your query. This allows users to analyze past price trends and make informed decisions based on historical data.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: This endpoint enables users to convert any amount from one currency to another, facilitating transactions and price comparisons across different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for 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, which is particularly useful for jewelers and gold traders.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping users identify price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access 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, providing a long-term view of market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates are delivered relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing different functionalities tailored to user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metal symbols.
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
Understanding the API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1781050150,
"base": "USD",
"date": "2026-06-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": 1780963750,
"base": "USD",
"date": "2026-06-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": "2026-06-03",
"end_date": "2026-06-10",
"base": "USD",
"rates": {
"2026-06-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-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": 1781050150,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-03",
"end_date": "2026-06-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) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1781050150,
"base": "USD",
"date": "2026-06-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": 1781050150,
"base": "USD",
"date": "2026-06-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
The Metals-API is an essential resource for developers looking to access real-time data on Steel Scrap HMS 1&2 (SCRAP-HM) prices and other metals. By leveraging the API's extensive features, including the Latest Rates, Historical Rates, and Conversion endpoints, developers can create powerful applications that provide valuable insights into the metals market. As the industry continues to evolve, the Metals-API will remain a key player in facilitating access to critical data, enabling businesses to make informed decisions and stay ahead of market trends.
For more information on how to implement the Metals-API in your applications, refer to the Metals-API Documentation. Explore the full range of supported symbols on the Metals-API Supported Symbols page, and start building your next innovative application today!