USD/GBP Currency Conversion API
The USD/GBP currency pair represents the exchange rate between the United States Dollar and the British Pound Sterling. Often referred to as 'Cable', this pair is one of the oldest and most traded forex pairs. The USD to GBP rate is influenced by Bank of England and Federal Reserve policies, UK economic data, trade balances, and geopolitical developments.
The USD/GBP Currency Conversion API allows you to:
- Convert USD (United States Dollar) to GBP (British Pound Sterling) at current market rates
- Convert GBP (British Pound Sterling) to USD (United States Dollar) at current market rates
- Get accurate conversions for any amount
- Access real-time exchange rate data
From 5,079 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 249ms | 287ms | 337ms | 684ms | 1101ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/convertcurrency GET
https://api.api-ninjas.com/v1/convertcurrency
Parameters
haverequiredCurrency you currently hold. For example,
USDorGBP.wantrequiredCurrency you want to convert to. For example,
GBPorUSD.amountrequiredAmount of currency to convert.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON object with the following fields or an error if the request is unsuccessful.
old_amountThe original amount provided in the request.
old_currencyThe original currency code (e.g.
USD).new_currencyThe target currency code (e.g.
GBP).new_amountThe converted amount in the target currency.
timestampUnix timestamp (in seconds) indicating the time at which the exchange rate used for the conversion was applied.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/convertcurrency?have=USD&want=GBP&amount=1000Headers
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/convertcurrency?have=USD&want=GBP&amount=1000" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed above, you can still make API calls by using any HTTP request library and following the documentation above.
Frequently Asked Questions
Can I use the Convert Currency API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Convert Currency API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the Convert Currency API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the Convert Currency API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.How do I convert an amount from one currency to another?
Send a GET request with three required parameters:have(the 3-character code of the currency you currently hold, e.g.GBP),want(the 3-character code you want to convert to, e.g.AUD), andamount(the quantity to convert). To pull the underlying rates directly instead, see the Exchange Rate API.What does the Convert Currency API response include?
It returns a JSON object withold_amountandold_currencyechoing your input,new_amountandnew_currencygiving the converted result, and atimestamp(Unix seconds) indicating when the exchange rate used for the conversion was applied. See the error codes page for what is returned on a failed request.How fresh are the exchange rates, and which currencies are supported?
Premium members get live forex prices while free users receive 15-minute delayed data, and the API converts between fiat currencies only (for crypto, use a dedicated crypto endpoint). The free tier covers a limited set such asCNY,GBP,AUDandKRW, while the full list of supported currencies is unlocked on premium plans.What are some use cases for the Convert Currency API?
It is ideal for displaying localized prices in e-commerce checkouts, building travel budgeting tools, and normalizing multi-currency invoices or financial reports. For tracking how much a currency pair fluctuates over time, pair it with the Currency Volatility API.