Access Zinc Ingot China Spot (ZNC-CH) API Response Format in JSON Format
Access Zinc Ingot China Spot (ZNC-CH) API Response Format in JSON Format
In the rapidly evolving landscape of metal markets, the ability to access real-time data is paramount for developers and businesses alike. The Metals-API offers a robust solution for retrieving exchange rates, particularly for Zinc (XZN) and other metals, in a convenient JSON format. This blog post delves into the capabilities of the Metals-API, focusing on how developers can leverage this tool to access Zinc ingot prices and other metal data efficiently.
About Zinc (XZN)
Zinc, represented by the symbol XZN, is a critical metal in various industries, including construction, automotive, and electronics. As the world moves towards digital transformation, the metal markets are also experiencing significant changes driven by technological innovation and advancements. The integration of smart technologies and data analytics has revolutionized how businesses operate, providing insights that were previously unattainable.
With the rise of data-driven decision-making, understanding the fluctuations in metal prices is crucial. The Metals-API empowers developers to build next-generation applications that can analyze trends, forecast prices, and optimize supply chains. By accessing real-time data, businesses can make informed decisions that enhance their operational efficiency and competitiveness.
API Description
The Metals-API is designed to provide comprehensive access to metal prices and currency conversion in a simple JSON format. This API is particularly beneficial for developers looking to integrate real-time metals data into their applications. With its innovative features, the Metals-API allows users to retrieve the latest rates, historical data, and much more.
For more information, you can visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on implementation.
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: This endpoint provides real-time exchange rate data updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes. This feature is essential 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 call, developers can retrieve past exchange rates, which is invaluable for trend analysis and forecasting.
- Bid and Ask Endpoint: This feature allows users to obtain real-time bid and ask prices for metals. Understanding the spread between these prices is crucial for traders and investors looking to make informed decisions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts between different metals or to/from USD. This is particularly useful for businesses operating in multiple currencies.
- Time-Series Endpoint: Developers can query daily historical rates between two specified dates. This endpoint is beneficial for analyzing price movements over time.
- Fluctuation Endpoint: This feature provides insights into how metal prices fluctuate on a day-to-day basis, helping users understand market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and gold traders.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API for the lowest and highest prices within a specified date range, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access detailed OHLC data for specific dates, which is crucial for technical analysis.
- Historical LME Endpoint: This endpoint provides historical rates for LME symbols dating back to 2008, allowing for extensive market analysis.
- API Key: Each user is assigned a unique API key that must be included in API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: With 14 different API endpoints, the Metals-API offers a wide range of functionalities to meet diverse user needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- Intraday Endpoint: Users can query intraday exchange rate data for a single symbol, which is essential for high-frequency trading applications.
List of Symbols
The Metals-API supports 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
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the Latest Rates Endpoint. Below is an example response:
{
"success": true,
"timestamp": 1787983645,
"base": "USD",
"date": "2026-08-29",
"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
Accessing historical exchange rates for any date since 1999 can be done through the Historical Rates Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1787897245,
"base": "USD",
"date": "2026-08-28",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
The Time-series Endpoint allows you to get exchange rates for a specific time period. Below is an example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-08-22",
"end_date": "2026-08-29",
"base": "USD",
"rates": {
"2026-08-22": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-24": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-29": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint enables you to convert any amount from one metal to another or to/from USD. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1787983645,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
With the Fluctuation Endpoint, you can track rate fluctuations between two dates. Below is an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-22",
"end_date": "2026-08-29",
"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
The OHLC Endpoint provides open, high, low, and close data for a specific time period. Here’s an example response:
{
"success": true,
"timestamp": 1787983645,
"base": "USD",
"date": "2026-08-29",
"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
The Bid/Ask Endpoint provides current bid and ask prices for metals. Below is an example response:
{
"success": true,
"timestamp": 1787983645,
"base": "USD",
"date": "2026-08-29",
"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 powerful and flexible solution for developers looking to access real-time and historical metal prices, including Zinc (XZN). With its extensive range of endpoints, the API allows for comprehensive data analysis and integration into various applications. By leveraging the capabilities of the Metals-API, businesses can enhance their decision-making processes, optimize operations, and stay ahead in the competitive metal market.
For further exploration of the API's capabilities, refer to the Metals-API Documentation and the Metals-API Supported Symbols page. Embrace the future of metal trading with the Metals-API and unlock the potential of real-time data.