Access Ahmedabad Gold 22k (AHME-22k) Exchange Rates API Documentation in JSON Format
Access Ahmedabad Gold 22k (AHME-22k) Exchange Rates API Documentation in JSON Format
In today's rapidly evolving financial landscape, the ability to access real-time exchange rates for precious metals like gold is crucial for developers and traders alike. The Metals-API provides a robust solution for retrieving exchange rates in JSON format, empowering developers to create innovative applications that leverage real-time data. This blog post will delve into how to retrieve exchange rates for gold (XAU) using the Metals-API, including sample API responses and integration tips.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of financial markets, serving as a safe haven during economic uncertainty. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. With the integration of technology, traders can now access real-time data, enabling them to make informed decisions quickly. The innovation in price discovery through APIs like Metals-API allows developers to build next-generation applications that can analyze trends, track fluctuations, and provide valuable insights into the gold market.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical data for various metals, including gold, silver, platinum, and palladium. This API is designed to facilitate seamless integration into applications, enabling users to retrieve exchange rates, historical data, and perform conversions with ease. The transformative potential of real-time metals data is evident in its applications across trading platforms, financial analysis tools, and investment applications.
For more information, you can refer to the Metals-API Documentation, which provides comprehensive details on how to utilize the API effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to cater to specific needs in the realm of precious metals trading. 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 your plan, you can receive updates every 60 minutes or even every 10 minutes.
- Historical Rates Endpoint: Access historical exchange rates dating back to 2019. By appending a specific date to your query, you can retrieve past rates for analysis.
- Bid and Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, providing insights into market conditions.
- Convert Endpoint: Easily convert any amount from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling trend analysis over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and traders.
- Lowest/Highest Price Endpoint: Query for the lowest and highest prices over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Get OHLC data for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Your unique API key is essential for accessing the API and should be included in your requests.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data representation.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring you have the most up-to-date information.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you 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 various API endpoints along with their JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1769195245,
"base": "USD",
"date": "2026-01-23",
"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": 1769108845,
"base": "USD",
"date": "2026-01-22",
"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-01-16",
"end_date": "2026-01-23",
"base": "USD",
"rates": {
"2026-01-16": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-18": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-23": {
"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": 1769195245,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-16",
"end_date": "2026-01-23",
"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": 1769195245,
"base": "USD",
"date": "2026-01-23",
"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": 1769195245,
"base": "USD",
"date": "2026-01-23",
"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 comprehensive suite of tools for developers looking to integrate precious metals exchange rates into their applications. With features such as real-time rates, historical data, and conversion capabilities, the API empowers users to make informed decisions in the dynamic world of metals trading. By leveraging the capabilities of the Metals-API, developers can create innovative solutions that enhance trading strategies and provide valuable insights into market trends.
For more detailed information, visit the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. The Metals-API Website is also a valuable resource for understanding the full range of functionalities offered by this powerful API.