Get Chandigarh Gold 24k (CHAN-24k) pricing data in JSON format using this API

Introduction
In the ever-evolving landscape of financial technology, the demand for real-time data on precious metals has surged. One such valuable asset is Gold, represented by the symbol XAU. For developers and traders alike, accessing accurate and timely pricing data is crucial for making informed decisions. This is where the Metals-API comes into play, providing a robust solution for retrieving gold pricing data in JSON format. In this blog post, we will delve into the capabilities of the Metals-API, explore the significance of gold in the market, and discuss how developers can leverage this API to enhance their applications.
Metals-API Information
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially during times of economic uncertainty. Its intrinsic value and historical significance make it a preferred choice for investors looking to hedge against inflation and currency fluctuations. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. By integrating technology into trading practices, market participants can gain a competitive edge through innovation in price discovery and digital asset solutions.
The Metals-API provides developers with the tools necessary to access real-time and historical data on gold prices, enabling them to build next-generation applications that can analyze trends, forecast prices, and provide actionable insights. With the ability to retrieve data in JSON format, developers can seamlessly integrate this information into their platforms, enhancing user experience and decision-making processes.
API Description
The Metals-API Website offers a comprehensive suite of features designed to empower developers in their quest for accurate metals pricing data. This API is not just a data source; it represents a transformative potential for real-time metals data, allowing for innovative applications in various sectors, including finance, e-commerce, and investment analysis.
With the Metals-API, developers can access a range of endpoints that cater to different needs, from retrieving the latest rates to historical data analysis. The API's capabilities extend beyond mere data retrieval; it allows for advanced analytics, enabling users to track fluctuations, convert currencies, and analyze trends over time.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each serving a unique purpose. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This ensures that users have access to the most current pricing information.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date, developers can query the API for past rates, allowing for in-depth analysis of market trends.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for various metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert any amount from one metal to another or to/from USD. This is particularly useful for traders operating in multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, facilitating trend analysis and forecasting.
- Fluctuation Endpoint: This endpoint provides information about how currencies 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 consumers looking to buy or sell gold jewelry.
- Lowest/Highest Price Endpoint: This feature allows users to query the API to get the lowest and highest price for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can obtain OHLC data for a specific time period, which is critical for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering insights into long-term market trends.
- API Key: The API Key is a unique identifier that must be included in requests to authenticate and authorize access to the API.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API features 14 endpoints, each providing distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest symbols.
- Gold Price India Endpoint: This dedicated endpoint allows users to retrieve the latest gold price in India, catering to a specific market segment.
- News Endpoint: Users can access the latest news articles related to various metals, keeping them informed about market developments.
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 structure of API responses is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1760583638,
"base": "USD",
"date": "2025-10-16",
"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": 1760497238,
"base": "USD",
"date": "2025-10-15",
"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": "2025-10-09",
"end_date": "2025-10-16",
"base": "USD",
"rates": {
"2025-10-09": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-11": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-16": {
"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": 1760583638,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-09",
"end_date": "2025-10-16",
"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": 1760583638,
"base": "USD",
"date": "2025-10-16",
"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": 1760583638,
"base": "USD",
"date": "2025-10-16",
"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 stands as a powerful tool for developers seeking to integrate real-time gold pricing data into their applications. By leveraging the various endpoints offered by the API, users can access a wealth of information that can drive informed decision-making in the precious metals market. From retrieving the latest rates to analyzing historical data and tracking fluctuations, the API provides a comprehensive suite of features that cater to diverse needs.
As the digital transformation in precious metals continues to unfold, the importance of accurate and timely data cannot be overstated. Developers can harness the capabilities of the Metals-API to create innovative applications that enhance user experience and provide valuable insights into market trends. For more information on how to get started, visit the Metals-API Documentation and explore the possibilities that await.