Get Mysore Gold 22k (MYSO-22k) Historical Prices in JSON Format using this API

Introduction
In the world of precious metals trading, obtaining accurate and timely data is crucial for making informed decisions. One of the most sought-after metals is gold, represented by the symbol XAU. For developers and traders looking to access historical prices of Mysore Gold 22k (MYSO-22k), the Metals-API provides a robust solution. This API offers a comprehensive suite of features that allow users to retrieve historical prices, real-time rates, and much more, all in a convenient JSON format.
About Gold (XAU)
Gold has been a symbol of wealth and prosperity for centuries. With the digital transformation in the precious metals market, the way we trade and analyze gold has evolved significantly. The integration of data analytics and technology has revolutionized how traders access market insights, enabling them to make more informed decisions. The Metals-API stands at the forefront of this transformation, providing developers with the tools needed to harness the power of real-time metals data.
Digital Transformation in Precious Metals
The digital transformation of the precious metals market has led to the emergence of innovative trading platforms and data analytics tools. With the Metals-API, developers can create applications that leverage real-time data to provide users with up-to-date information on gold prices. This innovation not only enhances the trading experience but also empowers users to make data-driven decisions.
Data Analytics and Market Insights
Data analytics plays a pivotal role in understanding market trends and price movements. By utilizing the Metals-API, developers can access historical data that dates back to 2019, allowing them to analyze trends over time. This capability is essential for traders looking to identify patterns and make predictions about future price movements.
Technology Integration in Trading
Integrating technology into trading processes has become a necessity in today's fast-paced market. The Metals-API provides various endpoints that allow developers to access real-time rates, historical data, and even bid and ask prices. This integration enables traders to execute transactions quickly and efficiently, minimizing the risk of losses due to delayed information.
Innovation in Price Discovery
The Metals-API is designed to facilitate innovation in price discovery. With endpoints that provide the latest rates, historical rates, and fluctuation data, developers can build applications that offer users insights into the dynamics of gold pricing. This innovation is crucial for traders who need to stay ahead of market fluctuations.
Digital Asset Solutions
As the demand for digital asset solutions grows, the Metals-API offers a comprehensive approach to accessing precious metals data. Developers can utilize the API to create applications that not only track gold prices but also provide users with conversion capabilities and historical analysis, making it a versatile tool for any trader.
API Description
The Metals-API is a powerful tool that allows developers to access a wide range of functionalities related to precious metals. With its user-friendly interface and comprehensive documentation, the API empowers developers to build next-generation applications that leverage real-time metals data. The API provides various endpoints, each designed to cater to specific needs, from retrieving the latest rates to accessing historical data.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that serve different purposes. Here are some of the key features:
- 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 feature is essential for traders who need the most current pricing information.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to your query, you can retrieve historical prices for gold and other metals.
- Bid and Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for various metals, providing traders with critical information for executing trades.
- Convert Endpoint: This endpoint allows you to convert any amount from one metal to another or to/from USD, making it easy to calculate values in different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, which is crucial for understanding market volatility.
- Carat Endpoint: Access information about gold rates by carat, providing additional granularity for traders interested in specific gold qualities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, helping traders identify price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get the open, high, low, and close price for a specific date, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of metal prices.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- 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 numerous endpoints, each providing different functionalities tailored to meet user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals supported by the API.
- Gold Price India Endpoint: Retrieve the latest gold price in India using the dedicated endpoint, catering to regional traders.
- News Endpoint: Get the latest news articles related to various metals, keeping traders informed about market developments.
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
To get real-time exchange rates for all available metals, you can use the latest rates endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1750205252,
"base": "USD",
"date": "2025-06-18",
"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 that the current price of gold (XAU) is 0.000482 per troy ounce, with other metals listed for comparison.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999. Here’s an example response:
{
"success": true,
"timestamp": 1750118852,
"base": "USD",
"date": "2025-06-17",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical price of gold on June 17, 2025, allowing traders to analyze past performance.
Time-Series Endpoint
To get exchange rates for a specific time period, the time-series endpoint can be utilized. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2025-06-11",
"end_date": "2025-06-18",
"base": "USD",
"rates": {
"2025-06-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-18": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily rates for gold over a specified period, enabling traders to visualize trends and fluctuations.
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": 1750205252,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates that 1000 USD is equivalent to 0.482 troy ounces of gold, providing a straightforward conversion for traders.
Fluctuation Endpoint
To track rate fluctuations between two dates, the fluctuation endpoint can be used. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-11",
"end_date": "2025-06-18",
"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 have fluctuated over the specified period, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
To get OHLC data for a specific time period, the following response can be utilized:
{
"success": true,
"timestamp": 1750205252,
"base": "USD",
"date": "2025-06-18",
"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 opening, highest, lowest, and closing prices for gold on June 18, 2025, which is vital for technical analysis.
Bid/Ask Endpoint
To get current bid and ask prices for metals, the following response can be used:
{
"success": true,
"timestamp": 1750205252,
"base": "USD",
"date": "2025-06-18",
"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, silver, and platinum, allowing traders to make informed decisions based on market conditions.
Conclusion
The Metals-API is an invaluable resource for developers and traders looking to access historical prices and real-time data for precious metals like gold. With its comprehensive suite of endpoints, the API empowers users to build innovative applications that leverage the power of data analytics and technology integration. By utilizing features such as the latest rates, historical rates, and fluctuation data, traders can gain insights into market trends and make informed decisions.
For more information on how to implement these features, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. The Metals-API Website serves as a gateway to all the resources you need to get started with integrating precious metals data into your applications.