Query Graphite Africa (AF-GR) Historical Prices with this API

Query Graphite Africa (AF-GR) Historical Prices with this API
In the ever-evolving landscape of metal markets, the ability to access and analyze historical prices is crucial for developers and businesses alike. This is where the Metals-API comes into play, providing a robust platform for querying historical prices of various metals, including Tellurium (TE). This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices effectively while exploring the broader implications of digital transformation in the metal markets.
About Tellurium (TE)
Tellurium, represented by the symbol TE, is a metalloid that plays a significant role in various technological applications, particularly in the fields of electronics and renewable energy. As the demand for advanced materials grows, understanding the historical price trends of Tellurium becomes essential for stakeholders in the metal markets. The integration of smart technology and data analytics into the metal industry is transforming how we approach pricing, trading, and investment strategies.
Digital transformation in metal markets is not just about adopting new technologies; it’s about leveraging data to gain insights that drive decision-making. The Metals-API exemplifies this shift by providing real-time and historical data that empowers developers to create innovative applications. By utilizing the API, developers can access a wealth of information that can be used to analyze market trends, forecast future prices, and make informed trading decisions.
API Description
The Metals-API is designed to provide developers with seamless access to metal prices and currency conversion data. With its user-friendly interface and comprehensive documentation, the API enables users to build next-generation applications that require real-time and historical metal pricing data. The API's capabilities extend beyond mere price retrieval; it offers a suite of features that can be integrated into various applications, from trading platforms to analytical tools.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated frequently based on the user's subscription plan. This ensures that developers have access to the most current information, allowing for timely decision-making in fast-paced market environments. Furthermore, the API supports a wide range of endpoints, each tailored to specific needs, such as retrieving historical rates, converting currencies, and analyzing price fluctuations.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different requirements. Here’s a closer look at some of the most important features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. This is crucial for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019 by appending a specific date to the API request. This feature is invaluable for analyzing trends over time and making informed predictions based on past performance.
- 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 conversion endpoint enables users to convert any amount from one metal to another or to/from USD. This is particularly useful for traders who operate in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easy to analyze price movements over specific periods.
- 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 endpoint provides information about gold rates by carat, which is essential for jewelers and traders dealing in precious metals.
- 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 those involved in trading on the London Metal Exchange.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API provides a comprehensive list of endpoints, each designed to fulfill specific data retrieval needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available metal symbols, ensuring users have access to the latest information.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for traders in the Indian market.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to price movements and market trends.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is essential for developers looking to integrate its capabilities into their applications. Below are examples of how to use various endpoints, along with detailed explanations of the responses.
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the Latest Rates Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1751076143,
"base": "USD",
"date": "2025-06-28",
"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"
}
This response indicates that the request was successful, providing the current exchange rates for various metals relative to USD. The "rates" object contains the exchange rates for each metal symbol, allowing developers to easily access the information they need.
Historical Rates Endpoint
Accessing historical exchange rates is straightforward with the Historical Rates Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1750989743,
"base": "USD",
"date": "2025-06-27",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical rates for a specific date, allowing users to analyze past performance and trends. The "date" field specifies the date for which the rates are provided, while the "rates" object contains the exchange rates for each metal symbol.
Time-Series Endpoint
The Time-Series Endpoint allows users to retrieve exchange rates for a specific time period. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2025-06-21",
"end_date": "2025-06-28",
"base": "USD",
"rates": {
"2025-06-21": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-23": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-28": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of exchange rates between two specified dates, allowing developers to analyze trends over time. Each date in the "rates" object corresponds to the exchange rates for that specific day.
Convert Endpoint
The Convert Endpoint is particularly useful for converting amounts between different metals or to/from USD. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1751076143,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates that the conversion was successful, providing the converted amount in troy ounces. The "query" object shows the original amount and the currencies involved, while the "result" field contains the converted value.
Fluctuation Endpoint
The Fluctuation Endpoint allows users to track rate fluctuations between two dates. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-21",
"end_date": "2025-06-28",
"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"
}
This response provides detailed information about how metal prices fluctuated over the specified period. The "rates" object contains the start and end rates, as well as the absolute change and percentage change for each metal.
OHLC (Open/High/Low/Close) Price Endpoint
The OHLC Price Endpoint provides open, high, low, and close prices for a specific date. Here’s an example response:
{
"success": true,
"timestamp": 1751076143,
"base": "USD",
"date": "2025-06-28",
"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"
}
This response provides a comprehensive view of the price movements for each metal throughout the day, allowing for detailed analysis of market behavior.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals. Here’s an example response:
{
"success": true,
"timestamp": 1751076143,
"base": "USD",
"date": "2025-06-28",
"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"
}
This response provides the current bid and ask prices for each metal, along with the spread, which is essential for traders looking to execute buy and sell orders efficiently.
Conclusion
The Metals-API is a powerful tool for developers looking to access historical prices and real-time data for various metals, including Tellurium (TE). By leveraging the API's extensive features, developers can create innovative applications that provide valuable insights into market trends and pricing dynamics. The ability to query historical rates, track fluctuations, and convert between currencies opens up a world of possibilities for data-driven decision-making.
As the metal markets continue to evolve, the integration of smart technology and data analytics will play a pivotal role in shaping the future of trading and investment strategies. The Metals-API stands at the forefront of this transformation, empowering developers to harness the power of real-time data and build next-generation applications.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation for detailed guidance on implementation and usage. To explore the full range of supported symbols, check out the Metals-API Supported Symbols page. Embrace the future of metal trading with the Metals-API and unlock the potential of historical price data.