Access Graphite Africa (AF-GR) Historical Prices using this API

Access Graphite Africa (AF-GR) Historical Prices using this API
In today's fast-paced digital landscape, the demand for real-time data is paramount, especially in the metals market. One of the most sought-after metals is Tellurium (TE), which has gained significant attention due to its unique properties and applications in various industries. This blog post will delve into how to access historical prices for Tellurium using the Metals-API, a powerful tool that provides developers with the ability to integrate real-time and historical metals data into their applications.
Metals-API Information
The Metals-API is a comprehensive solution designed for developers looking to access up-to-date information on metal prices, including Tellurium. With its robust features, the API empowers users to build next-generation applications that can analyze market trends, perform data analytics, and provide insights into the fluctuating prices of metals. The API is designed with a focus on technological innovation and advancement, making it a vital resource for those in the metals industry.
About Tellurium (TE)
Tellurium is a metalloid that is primarily used in the production of alloys and in the manufacturing of solar panels. As the world moves towards digital transformation, the demand for Tellurium is expected to rise, driven by technological innovations in renewable energy and electronics. The integration of smart technology in metal markets is revolutionizing how data is collected, analyzed, and utilized. With the Metals-API, developers can harness the power of data analytics to gain insights into Tellurium's market dynamics.
As we look to the future, the possibilities for Tellurium are vast. With advancements in technology, we can expect more efficient methods of extraction and processing, leading to a more sustainable approach to metal production. The Metals-API plays a crucial role in this transformation by providing real-time data that can inform decision-making and strategy development in the metals market.
API Description
The Metals-API is designed to provide developers with a seamless experience when accessing metals data. It offers a variety of endpoints that cater to different needs, from retrieving the latest rates to accessing historical data. This API is not just a tool; it is a gateway to understanding the complexities of the metals market.
For more information, you can visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on how to implement the API in your projects.
Key Features and Endpoints
The Metals-API boasts a range of features that make it a powerful resource for developers. Below are some of the key endpoints and their functionalities:
- 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 your subscription plan. This feature is essential for developers looking to integrate live pricing into their applications.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a date to your query, you can retrieve past prices for Tellurium, allowing for in-depth analysis of market trends over time.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing strategies.
- Convert Endpoint: The Metals-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: Query the API for daily historical rates between two dates of your choice. This endpoint is invaluable for developers looking to analyze price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how metal prices fluctuate on a day-to-day basis. This feature can help developers understand volatility and make informed decisions based on historical data.
- Carat Endpoint: This endpoint provides information about gold rates by carat, which can be useful for applications focused on jewelry and precious metals.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, allowing for a comprehensive understanding of market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, which is essential for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Your unique API key is required for authentication and must be included in your requests to access the data.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in the data provided.
- Available Endpoints: The Metals-API offers a wide range of endpoints, each designed to fulfill specific data needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring that developers have access to the most up-to-date information.
- Gold Price India Endpoint: Retrieve the latest gold price in India using the dedicated endpoint, which can be beneficial for regional applications.
- News Endpoint: Stay informed with the latest news articles related to various metals, helping developers keep their applications relevant and up-to-date.
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 understand the various metals available for querying.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective implementation. Below are examples of various API endpoints, showcasing their functionality and the structure of the responses you can expect.
Latest Rates Endpoint
{
"success": true,
"timestamp": 1746756038,
"base": "USD",
"date": "2025-05-09",
"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"
}
The response includes a success flag, a timestamp, the base currency, the date of the rates, and a list of rates for various metals. This information is essential for applications that require real-time pricing data.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1746669638,
"base": "USD",
"date": "2025-05-08",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint allows you to access historical exchange rates for any date since 1999. The response structure is similar to the latest rates, providing a consistent experience for developers.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-02",
"end_date": "2025-05-09",
"base": "USD",
"rates": {
"2025-05-02": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-04": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-09": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint is particularly useful for developers looking to analyze trends over specific periods. The response includes rates for each day within the specified range.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1746756038,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint allows for the conversion of amounts between different metals or to/from USD. The response includes the original query, the conversion rate, and the result, making it easy for developers to implement currency conversion features.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-02",
"end_date": "2025-05-09",
"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"
}
The fluctuation endpoint provides insights into how metal prices change over time, which is crucial for understanding market volatility. The response includes the start and end rates, along with the change and percentage change.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1746756038,
"base": "USD",
"date": "2025-05-09",
"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 endpoint is essential for traders and analysts who require detailed price information for specific time periods. The response includes open, high, low, and close prices, which are critical for technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1746756038,
"base": "USD",
"date": "2025-05-09",
"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"
}
The bid/ask endpoint provides current bid and ask prices, which are crucial for understanding market dynamics and making informed trading decisions.
Conclusion
Accessing historical prices for Tellurium and other metals has never been easier, thanks to the Metals-API. This powerful tool not only provides real-time data but also offers a wealth of historical information that can be leveraged for analysis and decision-making. With its extensive range of endpoints, developers can create applications that provide valuable insights into the metals market.
As we continue to embrace digital transformation in the metals industry, the importance of data analytics and smart technology integration cannot be overstated. The Metals-API stands at the forefront of this revolution, enabling developers to build innovative solutions that meet the evolving needs of the market.
For those interested in exploring the capabilities of the Metals-API further, I encourage you to visit the Metals-API Documentation for detailed guidance on implementation and usage. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metals, ensuring you have access to the data you need.
In conclusion, the Metals-API is an invaluable resource for developers looking to harness the power of real-time and historical metals data. By integrating this API into your applications, you can stay ahead of the curve in the ever-evolving metals market.