Access Salem Gold 18k (SALE-18k) Historical Data API in JSON Format
Access Salem Gold 18k (SALE-18k) Historical Data API in JSON Format
In the world of precious metals trading, having access to real-time and historical data is crucial for making informed decisions. The Metals-API provides developers with a powerful tool to retrieve exchange rates for metals such as Gold (XAU), Silver (XAG), Platinum (XPT), and Palladium (XPD) in JSON format. This blog post will delve into how to effectively utilize the Metals-API to access exchange rates, including sample API responses and integration tips.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of financial markets and a symbol of wealth. In recent years, the digital transformation in precious metals has opened new avenues for trading and investment. With the rise of data analytics and market insights, traders can now leverage technology to gain a competitive edge. The integration of innovative solutions in price discovery and trading has made it easier for investors to access real-time data and make informed decisions.
The Metals-API stands out as a transformative tool in this landscape, empowering developers to build next-generation applications that can analyze and visualize precious metals data. By utilizing the API, developers can create applications that provide insights into market trends, historical data analysis, and even predictive modeling based on past performance.
API Description
The Metals-API offers a comprehensive suite of features designed to provide developers with the tools they need to access and manipulate metals data. The API is built with innovation in mind, allowing for seamless integration into various applications. With capabilities such as real-time exchange rates, historical data retrieval, and currency conversion, the Metals-API is a vital resource for anyone working in the precious metals market.
For detailed information, developers can refer to the Metals-API Documentation, which outlines the various endpoints and their functionalities. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of all available metal symbols, ensuring that users can easily find the data they need.
Key Features and Endpoints
The Metals-API provides a variety of endpoints that cater to different data needs. Each endpoint is designed to deliver specific functionalities that can be leveraged in various applications. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for all available metals. Depending on your subscription plan, the API can provide updates every 60 minutes or even every 10 minutes. This feature is crucial for traders who need the most current data to make quick decisions.
- Historical Rates Endpoint: Access historical exchange rates dating back to 2019. By appending a specific date to the API call, users can retrieve past rates, which is essential for trend analysis and market research.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts from one metal to another or to/from USD. This is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, allowing for detailed analysis over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Retrieve information about Gold rates by carat, which is essential for jewelers and those dealing in fine jewelry.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specific date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for those involved in industrial metals.
- API Key: Each user is provided with a unique API key that must be included in API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, here are some examples of API responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1770232048,
"base": "USD",
"date": "2026-02-04",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
This response indicates a successful API call, providing the latest exchange rates for Gold (XAU), Silver (XAG), Platinum (XPT), and Palladium (XPD) against USD.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1770145648,
"base": "USD",
"date": "2026-02-03",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for a specific date, allowing users to analyze past performance.
Time-series Endpoint
{
"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 demonstrates how to retrieve exchange rates over a specified time period, which is essential for trend analysis.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1770232048,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example illustrates how to convert a specific amount from USD to Gold (XAU), providing the result in troy ounces.
Fluctuation Endpoint
{
"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 metal prices have fluctuated over a specified period, which is crucial for understanding market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1770232048,
"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 endpoint provides essential data for traders looking to perform technical analysis based on daily price movements.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1770232048,
"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 metals, which is crucial for traders looking to enter or exit positions.
Conclusion
The Metals-API is an invaluable resource for developers working in the precious metals market. With its extensive range of features and endpoints, it empowers users to access real-time and historical data, perform currency conversions, and analyze market trends. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance trading strategies and provide valuable insights into the precious metals market.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the Metals-API Supported Symbols page to find the data you need. The Metals-API Website is also a great resource for understanding the full capabilities of this powerful API.