The Easiest Way to Get Mumbai Gold (XAU-MUMB) - Per Ounce Historical Rates through Web Scraping
The Easiest Way to Get Mumbai Gold (XAU-MUMB) - Per Ounce Historical Rates through Web Scraping
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. One of the most effective ways to obtain historical prices for gold, specifically the Mumbai Gold (XAU-MUMB), is through the Metals-API. This powerful API provides developers with the tools necessary to access real-time and historical data, enabling them to build innovative applications that can analyze market trends, track price fluctuations, and enhance trading strategies. In this blog post, we will explore how to retrieve historical prices using the Metals-API, including example endpoints, parameters, and data formats.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been regarded as a safe-haven asset and a store of value. In recent years, the digital transformation in precious metals has revolutionized how investors and traders interact with this valuable commodity. With the integration of data analytics and market insights, traders can now leverage technology to make more informed decisions. The Metals-API plays a pivotal role in this transformation by providing real-time data that empowers developers to create next-generation applications.
As the market for gold continues to evolve, the importance of technology integration in trading becomes increasingly evident. Innovations in price discovery and digital asset solutions are reshaping the landscape, allowing for more efficient trading and investment strategies. By utilizing the Metals-API, developers can harness the power of real-time metals data to enhance their applications and provide users with valuable insights.
API Description
The Metals-API is a comprehensive solution for accessing metals prices and currency conversion data. It offers a wide range of features that cater to the needs of developers looking to build applications that require accurate and timely information. The API provides endpoints for retrieving the latest rates, historical rates, bid and ask prices, and much more. With its user-friendly documentation, developers can easily navigate the API and implement it into their projects.
For more information, you can visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on how to use the API effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to provide specific functionalities that can be leveraged in different scenarios. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, updated every 60 minutes or more frequently depending on your subscription plan. This is essential for traders looking to make quick decisions based on the latest market conditions.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your request. This feature is invaluable for analyzing past trends and making predictions about future movements.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals, allowing traders to understand the market depth and make informed trading decisions.
- Convert Endpoint: This endpoint allows for currency conversion between different metals and USD, making it easy to calculate the value of your holdings in various currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling detailed analysis of price movements over time.
- Fluctuation Endpoint: Track how metals fluctuate on a day-to-day basis, providing insights into market volatility and helping traders adjust their strategies accordingly.
- 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 a specific date, which can be crucial for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access OHLC data for a specific time period, allowing traders to analyze price action and make informed decisions.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a broader context for market analysis.
- API Key: Your unique API key is required for authentication and is passed into the API base URL's access_key parameter.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 endpoints, each offering different functionalities to cater to various needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring that developers have access to 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
To illustrate how to use the Metals-API effectively, let's explore some example endpoints and their corresponding JSON responses.
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1770181656,
"base": "USD",
"date": "2026-02-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"
}
The response indicates that the request was successful and provides the latest rates for various metals, including gold (XAU).
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1770095256,
"base": "USD",
"date": "2026-02-03",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical rates for gold and other metals on a specific date, allowing for analysis of past price movements.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-01-28",
"end_date": "2026-02-04",
"base": "USD",
"rates": {
"2026-01-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-30": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-04": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates for gold over a specified period, enabling detailed analysis of price trends.
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": 1770181656,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion of a specified amount from USD to gold, providing the equivalent in troy ounces.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-28",
"end_date": "2026-02-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 response provides insights into how gold and other metals fluctuated over a specified period, which is essential for understanding market dynamics.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1770181656,
"base": "USD",
"date": "2026-02-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 the open, high, low, and close prices for gold and other metals, which is crucial for technical analysis.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1770181656,
"base": "USD",
"date": "2026-02-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 response provides the current bid and ask prices for gold and other metals, which is essential for traders looking to enter or exit positions.
Conclusion
In conclusion, the Metals-API offers a robust and versatile solution for accessing historical prices and real-time data for gold and other precious metals. By leveraging the various endpoints available, developers can create applications that provide valuable insights into market trends, price fluctuations, and trading strategies. The ability to access historical rates, bid and ask prices, and conversion data empowers traders to make informed decisions based on accurate information.
As the digital transformation in precious metals continues to evolve, the importance of integrating technology into trading strategies cannot be overstated. The Metals-API stands at the forefront of this transformation, providing developers with the tools they need to build innovative applications that enhance the trading experience.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the various features and capabilities available. With the right tools and insights, you can navigate the world of precious metals trading with confidence.