Obtain Lanthanum (LTH) Historical Prices through this API

Obtain Lanthanum (LTH) Historical Prices through this API
In the rapidly evolving landscape of metal markets, the demand for accurate and real-time data has never been more critical. As a developer or data analyst, you may find yourself needing to obtain historical prices for various metals, including Lanthanum (LTH). This blog post will guide you through the process of accessing historical prices using the Metals-API, a powerful tool that provides comprehensive data on metal prices and currency conversions.
About Lanthanum (LTH)
Lanthanum, represented by the symbol LTH, is a rare earth metal that plays a significant role in various technological applications, including catalysts, phosphors, and batteries. As the world moves towards digital transformation, the metal markets are also undergoing significant changes. The integration of smart technologies and data analytics is reshaping how we understand and interact with these markets.
Technological innovation is at the forefront of this transformation. With advancements in data analytics, developers can now harness the power of real-time data to gain insights into market trends and fluctuations. The Metals-API is a prime example of how such innovations can empower developers to build next-generation applications that leverage historical and real-time data for better decision-making.
API Description
The Metals-API is designed to provide developers with access to a wide range of metal price data, including historical rates, latest rates, and conversion capabilities. The API's capabilities are transformative, allowing users to integrate real-time metals data into their applications seamlessly. This API is not just about retrieving data; itβs about enabling developers to create solutions that can analyze trends, forecast prices, and make informed decisions based on accurate information.
One of the standout features of the Metals-API is its ability to provide historical rates dating back to 2019. This allows developers to query the API for historical prices by appending a specific date to their requests. The API also supports various endpoints that cater to different needs, such as retrieving the latest rates, bid and ask prices, and even fluctuations over time.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each serving a unique purpose. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This is crucial for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates for most metals dating back to 2019. By appending a date to your query, you can retrieve the price of Lanthanum (LTH) for any specific day.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling you to convert any amount from one metal to another or to/from USD. This is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice, making it easier to analyze trends over time.
- Fluctuation Endpoint: Retrieve information about how metal prices fluctuate on a day-to-day basis, which is essential for understanding market volatility.
- Carat Endpoint: Get information about gold rates by carat, which is useful for jewelers and investors alike.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date range, helping you identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific time period, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for in-depth 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 includes 14 different endpoints, each providing distinct functionalities to cater to various data needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring you have access to the latest symbols and their specifications.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you 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. This resource is invaluable for developers looking to integrate specific metal data into their applications.
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": 1761015634,
"base": "USD",
"date": "2025-10-21",
"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": 1760929234,
"base": "USD",
"date": "2025-10-20",
"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": "2025-10-14",
"end_date": "2025-10-21",
"base": "USD",
"rates": {
"2025-10-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-21": {
"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": 1761015634,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-14",
"end_date": "2025-10-21",
"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": 1761015634,
"base": "USD",
"date": "2025-10-21",
"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": 1761015634,
"base": "USD",
"date": "2025-10-21",
"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, obtaining historical prices for Lanthanum (LTH) and other metals is made simple and efficient through the Metals-API. With its robust set of features and endpoints, developers can access real-time and historical data, enabling them to build applications that provide valuable insights into market trends. The integration of smart technology and data analytics is paving the way for a more informed approach to metal trading and investment.
For further exploration, refer to the Metals-API Documentation for detailed information on how to implement these features in your applications. Additionally, the Metals-API Supported Symbols page will help you navigate the various metal symbols available for your queries.
As the metal markets continue to evolve, staying informed and leveraging the right tools will be essential for success. Embrace the future of metal trading with the Metals-API and unlock the potential of historical data at your fingertips.