Get Ahmedabad Gold (XAU-AHME) - Per Ounce Historical Prices in JSON format using this API

Get Ahmedabad Gold (XAU-AHME) - Per Ounce Historical Prices in JSON Format Using This API
In the ever-evolving landscape of precious metals trading, the need for accurate, real-time data has never been more critical. For developers and traders alike, accessing historical prices for gold, particularly in the Ahmedabad market, can provide invaluable insights into market trends and investment strategies. The Metals-API offers a robust solution for retrieving historical prices of gold (XAU) and other metals in JSON format, enabling developers to integrate this data into their applications seamlessly.
About Gold (XAU)
Gold, represented by the symbol XAU, is not just a commodity; it is a digital asset that has undergone a significant transformation in recent years. The digital transformation in precious metals has opened new avenues for trading and investment, allowing for greater accessibility and efficiency. With the rise of data analytics, traders can now leverage market insights to make informed decisions. The integration of technology in trading has led to innovative solutions for price discovery, enabling users to track fluctuations and trends in real-time.
As a developer, understanding how to access and utilize the historical prices of gold can empower you to build next-generation applications that cater to the needs of traders and investors. The Metals-API provides a comprehensive suite of endpoints that allow you to retrieve the latest rates, historical data, and much more, all while ensuring that you have the most accurate and up-to-date information at your fingertips.
API Description
The Metals-API is designed to provide developers with a powerful tool for accessing metals data. With its innovative capabilities, the API allows you to build applications that can track real-time prices, analyze historical trends, and convert between different metals and currencies. The transformative potential of real-time metals data cannot be overstated, as it empowers developers to create solutions that enhance trading strategies and investment decisions.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to serve specific needs within the realm of metals trading. Below are some of the key features and their applications:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data for gold and other metals, updated every 60 minutes or more frequently. This feature is essential for traders who need the latest market information to make timely decisions.
- Historical Rates Endpoint: Access historical rates for gold dating back to 2019. By appending a specific date to your query, you can retrieve past prices, allowing for comprehensive analysis of market trends over time.
- Bid and Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for gold and other metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion endpoint allows you to convert any amount from one metal to another or to/from USD, making it easier to manage transactions across different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling you to analyze trends over specific periods.
- Fluctuation Endpoint: Track how gold prices fluctuate on a day-to-day basis, providing insights into market volatility and helping traders make informed decisions.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful 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 gold over a specified period, helping traders identify potential entry and exit points.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed price data, including open, high, low, and close prices for gold, allowing for in-depth technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is valuable for those interested in industrial metals.
- API Key: Your unique API key is essential for accessing the Metals-API. It must be included in your requests to authenticate your access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency and ease of use for developers.
- Available Endpoints: The Metals-API comes with a comprehensive list of endpoints, each providing different functionalities tailored to various trading needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals, ensuring you have the most up-to-date information on what you can query.
- Gold Price India Endpoint: Specifically designed to retrieve the latest gold price in India, this endpoint is crucial for traders operating in the Indian market.
- News Endpoint: Stay informed with the latest news articles related to various metals, helping you keep abreast of market developments.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Below are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1751616090,
"base": "USD",
"date": "2025-07-04",
"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"
}
This response indicates a successful query, providing the latest exchange rates for various metals, including gold (XAU).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1751529690,
"base": "USD",
"date": "2025-07-03",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for a specific date, allowing traders to analyze past performance.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-06-27",
"end_date": "2025-07-04",
"base": "USD",
"rates": {
"2025-06-27": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-29": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-04": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time-series analysis of gold prices over a specified period, enabling developers to visualize trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1751616090,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert a specified amount from one currency to another, providing the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-27",
"end_date": "2025-07-04",
"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"
}
This endpoint tracks the fluctuations in gold prices over a specified period, providing valuable insights into market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1751616090,
"base": "USD",
"date": "2025-07-04",
"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"
}
This response provides detailed price data for gold, allowing traders to conduct technical analysis based on open, high, low, and close prices.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1751616090,
"base": "USD",
"date": "2025-07-04",
"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"
}
This endpoint provides current bid and ask prices for gold, which is essential for traders looking to execute buy or sell orders efficiently.
Conclusion
In conclusion, the Metals-API offers a comprehensive and innovative solution for accessing historical prices of gold (XAU) and other metals. By leveraging the various endpoints available, developers can create powerful applications that provide real-time data, historical insights, and conversion capabilities. The API's ability to deliver accurate and timely information is crucial for traders and investors looking to navigate the complexities of the metals market.
For developers interested in integrating this powerful API into their applications, it is essential to familiarize themselves with the Metals-API Documentation and explore the Metals-API Supported Symbols to understand the full range of capabilities available. By harnessing the power of real-time metals data, you can build next-generation applications that enhance trading strategies and investment decisions.