The Easiest Way to Get Nickel China Spot (NI-CH) Historical Rates via Web Scraping
The Easiest Way to Get Nickel China Spot (NI-CH) Historical Rates via Web Scraping
In the ever-evolving landscape of metal markets, the demand for accurate and real-time data has never been more critical. For developers and analysts looking to access historical prices for Nickel (XNI) and other metals, the Metals-API offers a robust solution. This blog post will guide you through the process of obtaining Nickel historical prices using the Metals-API, focusing on its capabilities, endpoints, and practical applications.
About Nickel (XNI)
Nickel is a vital metal in various industries, particularly in the production of stainless steel and batteries. As the world shifts towards digital transformation, the metal markets are also experiencing significant changes. Technological innovations and advancements in data analytics are paving the way for smarter technology integration, allowing for more efficient trading and investment strategies.
With the rise of electric vehicles and renewable energy technologies, the demand for Nickel is expected to surge. Understanding historical price trends can provide valuable insights for investors and developers alike. By leveraging the Metals-API, you can access a wealth of data that empowers you to make informed decisions based on historical trends and real-time fluctuations.
API Description
The Metals-API is a powerful tool that provides real-time and historical data for various metals, including Nickel. It enables developers to build next-generation applications that require accurate and timely information. With its user-friendly interface and comprehensive documentation, the Metals-API simplifies the process of accessing metal prices and currency conversions.
For more information, you can visit the Metals-API Website or explore the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data, updated based on your subscription plan. You can receive updates every 60 minutes, every 10 minutes, or even more frequently, depending on your needs.
- Historical Rates Endpoint: Access historical rates for Nickel and other metals dating back to 2019. You can query the API by appending a specific date in the format YYYY-MM-DD to retrieve historical data.
- Bid and Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, giving you insights into market dynamics.
- Convert Endpoint: Easily convert any amount from one metal to another or to/from USD using this dedicated endpoint.
- 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: Track how prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about Gold rates by Carat, which is particularly useful for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for a specified date, helping you identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for a specific time period, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for understanding long-term trends.
- 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, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 endpoints, each providing distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring you have access to the latest symbol information.
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 how to effectively use the Metals-API, letβs explore some example endpoints and their corresponding responses.
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the following endpoint:
{ "success": true, "timestamp": 1780304949, "base": "USD", "date": "2026-06-01", "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" }
This response indicates a successful request, providing the current rates for various metals, including Nickel (XNI).
Historical Rates Endpoint
To access historical exchange rates for any date since 1999, you can use the following endpoint:
{ "success": true, "timestamp": 1780218549, "base": "USD", "date": "2026-05-31", "rates": { "XAU": 0.000485, "XAG": 0.03825, "XPT": 0.000915, "XPD": 0.000748 }, "unit": "per troy ounce" }
This response shows the historical rates for the specified date, allowing you to analyze past price movements.
Time-Series Endpoint
To get exchange rates for a specific time period, you can use the following endpoint:
{ "success": true, "timeseries": true, "start_date": "2026-05-25", "end_date": "2026-06-01", "base": "USD", "rates": { "2026-05-25": { "XAU": 0.000485, "XAG": 0.03825, "XPT": 0.000915 }, "2026-05-27": { "XAU": 0.000483, "XAG": 0.0382, "XPT": 0.000913 }, "2026-06-01": { "XAU": 0.000482, "XAG": 0.03815, "XPT": 0.000912 } }, "unit": "per troy ounce" }
This response provides a time series of rates, enabling you to visualize trends over the specified period.
Convert Endpoint
To convert any amount from one metal to another or to/from USD, you can use the following endpoint:
{ "success": true, "query": { "from": "USD", "to": "XAU", "amount": 1000 }, "info": { "timestamp": 1780304949, "rate": 0.000482 }, "result": 0.482, "unit": "troy ounces" }
This response shows the conversion of 1000 USD to Gold (XAU), providing the equivalent amount in troy ounces.
Fluctuation Endpoint
To track rate fluctuations between two dates, you can use the following endpoint:
{ "success": true, "fluctuation": true, "start_date": "2026-05-25", "end_date": "2026-06-01", "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" }
This response provides insights into how prices have changed over the specified period, highlighting both absolute and percentage changes.
OHLC (Open/High/Low/Close) Endpoint
To get OHLC data for a specific time period, you can use the following endpoint:
{ "success": true, "timestamp": 1780304949, "base": "USD", "date": "2026-06-01", "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 response provides essential data for traders and analysts who rely on OHLC information for making informed trading decisions.
Bid/Ask Endpoint
To get current bid and ask prices for metals, you can use the following endpoint:
{ "success": true, "timestamp": 1780304949, "base": "USD", "date": "2026-06-01", "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" }
This response shows the current market conditions for various metals, which is crucial for traders looking to execute orders at the best prices.
Conclusion
Accessing historical prices for Nickel (XNI) and other metals has never been easier, thanks to the Metals-API. By leveraging its various endpoints, developers can obtain real-time and historical data that is essential for making informed decisions in the metal markets. Whether you are analyzing trends, converting currencies, or tracking fluctuations, the Metals-API provides the tools you need to succeed.
For further exploration, refer to the Metals-API Documentation for detailed information on each endpoint and its capabilities. Additionally, the Metals-API Supported Symbols page offers a comprehensive list of available symbols to enhance your data analysis.
In a world where data is king, the Metals-API stands out as a transformative tool for developers and analysts alike. Embrace the power of real-time metals data and unlock new possibilities for your applications.