Retrieve Terbium (TER) Historical Prices for Data Analysis via API

Introduction
In the rapidly evolving landscape of digital finance, the ability to retrieve historical prices for metals such as Terbium (TER) is crucial for data analysis and informed decision-making. The Metals-API provides a powerful platform for developers to access real-time and historical data on various metals, enabling them to build innovative applications that leverage this information. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices for Terbium and other metals, while exploring the broader implications of digital transformation in the metal markets.
Metals-API Information
About Terbium (TER)
Terbium, a rare earth metal, is gaining attention in various industries due to its unique properties and applications. As the demand for advanced technologies increases, the need for reliable data on metal prices becomes paramount. The digital transformation in metal markets is driven by technological innovation and advancements in data analytics, allowing stakeholders to gain valuable insights into market trends.
With the integration of smart technologies, businesses can now analyze historical data to forecast future trends and make informed decisions. The Metals-API plays a pivotal role in this transformation by providing developers with the tools they need to access and analyze metal prices efficiently. By leveraging data analytics, companies can optimize their operations, reduce costs, and enhance their competitive edge in the market.
API Description
The Metals-API is designed to empower developers with real-time and historical data on metal prices. Its innovative capabilities allow for seamless integration into various applications, enabling users to access critical information at their fingertips. The API supports multiple endpoints, each tailored to specific functionalities, making it a versatile tool for developers.
One of the standout features of the Metals-API is its ability to provide real-time exchange rate data, updated frequently based on the user's subscription plan. This ensures that developers can access the most current information, which is essential for applications that require up-to-the-minute data. Furthermore, the API's historical rates endpoint allows users to query data dating back to 2019, making it an invaluable resource for trend analysis and forecasting.
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: Depending on your subscription plan, this endpoint returns real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently. This feature is essential for applications that require immediate access to market data.
- Historical Rates Endpoint: Users can access historical rates for most metals dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, which is crucial for data analysis and market research.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users 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 users to query the API for daily historical rates between two specified dates. It is ideal for analyzing trends over time and understanding price movements.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- 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: Users can query the API to get the lowest and highest prices for a specified date, which is useful for identifying price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, allowing for detailed market analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for understanding long-term market trends.
- API Key: Each user is assigned a unique API key, which is required to access the API's functionalities. This ensures secure and authorized access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, and all data is returned in a structured JSON format, making it easy for developers to parse and utilize.
- Available Endpoints: The API provides a comprehensive list of available endpoints, each designed to offer specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns all available metal symbols, allowing developers to easily find the symbols they need for their applications.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is essential for local investors and traders.
- News Endpoint: The Metals-API also provides access to the latest news articles related to various metals, helping users stay informed about market developments.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective implementation. Here are some examples of the API responses for different endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1751299391,
"base": "USD",
"date": "2025-06-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": 1751212991,
"base": "USD",
"date": "2025-06-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": "2025-06-23",
"end_date": "2025-06-30",
"base": "USD",
"rates": {
"2025-06-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-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": 1751299391,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-23",
"end_date": "2025-06-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": 1751299391,
"base": "USD",
"date": "2025-06-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": 1751299391,
"base": "USD",
"date": "2025-06-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 transformative tool for developers looking to access and analyze historical prices for metals like Terbium (TER). By leveraging its various endpoints, developers can build applications that provide real-time insights and historical data analysis, empowering businesses to make informed decisions in a rapidly changing market. The integration of advanced technologies and data analytics in the metal markets is paving the way for future innovations, and the Metals-API is at the forefront of this transformation.
For more information on how to utilize the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals. By harnessing the power of real-time data, developers can create next-generation applications that revolutionize the way we interact with metal markets.