How to retrieve Zinc Ingot China Spot (ZNC-CH) prices using this API
Introduction
In the rapidly evolving landscape of metal markets, the ability to retrieve real-time data is crucial for developers and businesses alike. One such valuable resource is the Zinc Ingot China Spot (ZNC-CH) price, which can be accessed through the Metals-API. This API provides comprehensive data on various metals, including Zinc (XZN), enabling developers to create innovative applications that leverage real-time pricing and historical data. In this blog post, we will explore how to effectively retrieve Zinc Ingot prices using the Metals-API, while also delving into the broader implications of digital transformation in metal markets.
Metals-API Information
About Zinc (XZN)
Zinc is a vital metal in various industries, particularly in galvanization, alloys, and batteries. As the demand for Zinc continues to grow, driven by technological advancements and the push for sustainable practices, the need for accurate and timely data becomes paramount. The Metals-API stands at the forefront of this digital transformation, offering developers the tools to integrate real-time data analytics into their applications.
With the rise of smart technology integration, the Metals-API empowers users to harness data analytics and insights, allowing for informed decision-making in trading and investment strategies. The future of metal markets is undoubtedly intertwined with technological innovation, and APIs like Metals-API are paving the way for this evolution.
API Description
The Metals-API is a powerful tool that provides real-time and historical data on metal prices, including Zinc. It enables developers to build next-generation applications that can track market trends, analyze fluctuations, and convert currencies seamlessly. The API is designed with a focus on innovation, allowing for easy integration into various platforms and applications.
For more information on how to utilize the API, refer to the Metals-API Documentation, which provides detailed guidance on endpoints, parameters, and response structures.
Key Features and Endpoints
The Metals-API boasts a range of features that cater to different needs within the metal market. Here are some of the key endpoints and their functionalities:
- 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 every 10 minutes, ensuring you have the most current data available.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your query. This feature is invaluable for analyzing market trends over time.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals, allowing traders to make informed decisions based on current market conditions.
- Convert Endpoint: This endpoint allows for seamless currency conversion, enabling users to convert any amount from one metal to another or to/from USD.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, providing insights into price movements over time.
- Fluctuation Endpoint: Track how prices fluctuate on a day-to-day basis, which is crucial for understanding market volatility.
- Carat Endpoint: Retrieve information about Gold rates by Carat, which is particularly useful for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API for the lowest and highest prices within a specified timeframe, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period, which is essential for traders looking to analyze price trends.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market changes over the years.
- 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, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest information.
- Intraday Endpoint: Query intraday exchange rate data for a single symbol, which is particularly useful for day traders.
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's response structure is crucial for effective implementation. Here are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1787530081,
"base": "USD",
"date": "2026-08-24",
"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": 1787443681,
"base": "USD",
"date": "2026-08-23",
"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": "2026-08-17",
"end_date": "2026-08-24",
"base": "USD",
"rates": {
"2026-08-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-24": {
"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": 1787530081,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-17",
"end_date": "2026-08-24",
"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": 1787530081,
"base": "USD",
"date": "2026-08-24",
"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": 1787530081,
"base": "USD",
"date": "2026-08-24",
"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 provides a robust solution for developers seeking to access real-time and historical data on metal prices, including Zinc Ingot China Spot (ZNC-CH). By leveraging the various endpoints offered by the API, developers can create applications that not only track market trends but also provide valuable insights into price fluctuations and historical data analysis.
As the metal markets continue to evolve, the integration of smart technology and data analytics will play a crucial role in shaping the future of trading and investment strategies. The Metals-API stands as a testament to this transformation, offering a comprehensive suite of tools that empower developers to innovate and excel in the ever-changing landscape of metal markets.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation and usage.