Fetch Lanthanum (LTH) Historical Prices with this API

Fetch Lanthanum (LTH) Historical Prices with this API
In the rapidly evolving landscape of digital transformation, the demand for accurate and real-time data in the metal markets has never been more critical. For developers and businesses looking to harness the power of data analytics and insights, the Metals-API offers a robust solution for fetching historical prices of metals, including Lanthanum (LTH). This blog post will delve into the capabilities of the Metals-API, exploring how it empowers developers to create innovative applications that leverage historical pricing data and real-time market insights.
About Lanthanum (LTH)
Lanthanum, represented by the symbol LTH, is a rare earth metal that plays a pivotal role in various high-tech applications, including catalysts in petroleum refining, phosphors in lighting, and components in batteries. As the world moves towards more sustainable technologies, the demand for Lanthanum is expected to rise, making it essential for developers and businesses to access accurate historical pricing data.
The digital transformation in metal markets is characterized by technological innovation and advancement. The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to integrate real-time and historical data into their applications. By utilizing data analytics, businesses can gain insights into market trends, optimize their operations, and make informed decisions based on historical price movements.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical pricing data for various metals, including Lanthanum. With its user-friendly interface and comprehensive documentation, developers can quickly integrate the API into their applications, enabling them to fetch the data they need to drive their business decisions.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated frequently based on the subscription plan. This capability allows developers to build next-generation applications that require up-to-the-minute pricing information. Additionally, the API supports a wide range of endpoints, each designed to cater to specific data needs, from historical rates to conversion functionalities.
For more detailed information about the API, you can visit the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated according to your subscription plan. Developers can easily access the latest market rates for Lanthanum and other metals.
- Historical Rates Endpoint: With this feature, users can access historical rates for most metals dating back to 2019. By appending a specific date to the API request, developers can retrieve the historical price of Lanthanum, enabling them to analyze trends over time.
- Bid and Ask Endpoint: This powerful feature allows developers to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion endpoint enables users to convert any amount from one metal to another or to/from USD, facilitating seamless transactions and calculations.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates, making it easier to analyze price movements over time.
- Fluctuation Endpoint: Developers can track how prices fluctuate on a day-to-day basis using this endpoint, which provides valuable insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed OHLC data for a specific time period, allowing developers to analyze price trends and make informed trading decisions.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Each user receives a unique API key that must be included in API requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency and ease of use for developers.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, including Lanthanum, ensuring developers have access to the latest data.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping developers informed about market developments.
For a complete list of all supported symbols, including Lanthanum, refer to the Metals-API Supported Symbols.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various API endpoints and their corresponding responses:
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the following request:
{
"success": true,
"timestamp": 1748135189,
"base": "USD",
"date": "2025-05-25",
"rates": {
"LTH": 0.000482,
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Accessing historical exchange rates for a specific date can be done with the following request:
{
"success": true,
"timestamp": 1748048789,
"base": "USD",
"date": "2025-05-24",
"rates": {
"LTH": 0.000485,
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
To retrieve exchange rates for a specific time period, you can use the time-series endpoint:
{
"success": true,
"timeseries": true,
"start_date": "2025-05-18",
"end_date": "2025-05-25",
"base": "USD",
"rates": {
"2025-05-18": {
"LTH": 0.000485,
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-05-20": {
"LTH": 0.000483,
"XAU": 0.000483,
"XAG": 0.0382
},
"2025-05-25": {
"LTH": 0.000482,
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Convert Endpoint
To convert any amount from one metal to another or to/from USD, you can use the convert endpoint:
{
"success": true,
"query": {
"from": "USD",
"to": "LTH",
"amount": 1000
},
"info": {
"timestamp": 1748135189,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
To track rate fluctuations between two dates, you can use the fluctuation endpoint:
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-18",
"end_date": "2025-05-25",
"base": "USD",
"rates": {
"LTH": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
},
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Endpoint
To get OHLC data for a specific time period, you can use the following request:
{
"success": true,
"timestamp": 1748135189,
"base": "USD",
"date": "2025-05-25",
"rates": {
"LTH": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
},
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
To get current bid and ask prices for metals, you can use the following request:
{
"success": true,
"timestamp": 1748135189,
"base": "USD",
"date": "2025-05-25",
"rates": {
"LTH": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Conclusion
The Metals-API provides a comprehensive solution for developers looking to access historical prices and real-time data for metals like Lanthanum (LTH). By leveraging the various endpoints offered by the API, developers can create applications that not only track price movements but also analyze trends and make informed decisions based on accurate data.
As the demand for metals continues to grow, especially in the context of technological advancements and sustainable practices, the ability to access and analyze historical pricing data will be crucial. The Metals-API stands out as a powerful tool that enables developers to integrate this data into their applications seamlessly.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the extensive Metals-API Documentation for detailed guidance on implementation and usage.