The Easiest Way to Get Mumbai Gold (XAU-MUMB) - Per Ounce Historical Rates via API

The Easiest Way to Get Mumbai Gold (XAU-MUMB) - Per Ounce Historical Rates via API
In today's digital age, accessing historical prices for precious metals like gold has never been easier, thanks to the innovative capabilities of APIs. One such powerful tool is the Metals-API, which provides developers with real-time and historical data on various metals, including gold (XAU). This blog post will guide you through the process of obtaining historical prices for gold in Mumbai, focusing on the XAU symbol, and will delve into the technical aspects of using the Metals-API effectively.
About Gold (XAU)
Gold has long been a symbol of wealth and a critical asset in financial markets. As a precious metal, its value is influenced by various factors, including market demand, geopolitical stability, and economic indicators. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. With the integration of technology in trading, investors can now access real-time data and make informed decisions based on comprehensive market analysis.
The Metals-API stands at the forefront of this transformation, offering developers the tools to build next-generation applications that leverage real-time metals data. By utilizing the API, developers can create innovative solutions for price discovery, digital asset management, and trading strategies that respond to market fluctuations.
API Description
The Metals-API is a robust platform that provides a wide array of functionalities for accessing metals prices. It empowers developers to retrieve real-time and historical data, enabling them to create applications that can analyze trends, forecast prices, and provide insights into market dynamics. The API supports various endpoints, each designed to cater to specific data needs, from the latest rates to historical trends.
For detailed information on how to use the API, refer to the Metals-API Documentation, which outlines the capabilities and features available to developers.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability for developers:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. Developers can easily access the most current rates for gold and other metals.
- Historical Rates Endpoint: Users can query historical rates dating back to 2019 by appending a specific date to the API request. This feature is essential for analyzing price trends over time.
- Bid and Ask Endpoint: This powerful feature allows developers to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing strategies.
- Convert Endpoint: This endpoint enables currency conversion for any amount from one metal to another or to/from USD, facilitating seamless transactions and calculations.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice, allowing for in-depth analysis of price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, which is crucial for understanding market volatility.
- Carat Endpoint: Users can retrieve gold rates by carat, which is particularly useful for jewelers and consumers interested in specific gold purity levels.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of gold over a specified period, aiding in investment decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is invaluable for comprehensive market analysis.
- API Key: Each user is provided with a unique API key that must be included in the API requests to authenticate and authorize access.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring developers have access to the latest information.
- Gold Price India Endpoint: Specifically designed to retrieve the latest gold price in India, this endpoint is crucial for local investors and traders.
- News Endpoint: Users can retrieve 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 how to interact with the Metals-API is crucial for effective implementation. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1760076060,
"base": "USD",
"date": "2025-10-10",
"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": 1759989660,
"base": "USD",
"date": "2025-10-09",
"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-03",
"end_date": "2025-10-10",
"base": "USD",
"rates": {
"2025-10-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-10": {
"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": 1760076060,
"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-03",
"end_date": "2025-10-10",
"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.
{
"success": true,
"timestamp": 1760076060,
"base": "USD",
"date": "2025-10-10",
"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": 1760076060,
"base": "USD",
"date": "2025-10-10",
"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
Accessing historical prices for gold in Mumbai (XAU-MUMB) is made simple through the Metals-API. By leveraging its various endpoints, developers can retrieve real-time and historical data, analyze market trends, and create innovative applications that cater to the needs of investors and traders. The API's comprehensive documentation and support for multiple functionalities ensure that developers can implement solutions tailored to their specific requirements.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the extensive capabilities of this powerful tool. Whether you are looking to track gold prices, analyze market fluctuations, or convert between different metals, the Metals-API is your go-to solution for all things related to precious metals.
In summary, the Metals-API not only simplifies the process of accessing precious metals data but also empowers developers to harness the potential of real-time analytics and market insights. With its user-friendly interface and extensive features, it is an invaluable resource for anyone looking to navigate the complex world of precious metals trading.