Download Salem Gold 22k (SALE-22k) Historical Prices from this API

Introduction
In the world of precious metals trading, having access to 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 alike, the ability to download historical prices of Gold, specifically 22k Gold (SALE-22k), can be a game-changer. This blog post will explore how to obtain historical prices using the Metals-API, a powerful tool that provides real-time and historical data for various metals.
Metals-API Information
About Gold (XAU)
Gold has been a symbol of wealth and prosperity for centuries. In recent years, the digital transformation in the precious metals market has revolutionized how traders and investors access and analyze data. With the rise of data analytics and market insights, traders can now leverage technology to make better decisions. The integration of advanced technologies in trading platforms has led to innovative price discovery methods, allowing for more accurate valuations of Gold and other precious metals.
The Metals-API stands at the forefront of this transformation, offering developers the tools necessary to build next-generation applications that can harness the power of real-time metals data. By utilizing the Metals-API, developers can create applications that provide insights into market trends, historical price movements, and even predictive analytics based on past data.
API Description
The Metals-API is designed to empower developers with comprehensive access to metals data. It offers a range of endpoints that allow users to retrieve real-time and historical prices, perform currency conversions, and analyze market fluctuations. The API's capabilities are not just limited to fetching data; it also enables developers to build applications that can provide valuable insights into the precious metals market.
With the Metals-API, developers can access a variety of endpoints, each tailored to specific needs. For instance, the Latest Rates Endpoint provides real-time exchange rate data, while the Historical Rates Endpoint allows users to query historical prices dating back to 2019. This flexibility makes the Metals-API an essential tool for anyone looking to work with precious metals data.
Key Features and Endpoints
The Metals-API offers a plethora of features that cater to different aspects of metals trading. Here are some of the key endpoints and their functionalities:
Latest Rates Endpoint
The Latest Rates Endpoint is a vital feature for traders who need real-time data. Depending on your subscription plan, this endpoint can return exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This ensures that traders have access to the most current market information, allowing them to make timely decisions.
{
"success": true,
"timestamp": 1754031619,
"base": "USD",
"date": "2025-08-01",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
The Historical Rates Endpoint is particularly useful for those looking to analyze past market trends. Historical rates are available for most currencies dating back to 2019. By appending a specific date to the API request, users can retrieve historical prices for Gold and other metals.
{
"success": true,
"timestamp": 1753945219,
"base": "USD",
"date": "2025-07-31",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint provides real-time bid and ask prices for various metals. This feature is essential for traders who need to understand the market's current buying and selling prices. Depending on your subscription plan, this endpoint can deliver valuable insights into market liquidity and pricing strategies.
{
"success": true,
"timestamp": 1754031619,
"base": "USD",
"date": "2025-08-01",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1754031619,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint enables users to query the API for daily historical rates between two dates of their choice. This is particularly beneficial for conducting in-depth analyses of price movements over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2025-07-25",
"end_date": "2025-08-01",
"base": "USD",
"rates": {
"2025-07-25": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-08-01": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into how currencies fluctuate on a day-to-day basis. This is crucial for traders looking to understand market volatility and make informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-25",
"end_date": "2025-08-01",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows users to retrieve the open, high, low, and close prices for a specific time period. This data is essential for traders who rely on technical analysis to make trading decisions.
{
"success": true,
"timestamp": 1754031619,
"base": "USD",
"date": "2025-08-01",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This is particularly useful for traders who need to analyze long-term trends in the metals market.
API Key and Response
Your API Key is a unique identifier that must be included in your API requests. This key is passed into the API base URL's access_key parameter to authenticate your requests. The API response will typically include a success status, a timestamp, and the requested data, all formatted in JSON.
Exchange rates delivered by the Metals-API are by default relative to USD, ensuring consistency across different queries. All data is returned in a structured format, making it easy for developers to parse and utilize in their applications.
Available Endpoints
The Metals-API offers a comprehensive range of endpoints, each designed to provide specific functionalities. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
News Endpoint
The News Endpoint allows users to retrieve the latest news articles related to various metals. This feature is essential for traders looking to stay informed about market developments and trends.
Conclusion
In conclusion, the Metals-API is an invaluable resource for developers and traders looking to access real-time and historical data for precious metals like Gold. With its extensive range of endpoints, the API provides the tools necessary to analyze market trends, perform currency conversions, and track price fluctuations. By leveraging the capabilities of the Metals-API, developers can create powerful applications that enhance trading strategies and provide deeper insights into the precious metals market.
For more information on how to get started, visit the Metals-API Documentation for detailed guidance on implementation and usage. Whether you are a seasoned trader or a developer looking to integrate metals data into your applications, the Metals-API offers the resources you need to succeed.