Understanding the API for

Metals-API 5 min read
Understanding the API for

Understanding the API for Neodymium (ND)

In the rapidly evolving landscape of metal markets, the ability to access and analyze real-time data is crucial for developers and businesses alike. The Metals-API provides a powerful solution for obtaining historical prices and current rates for various metals, including Neodymium (ND). This blog post will delve into the capabilities of the Metals-API, focusing on how developers can leverage its features to gain insights into the metal markets, particularly through the lens of Neodymium.

Metals-API Information

About Neodymium (ND)

Neodymium is a rare earth metal that plays a pivotal role in various technological advancements, particularly in the fields of electronics, renewable energy, and advanced manufacturing. As industries undergo digital transformation, the demand for Neodymium has surged, leading to innovative applications in high-strength magnets, lasers, and catalysts. The integration of smart technologies and data analytics in metal markets has enabled stakeholders to make informed decisions based on real-time data.

With the rise of data analytics, businesses can now harness insights from historical price trends to forecast future movements in the market. The Metals-API empowers developers to build applications that can analyze these trends, offering a competitive edge in the marketplace. As we look to the future, the possibilities for Neodymium and its applications are vast, driven by technological innovation and the need for sustainable solutions.

API Description

The Metals-API is a comprehensive tool designed to provide developers with access to real-time and historical data for various metals, including Neodymium. By utilizing this API, developers can create next-generation applications that require accurate and timely metal pricing information. The API's capabilities extend beyond mere data retrieval; it offers a transformative potential for businesses looking to integrate real-time metals data into their operations.

For more detailed information, you can visit the Metals-API Documentation, which outlines the various features and functionalities available.

Key Features and Endpoints

The Metals-API boasts a variety of endpoints that cater to different needs within the metal market. Here are some of the key features:

  • Latest Rates Endpoint: This endpoint provides real-time exchange rate data, updated based on your subscription plan. Developers can access the latest rates for Neodymium and other metals, allowing for immediate insights into market conditions.
  • Historical Rates Endpoint: Historical rates for Neodymium are available dating back to 2019. By appending a specific date to the API request, developers can retrieve past pricing data, which is essential for trend analysis and forecasting.
  • Bid and Ask Endpoint: This feature enables users to obtain real-time bid and ask prices for Neodymium, providing insights into market liquidity and pricing dynamics.
  • Convert Endpoint: The conversion endpoint allows developers to convert amounts from one metal to another or to/from USD, facilitating seamless transactions and calculations.
  • Time-Series Endpoint: This endpoint allows for querying daily historical rates between two specified dates, making it easier to analyze trends over time.
  • Fluctuation Endpoint: Users can track how Neodymium prices fluctuate between two dates, providing valuable insights into market volatility.
  • Carat Endpoint: This feature retrieves information about gold rates by carat, which can be useful for applications involving precious metals.
  • Lowest/Highest Price Endpoint: Developers can query the API to find the lowest and highest prices for Neodymium over a specified period, aiding in market analysis.
  • Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed OHLC data, essential for traders and analysts looking to understand market movements.
  • Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for comprehensive market analysis.
  • API Key: Each user is assigned a unique API key, which is essential for authentication and accessing the API's features.
  • API Response: The API delivers exchange rates relative to USD, ensuring consistency in data interpretation.
  • Available Endpoints: The Metals-API offers a total of 14 endpoints, each designed to fulfill specific functionalities.
  • Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, including Neodymium.
  • 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, including Neodymium. 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, here are some examples of API responses for various endpoints:

Latest Rates Endpoint

Get real-time exchange rates for all available metals:

{
"success": true,
"timestamp": 1771546598,
"base": "USD",
"date": "2026-02-20",
"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": 1771460198,
"base": "USD",
"date": "2026-02-19",
"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-13",
"end_date": "2026-02-20",
"base": "USD",
"rates": {
"2026-02-13": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-15": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-20": {
"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": 1771546598,
"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-13",
"end_date": "2026-02-20",
"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": 1771546598,
"base": "USD",
"date": "2026-02-20",
"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": 1771546598,
"base": "USD",
"date": "2026-02-20",
"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 offers a robust framework for developers looking to access real-time and historical data for Neodymium and other metals. By leveraging the various endpoints, developers can create applications that provide valuable insights into market trends, pricing dynamics, and historical data analysis. The ability to convert currencies, track fluctuations, and access comprehensive news articles further enhances the API's utility.

As industries continue to evolve, the importance of accurate and timely data cannot be overstated. The Metals-API stands out as a vital tool for developers aiming to integrate metal pricing data into their applications. For more information, visit the Metals-API Website and explore the extensive documentation available.