Access Visakhapatnam Gold 18k (VISA-18k) Exchange Rate API Documentation in JSON Format
Access Visakhapatnam Gold 18k (VISA-18k) Exchange Rate API Documentation in JSON Format
In the ever-evolving landscape of financial technology, the ability to retrieve real-time exchange rates for precious metals such as gold is crucial for developers and businesses alike. The Metals-API provides a robust solution for accessing these rates in JSON format, enabling seamless integration into applications. This blog post will delve into how to retrieve the exchange rates for gold (XAU) using the Metals-API, including sample API responses and integration tips.
Understanding Gold (XAU)
Gold, represented by the symbol XAU, is one of the most sought-after precious metals in the world. Its value is influenced by various factors, including market demand, geopolitical stability, and economic indicators. As digital transformation reshapes the financial landscape, the integration of data analytics and market insights into trading strategies has become paramount. The Metals-API empowers developers to harness real-time data for innovative price discovery and trading solutions.
Metals-API Overview
The Metals-API is a powerful tool that provides developers with access to real-time and historical exchange rates for various metals, including gold, silver, platinum, and palladium. With a focus on technological advancement, the API allows for the creation of next-generation applications that can analyze market trends, track fluctuations, and convert currencies effortlessly. For detailed information, refer to the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers 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, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your query. This feature is invaluable for analyzing trends over time.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices, which are essential for traders looking to make informed decisions.
- Convert Endpoint: Easily convert any amount from one metal to another or to/from USD, facilitating transactions across different currencies.
- Time-Series Endpoint: Query daily historical rates between two dates, allowing for in-depth analysis of price movements.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve gold rates by carat, which is particularly useful for jewelers and manufacturers.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date range.
- Open/High/Low/Close (OHLC) Price Endpoint: Get OHLC data for a specific time period, essential for traders analyzing market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for industrial applications.
- API Key: Your unique API key is required for authentication and is passed into the API base URL's access_key parameter.
- API Response: Exchange rates are delivered relative to USD by default, ensuring consistency across responses.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals.
- 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
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the latest rates endpoint. Here’s a sample response:
{
"success": true,
"timestamp": 1769256442,
"base": "USD",
"date": "2026-01-24",
"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. Here’s an example response:
{
"success": true,
"timestamp": 1769170042,
"base": "USD",
"date": "2026-01-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
To get exchange rates for a specific time period, use the time-series endpoint. Here’s a sample response:
{
"success": true,
"timeseries": true,
"start_date": "2026-01-17",
"end_date": "2026-01-24",
"base": "USD",
"rates": {
"2026-01-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The convert endpoint allows you to convert any amount from one metal to another or to/from USD. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1769256442,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates using the fluctuation endpoint. Here’s a sample response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-17",
"end_date": "2026-01-24",
"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) Price Endpoint
Get OHLC data for a specific time period with the following response:
{
"success": true,
"timestamp": 1769256442,
"base": "USD",
"date": "2026-01-24",
"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
Retrieve current bid and ask prices for metals with this response:
{
"success": true,
"timestamp": 1769256442,
"base": "USD",
"date": "2026-01-24",
"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 is an invaluable resource for developers looking to integrate real-time and historical exchange rates for precious metals into their applications. With its comprehensive set of endpoints, including the latest rates, historical data, and conversion capabilities, the API empowers users to make informed decisions based on accurate market data. By leveraging the power of the Metals-API, developers can create innovative solutions that enhance trading strategies and provide deeper insights into market dynamics.
For further exploration, be sure to check out the Metals-API Documentation for detailed information on each endpoint, and visit the Metals-API Supported Symbols page to familiarize yourself with the available metal symbols. The Metals-API Website also offers additional resources and support for developers looking to maximize their use of this powerful API.