Retrieve historical Mumbai Gold 22k (MUMB-22k) prices using this API

Introduction
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. The Metals-API provides a powerful solution for developers looking to retrieve historical Mumbai Gold 22k (MUMB-22k) prices and other metal data. This blog post will delve into the capabilities of the Metals-API, focusing on its innovative features, technical specifications, and how it can transform the way developers interact with precious metals data.
Understanding Gold (XAU)
Gold, represented by the symbol XAU, has long been considered a safe haven asset and a store of value. In recent years, the digital transformation in precious metals has opened new avenues for trading and investment. With the integration of data analytics and technology, traders can now access real-time insights that were previously unavailable. The Metals-API plays a pivotal role in this transformation, offering developers the tools they need to create next-generation applications that leverage real-time metals data.
Digital Transformation in Precious Metals
The precious metals market is undergoing a significant digital transformation. With the rise of fintech and digital asset solutions, traders can now access a wealth of information at their fingertips. The Metals-API allows developers to tap into this digital ecosystem, providing access to real-time and historical data that can inform trading strategies and investment decisions.
Data Analytics and Market Insights
Data analytics is at the heart of modern trading strategies. By utilizing the Metals-API, developers can analyze trends, track price movements, and gain insights into market behavior. The API's various endpoints, such as the Latest Rates Endpoint and Historical Rates Endpoint, enable users to retrieve valuable data that can be used for predictive analytics and market forecasting.
Technology Integration in Trading
Integrating technology into trading platforms is essential for staying competitive. The Metals-API provides a seamless way to incorporate precious metals data into existing applications. With endpoints like the Convert Endpoint and Time-Series Endpoint, developers can create applications that not only display current prices but also allow users to convert between different metals and analyze historical trends.
Innovation in Price Discovery
Price discovery is a critical aspect of trading, and the Metals-API enhances this process through its comprehensive data offerings. The Bid and Ask Endpoint provides real-time bid and ask prices, allowing traders to make informed decisions based on the latest market conditions. This innovation in price discovery empowers traders to react quickly to market changes, improving their overall trading performance.
Digital Asset Solutions
As the demand for digital asset solutions grows, the Metals-API positions itself as a key player in the precious metals market. By providing access to a wide range of metal symbols and real-time data, the API enables developers to create innovative applications that cater to the needs of modern investors. For a complete list of supported symbols, developers can refer to the Metals-API Supported Symbols.
API Description
The Metals-API is a comprehensive JSON API that provides access to metals prices and currency conversion. It is designed to empower developers to build applications that require real-time and historical data on precious metals. The API's capabilities include retrieving the latest rates, historical prices, bid and ask prices, and much more. By leveraging this API, developers can create applications that offer users valuable insights into the precious metals market.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to serve specific needs in the precious metals trading space:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This allows traders to stay informed about the latest market conditions.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. Developers can query the Metals-API for historical rates by appending a date to the request, enabling them to analyze past market behavior.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices, providing insights into market liquidity and helping traders make informed decisions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, which can be used to convert any amount from one currency to another, facilitating seamless transactions.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, enabling in-depth analysis of price movements over time.
- Fluctuation Endpoint: Users can retrieve information about how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: This endpoint allows users to retrieve information about gold rates by carat, making it easier for jewelers and consumers to understand pricing based on purity.
- Lowest/Highest Price Endpoint: Developers can query the API to get the lowest and highest price for a specified date, aiding in market analysis and decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, allowing traders to assess market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Each user is assigned a unique API key that is passed into the API base URL's access_key parameter, ensuring secure access to the API.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, and all data is returned in a structured JSON format.
- Available Endpoints: The API comes with multiple endpoints, each providing different functionalities to cater to various user needs.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, making it easier for local traders to stay informed.
- News Endpoint: Get the latest news articles related to various metals, keeping users updated on market developments.
API Endpoint Examples and Responses
Understanding the API's responses is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1745197385,
"base": "USD",
"date": "2025-04-21",
"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 the success of the request and provides the latest exchange rates for various metals, with values expressed per troy ounce.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1745110985,
"base": "USD",
"date": "2025-04-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical rates for a specified date, allowing developers to analyze past market conditions.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2025-04-14",
"end_date": "2025-04-21",
"base": "USD",
"rates": {
"2025-04-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-04-21": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response shows the exchange rates for a specified time period, enabling users to track price movements over time.
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": 1745197385,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates the success of the conversion request, providing the converted amount and the applicable exchange rate.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-14",
"end_date": "2025-04-21",
"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 detailed information about how rates fluctuated over the specified period, including percentage changes.
OHLC (Open/High/Low/Close) Price Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1745197385,
"base": "USD",
"date": "2025-04-21",
"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 open, high, low, and close prices for a specified date, allowing traders to assess market performance.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1745197385,
"base": "USD",
"date": "2025-04-21",
"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, along with the spread, which is crucial for traders looking to execute orders efficiently.
Conclusion
The Metals-API is a powerful tool for developers looking to access real-time and historical data on precious metals, including Mumbai Gold 22k prices. By leveraging its various endpoints, developers can create applications that provide valuable insights into market trends, facilitate trading, and enhance decision-making processes. The API's capabilities, such as the Latest Rates Endpoint, Historical Rates Endpoint, and Convert Endpoint, empower users to analyze data effectively and respond to market changes swiftly.
For more information on how to implement this API, developers can refer to the Metals-API Documentation. To explore the full range of supported symbols, visit the Metals-API Supported Symbols page. For general inquiries and access to the API, check out the Metals-API Website.
In a rapidly evolving market, having access to accurate and timely data is essential for success. The Metals-API stands out as a transformative solution that empowers developers to harness the power of precious metals data, paving the way for innovative applications and enhanced trading strategies.