Access British Pound (GBP) Exchange Rate API Documentation in JSON Format
Access British Pound (GBP) Exchange Rate API Documentation in JSON Format
In today's fast-paced financial landscape, having access to real-time data is crucial for developers and businesses alike. The Metals-API provides a robust solution for retrieving exchange rates, including the British Pound (GBP), in a user-friendly JSON format. This blog post will delve into the capabilities of the Metals-API, focusing on how developers can leverage its features to access GBP exchange rates, along with sample API responses and integration tips.
Metals-API Information
About Neodymium (ND)
Neodymium, a rare earth metal, plays a significant role in the digital transformation of metal markets. As industries increasingly rely on technological innovation and advancement, the integration of data analytics and smart technology becomes essential. The future trends surrounding Neodymium and other metals indicate a shift towards more efficient and data-driven decision-making processes. By utilizing APIs like Metals-API, developers can harness real-time data to create applications that not only track metal prices but also analyze market trends and fluctuations.
API Description
The Metals-API is designed to empower developers by providing access to real-time metals data, including exchange rates for various currencies. This API enables the creation of next-generation applications that can respond to market changes instantaneously. With its comprehensive documentation available at the Metals-API Documentation, developers can easily navigate through the features and endpoints available.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, which is crucial for applications that require up-to-date information. The API supports various endpoints that cater to different needs, such as retrieving the latest rates, historical data, and even fluctuations over time. This flexibility allows developers to build applications that can adapt to the dynamic nature of the metals market.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each serving a unique purpose. Here’s a breakdown of 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 is particularly useful for applications that require the most current data to make informed decisions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. Developers can query the Metals-API for historical rates by appending a specific date in the format YYYY-MM-DD. This feature is essential for analyzing trends over time.
- Bid And Ask Endpoint: This powerful feature allows developers to retrieve real-time bid and ask prices for metals, providing insights into market conditions and helping users make informed trading decisions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one currency to another. This is particularly useful for applications that need to display prices in different currencies.
- Time-Series Endpoint: This endpoint allows querying for daily historical rates between two dates of your choice, making it easier to analyze price movements over specific periods.
- Fluctuation Endpoint: Developers can track how currencies fluctuate on a day-to-day basis using this endpoint, which provides valuable insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and traders dealing in precious metals.
- Lowest/Highest Price Endpoint: This endpoint enables querying for the lowest and highest prices of metals over a specified period, helping users identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Each user is assigned a unique API key that must be included in the API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data representation.
- Available Endpoints: With 14 different API endpoints, each providing distinct functionalities, developers have a wide range of options to choose from.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring developers have access to the latest information.
- News Endpoint: Retrieve the latest news articles related to various metals, providing context and insights into market movements.
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. This resource is invaluable for developers looking to integrate specific metal data into their applications.
API Endpoint Examples and 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 of a typical response:
{
"success": true,
"timestamp": 1775750841,
"base": "USD",
"date": "2026-04-09",
"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"
}
In this response, the "success" field indicates whether the request was successful. The "timestamp" provides the time of the request, while "base" shows the base currency (USD in this case). The "rates" object contains the exchange rates for various metals, with each metal symbol as a key and its corresponding rate as the value.
Historical Rates Endpoint
Accessing historical exchange rates for any date since 1999 can be done through the Historical Rates Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1775664441,
"base": "USD",
"date": "2026-04-08",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response structure is similar to the Latest Rates Endpoint, with the addition of a specific date for which the historical rates are being queried.
Time-series Endpoint
To get exchange rates for a specific time period, the Time-Series Endpoint can be utilized. Here’s an example:
{
"success": true,
"timeseries": true,
"start_date": "2026-04-02",
"end_date": "2026-04-09",
"base": "USD",
"rates": {
"2026-04-02": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-04": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-09": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a detailed view of the exchange rates over a specified period, allowing for trend analysis and comparison.
Convert Endpoint
The Convert Endpoint allows users 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": 1775750841,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion from USD to XAU, providing the rate used for conversion and the resulting amount in troy ounces.
Fluctuation Endpoint
To track rate fluctuations between two dates, the Fluctuation Endpoint can be used. Here’s an example:
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-02",
"end_date": "2026-04-09",
"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 the rates have changed over the specified period, which is crucial for understanding market dynamics.
OHLC (Open/High/Low/Close) Endpoint
To get OHLC data for a specific time period, the following response can be expected:
{
"success": true,
"timestamp": 1775750841,
"base": "USD",
"date": "2026-04-09",
"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 is particularly useful for traders who rely on technical analysis to make informed decisions.
Bid/Ask Endpoint
To get current bid and ask prices for metals, the following response can be expected:
{
"success": true,
"timestamp": 1775750841,
"base": "USD",
"date": "2026-04-09",
"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 essential information for traders, allowing them to understand the market's current conditions and make informed decisions.
Conclusion
The Metals-API offers a comprehensive solution for developers looking to access real-time exchange rates, including the British Pound (GBP), in a JSON format. With its extensive range of endpoints, developers can retrieve the latest rates, historical data, and fluctuations, enabling them to build powerful applications that respond to market changes. By utilizing the Metals-API Documentation, developers can easily navigate through the various features and integrate them into their applications.
As the demand for real-time data continues to grow, APIs like Metals-API will play a crucial role in shaping the future of financial applications. By leveraging the capabilities of this API, developers can create innovative solutions that not only track metal prices but also provide valuable insights into market trends and fluctuations. For more information on supported symbols, visit the Metals-API Supported Symbols page, and explore the full potential of the Metals-API for your projects.