The Easiest Way to Get LME Nickel (LME-NI) Historical Rates through Web Scraping
The Easiest Way to Get LME Nickel (LME-NI) Historical Rates through Web Scraping
In the world of metals trading, having access to accurate and timely data is crucial for making informed decisions. One of the most effective ways to obtain historical prices for metals, such as Nickel (LME-NI), is through the Metals-API. This powerful API provides developers with the tools necessary to access real-time and historical rates, enabling the creation of sophisticated applications that can analyze market trends and fluctuations. In this blog post, we will explore how to retrieve historical prices for Nickel using the Metals-API, including example endpoints, parameters, and data formats.
Metals-API Information
The Metals-API is a comprehensive solution for accessing metals prices and currency conversion data. It offers a wide range of endpoints that allow developers to retrieve the latest rates, historical data, and even perform conversions between different metals and currencies. The API is designed to support the digital transformation of metal markets, leveraging technological innovations and advancements in data analytics to provide valuable insights.
About Nickel (XNI)
Nickel, represented by the symbol XNI, is a key metal in various industrial applications, including the production of stainless steel and batteries. As the demand for electric vehicles and renewable energy technologies grows, the importance of Nickel in the global market is expected to increase significantly. The Metals-API empowers developers to tap into this potential by providing real-time and historical data that can be used for market analysis, investment strategies, and more.
With the integration of smart technology and data analytics, developers can create applications that not only track Nickel prices but also predict future trends based on historical data. By utilizing the Metals-API, developers can gain insights into price fluctuations, market volatility, and other critical factors that influence the Nickel market.
API Description
The Metals-API offers a robust set of features that cater to the needs of developers looking to access metals data. With a focus on innovation and technological advancement, the API provides real-time exchange rates, historical data, and various endpoints that facilitate data retrieval and analysis.
For more information, you can visit the Metals-API Website or check the Metals-API Documentation for detailed guidance on using the API.
Key Features and Endpoints
The Metals-API includes several key features and endpoints that enhance its functionality:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes or more frequently. This feature is essential for developers who need the most current pricing information.
- Historical Rates Endpoint: Access historical rates for most metals dating back to 2019. By appending a specific date (YYYY-MM-DD) to the endpoint, developers can retrieve historical prices for Nickel and other metals.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time Bid and Ask prices for metals, providing insights into market conditions and trading opportunities.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that enables users to convert any amount from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price trends over time.
- Fluctuation Endpoint: Retrieve information about how metals fluctuate on a day-to-day basis, helping developers understand market volatility.
- Carat Endpoint: Access information about Gold rates by Carat, which is particularly useful for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows users to retrieve the 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, making it a valuable resource for long-term market analysis.
- API Key: Your unique API Key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API offers 14 different endpoints, each providing unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available metal symbols through this endpoint.
- 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
To illustrate the capabilities of the Metals-API, let's explore some example endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1772860059,
"base": "USD",
"date": "2026-03-07",
"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": 1772773659,
"base": "USD",
"date": "2026-03-06",
"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-02-28",
"end_date": "2026-03-07",
"base": "USD",
"rates": {
"2026-02-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-02": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-07": {
"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": 1772860059,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-28",
"end_date": "2026-03-07",
"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": 1772860059,
"base": "USD",
"date": "2026-03-07",
"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": 1772860059,
"base": "USD",
"date": "2026-03-07",
"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
In conclusion, the Metals-API provides a powerful and flexible solution for developers looking to access historical rates for Nickel (LME-NI) and other metals. With a variety of endpoints available, including the latest rates, historical data, and conversion capabilities, developers can create applications that leverage real-time and historical data to gain insights into market trends and fluctuations.
By utilizing the Metals-API, developers can not only track prices but also analyze market behavior, predict future trends, and make informed decisions based on comprehensive data analytics. As the metal markets continue to evolve with technological advancements, the Metals-API stands out as a vital tool for those seeking to stay ahead in this dynamic industry.
For further exploration of the API's capabilities, be sure to check the Metals-API Documentation and the Metals-API Supported Symbols page to discover all the available features and endpoints. Embrace the future of metals trading with the Metals-API and unlock the potential of real-time data at your fingertips.