Access Gurgaon Gold 18k (GURG-18k) Historical Prices through this API
Access Gurgaon Gold 18k (GURG-18k) Historical Prices through this API
In the ever-evolving landscape of precious metals trading, gold (XAU) stands out as a timeless asset. With the rise of digital transformation in the financial sector, accessing historical prices and real-time data has become crucial for developers and traders alike. The Metals-API provides a robust solution for obtaining historical prices of gold and other metals, enabling developers to create innovative applications that leverage real-time market insights. This blog post will delve into the capabilities of the Metals-API, focusing on how to access historical prices for gold and explore the transformative potential of real-time metals data.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, particularly in times of economic uncertainty. Its intrinsic value and universal acceptance make it a preferred choice for investors. The digital transformation in precious metals trading has opened up new avenues for data analytics and market insights. By integrating technology into trading practices, developers can harness the power of data to make informed decisions.
With the Metals-API, developers can access a wealth of information about gold prices, including historical data, real-time rates, and market fluctuations. This API empowers users to build next-generation applications that can analyze trends, forecast prices, and provide valuable insights into the gold market.
API Description
The Metals-API is designed to provide developers with comprehensive access to metals pricing data. It offers a wide range of functionalities, allowing users to retrieve real-time and historical data for various metals, including gold, silver, platinum, and palladium. The API's capabilities are particularly beneficial for those looking to integrate metals data into their applications, enabling them to stay ahead in the competitive trading environment.
For more detailed information, you can refer to the Metals-API Documentation. This resource provides extensive guidance on how to utilize the API effectively, including examples and best practices.
Key Features and Endpoints
The Metals-API boasts 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 for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes, ensuring that you have the most current information at your fingertips.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices for gold and other metals, allowing for in-depth analysis and trend identification.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, providing insights into market dynamics and helping traders make informed decisions.
- Convert Endpoint: The Metals-API includes a currency conversion feature, allowing users to convert amounts between different metals or to/from USD. This is particularly useful for traders who operate in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, catering to those interested in specific gold purity levels.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices of metals over a specified period, facilitating better trading strategies.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific date, providing a comprehensive view of market performance.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends in the metals market.
- API Key: Each user is assigned a unique API key, which is required to access the API's functionalities. This key ensures secure access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The API features 14 different endpoints, each providing unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metals, ensuring users have access to the latest information.
- Intraday Endpoint: This feature allows users to query intraday exchange rate data for a single symbol, providing insights into short-term price movements.
For a complete list of supported symbols, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various API endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1787271214,
"base": "USD",
"date": "2026-08-21",
"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": 1787184814,
"base": "USD",
"date": "2026-08-20",
"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-14",
"end_date": "2026-08-21",
"base": "USD",
"rates": {
"2026-08-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-21": {
"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": 1787271214,
"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-14",
"end_date": "2026-08-21",
"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": 1787271214,
"base": "USD",
"date": "2026-08-21",
"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": 1787271214,
"base": "USD",
"date": "2026-08-21",
"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
In conclusion, the Metals-API offers a powerful suite of tools for developers looking to access historical prices and real-time data for gold and other metals. By leveraging the API's extensive features, developers can create innovative applications that provide valuable insights into the metals market. Whether you are interested in tracking price fluctuations, converting currencies, or analyzing historical trends, the Metals-API has the capabilities to meet your needs.
For more information on how to get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance. Additionally, check the Metals-API Supported Symbols page to familiarize yourself with the available metals and currencies.
By understanding the capabilities of the Metals-API and implementing its features effectively, developers can unlock the full potential of precious metals trading in the digital age.