Get United States Dollar (USD) Historical Prices via this API
Get United States Dollar (USD) Historical Prices via this API
The ability to access historical prices for metals such as Nickel (NI) is crucial for developers and analysts in the financial sector. With the rise of digital transformation in metal markets, the need for accurate and real-time data has never been more pressing. The Metals-API provides a robust solution for retrieving historical prices, empowering developers to build applications that leverage this data for various analytical purposes.
Metals-API Information
About Nickel (NI)
Nickel, represented by the symbol NI, plays a significant role in various industries, particularly in the production of stainless steel and batteries. As the metal market undergoes a digital transformation, technological innovations are reshaping how data is collected, analyzed, and utilized. The integration of smart technologies and data analytics is enabling stakeholders to gain insights that were previously unattainable.
With the Metals-API, developers can access a wealth of information about Nickel and other metals, allowing for advanced data analytics and insights. This API not only provides real-time data but also historical pricing, which is essential for trend analysis and forecasting future prices. The future of metal markets is leaning towards increased transparency and accessibility, and the Metals-API is at the forefront of this transformation.
API Description
The Metals-API is designed to provide developers with comprehensive access to real-time and historical metal prices. This API is particularly beneficial for those looking to integrate metal pricing data into their applications, whether for trading, investment analysis, or market research. The API's capabilities include fetching the latest rates, historical data, and even fluctuations over time, all of which are crucial for making informed decisions in the fast-paced metal markets.
One of the standout features of the Metals-API is its ability to deliver data in a user-friendly JSON format, making it easy for developers to parse and utilize the information in their applications. The API supports a variety of endpoints, each tailored to specific needs, such as retrieving the latest rates, historical prices, and even bid/ask prices for metals.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a date in the format YYYY-MM-DD, developers can query the Metals-API for historical rates, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, which is crucial for traders looking to make informed decisions based on current market conditions.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert any amount from one currency to another. This is particularly useful for applications that need to handle multiple currencies seamlessly.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, facilitating detailed trend analysis.
- Fluctuation Endpoint: Users can retrieve information about how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and investors in the gold market.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest price for a specified date, which is crucial for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access OHLC data for a specific time period, which is vital for technical analysis in trading.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: The API requires an API key for authentication, ensuring secure access to the data.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, and all data is returned in a structured format for easy integration.
- Available Endpoints: The Metals-API offers 14 different endpoints, each providing unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest symbols.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market trends and 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. This resource is invaluable for developers looking to integrate specific metal data into their applications.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective implementation. Below are examples of various API endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1774830012,
"base": "USD",
"date": "2026-03-30",
"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": 1774743612,
"base": "USD",
"date": "2026-03-29",
"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-03-23",
"end_date": "2026-03-30",
"base": "USD",
"rates": {
"2026-03-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-30": {
"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": 1774830012,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-23",
"end_date": "2026-03-30",
"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": 1774830012,
"base": "USD",
"date": "2026-03-30",
"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": 1774830012,
"base": "USD",
"date": "2026-03-30",
"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 a powerful tool for developers looking to access historical prices and real-time data for metals like Nickel (NI). With its extensive range of endpoints, the API offers flexibility and functionality that can be tailored to meet various analytical needs. By leveraging the capabilities of the Metals-API, developers can create applications that provide valuable insights into metal markets, enabling better decision-making and strategic planning.
For more information on how to implement this API in your projects, refer to the Metals-API Documentation. To explore the full range of supported symbols, visit the Metals-API Supported Symbols page. The future of metal market analysis is here, and the Metals-API is leading the way.