Access Kanpur Gold 22k (KANP-22k) price data with this API

Access Kanpur Gold 22k (KANP-22k) Price Data with This API
Metals-API provides developers with the tools necessary to access comprehensive price data for various metals, including gold, silver, platinum, and palladium. In this blog post, we will delve into the capabilities of the Metals-API, focusing on how it can be utilized to access the Kanpur Gold 22k (KANP-22k) price data, along with insights into the markets and the technology that drives this innovative API.
About Gold (XAU)
XAU, has long been a symbol of wealth and stability. In recent years, the digital transformation in precious metals has led to significant advancements in how gold is traded and valued. With the integration of data analytics and technology, traders can now access market insights that were previously unavailable. This transformation has paved the way for innovative price discovery mechanisms, allowing for more accurate valuations and trading strategies.
API Description
Metals-API is a powerful tool that provides real-time metals data, empowering developers to build next-generation applications. With its robust capabilities, the API allows users to access a wide range of features, including real-time exchange rates, historical data, and conversion functionalities. The API's design focuses on innovation and technological advancement, making it an essential resource for anyone involved in the trading of precious metals.
Metals-API Documentation, which provides comprehensive guidance on utilizing the API's features effectively.
Key Features and Endpoints
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data for metals, updated every 60 minutes or more frequently. This feature is essential for traders who need to make quick decisions based on the latest market conditions.
- Historical Rates Endpoint: Access historical rates dating back to 2019. This endpoint allows users to query past prices by appending a specific date, enabling analysis of market trends over time.
- Bid And Ask Endpoint: This feature retrieves real-time bid and ask prices for metals, providing traders with crucial information for executing trades at optimal prices.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert amounts between different metals or to/from USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two specified dates, facilitating trend analysis and forecasting.
- Fluctuation Endpoint: This endpoint provides information on how metal prices fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Retrieve gold rates by carat, which is essential for jewelers and consumers looking to understand the value of gold jewelry.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, aiding in market analysis and decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for those 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 features numerous endpoints, each designed to provide specific functionalities tailored to user 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 local traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context and insights into market movements.
List of Symbols
Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Latest Rates Endpoint
{
"success": true,
"timestamp": 1745715996,
"base": "USD",
"date": "2025-04-27",
"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
{
"success": true,
"timestamp": 1745629596,
"base": "USD",
"date": "2025-04-26",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-04-20",
"end_date": "2025-04-27",
"base": "USD",
"rates": {
"2025-04-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-04-27": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1745715996,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-20",
"end_date": "2025-04-27",
"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
{
"success": true,
"timestamp": 1745715996,
"base": "USD",
"date": "2025-04-27",
"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
{
"success": true,
"timestamp": 1745715996,
"base": "USD",
"date": "2025-04-27",
"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
Metals-API offers a comprehensive suite of tools for accessing real-time and historical data on precious metals, including Kanpur Gold 22k (KANP-22k). With its innovative features and endpoints, developers can build robust applications that leverage this data for trading, analysis, and decision-making. The API's capabilities, such as real-time rates, historical data, and conversion functionalities, empower traders to navigate the complexities of the precious metals market effectively.
Metals-API Documentation. To access a complete list of supported symbols, check out the Metals-API Supported Symbols page. The Metals-API Website serves as a valuable resource for developers looking to enhance their applications with real-time metals data.