Fetch Bismuth (BMTH) Historical Prices using the API Documentation

Introduction
In the rapidly evolving landscape of digital finance, the demand for accurate and real-time data has never been more critical. This is especially true in the metals market, where fluctuations can significantly impact investment strategies and market dynamics. One of the most intriguing metals in this domain is Bismuth (BMTH), a lesser-known yet fascinating element that has garnered attention for its unique properties and applications. In this blog post, we will explore how to fetch historical prices for Bismuth using the Metals-API, a powerful tool that provides developers with the ability to access real-time and historical metals data.
Metals-API Information
About Bismuth (BMTH)
Bismuth is a post-transition metal known for its low toxicity and high density. It has become increasingly relevant in various industries, including pharmaceuticals, cosmetics, and electronics. As the world moves towards digital transformation, the integration of technology in metal markets is becoming more pronounced. The Metals-API serves as a bridge between traditional metal trading and modern technological advancements, enabling developers to harness data analytics and insights for smarter decision-making.
Technological innovation in the metals market is paving the way for enhanced transparency and efficiency. With the rise of smart technology integration, stakeholders can now access real-time data, analyze trends, and make informed decisions based on comprehensive insights. The future of metal trading, particularly for Bismuth, is poised for transformation as data-driven strategies become the norm.
API Description
The Metals-API is designed to empower developers by providing a robust platform for accessing metals data. This API allows users to build next-generation applications that can leverage real-time and historical data for various use cases, from investment analysis to market forecasting. The API's capabilities extend beyond mere data retrieval; it offers a suite of features that can transform how businesses operate within the metals market.
With the Metals-API, developers can access a wide range of endpoints that cater to different needs. Whether you are looking for the latest rates, historical prices, or even specific data points like bid and ask prices, the API has you covered. The ability to integrate these features into applications opens up numerous possibilities for innovation and efficiency in the metals trading space.
Key Features and Endpoints
The Metals-API offers several key features that are essential for developers looking to access and utilize metals data effectively. Below are some of the most significant endpoints and their potential applications:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes, ensuring that you have the most current information at your fingertips.
- Historical Rates Endpoint: Access historical rates for most metals dating back to 2019. By appending a specific date to your request, you can retrieve past prices, which is invaluable for trend analysis and forecasting.
- 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: Easily convert amounts between different metals or to/from USD. This endpoint simplifies transactions and calculations, making it easier for developers to integrate currency conversion into their applications.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This feature is particularly useful for analyzing trends over specific periods.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis. This endpoint provides insights into market volatility, helping traders make informed decisions.
- Carat Endpoint: Retrieve information about gold rates by carat. This feature is essential for businesses dealing in jewelry and precious metals.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specific metal over a defined period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Your unique API key is essential for accessing the API and must be included in your requests.
- 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 provides a constantly updated list of available endpoints, ensuring that developers have access to the latest features.
- Supported Symbols Endpoint: This endpoint returns all available metal symbols, allowing developers to easily identify which metals they can work with.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for regional traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context and insights into market movements.
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.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective implementation. 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": 1752382818,
"base": "USD",
"date": "2025-07-13",
"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": 1752296418,
"base": "USD",
"date": "2025-07-12",
"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-07-06",
"end_date": "2025-07-13",
"base": "USD",
"rates": {
"2025-07-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-13": {
"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": 1752382818,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-06",
"end_date": "2025-07-13",
"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": 1752382818,
"base": "USD",
"date": "2025-07-13",
"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": 1752382818,
"base": "USD",
"date": "2025-07-13",
"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, the Metals-API provides a comprehensive and powerful tool for developers looking to access historical prices and real-time data for metals like Bismuth (BMTH). By leveraging the various endpoints offered by the API, developers can create applications that not only track market trends but also provide valuable insights for decision-making. The integration of smart technology and data analytics into the metals market is transforming how stakeholders interact with this vital sector.
As we look to the future, the potential for innovation in the metals market is vast. The ability to access accurate and timely data will continue to shape investment strategies and market dynamics. For those interested in exploring the capabilities of the Metals-API further, I encourage you to visit the Metals-API Documentation for detailed information on how to implement these features in your applications. Additionally, the Metals-API Supported Symbols page provides a complete list of available metals, ensuring you have all the resources needed to succeed in this exciting field.