NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server →

Currency Conversion API

The Currency Conversion API converts an amount from one currency into another using up-to-date foreign exchange rates. Convert between hundreds of global currencies with a single request.

Note: This API converts between fiat currencies. For crypto-to-fiat conversions, use the Crypto Price API instead.

Working with FX risk? See the Currency Volatility API for realized volatility and forecasts on any pair. Premium only

Supported Currencies

SymbolCurrencySymbolCurrency
USDUnited States DollarEUREuro
GBPBritish PoundJPYJapanese Yen
AUDAustralian DollarCADCanadian Dollar
CHFSwiss FrancCNYChinese Yuan
INRIndian RupeeHKDHong Kong Dollar
SGDSingapore DollarMXNMexican Peso
AEDUAE DirhamAFNAfghan Afghani
ALLAlbanian LekAMDArmenian Dram
ANGNetherlands Antillean GuldenAOAAngolan Kwanza
ARSArgentine PesoAWGAruban Florin
AZNAzerbaijani ManatBAMBosnia And Herzegovina Konvertibilna Marka
BBDBarbadian DollarBDTBangladeshi Taka
BGNBulgarian LevBHDBahraini Dinar
BIFBurundi FrancBMDBermudan Dollar
BNDBrunei DollarBOBBolivian Boliviano
BRLBrazilian RealBSDBahamian Dollar
BTCBitcoinBTNBhutanese Ngultrum
BWPBotswana PulaBYNNew Belarusian Ruble
BYRBelarusian RubleBZDBelize Dollar
CDFCongolese FrancCLFChilean Unit Of Account
CLPChilean PesoCOPColombian Peso
CRCCosta Rican ColonCUCCuban Convertible Peso
CUPCuban PesoCVECape Verdean Escudo
CZKCzech KorunaDJFDjiboutian Franc
DKKDanish KroneDOPDominican Peso
DZDAlgerian DinarEGPEgyptian Pound
ERNEritrean NakfaETBEthiopian Birr
FJDFijian DollarFKPFalkland Islands Pound
GELGeorgian LariGGPGuernsey Pound
GHSGhanaian CediGIPGibraltar Pound
GMDGambian DalasiGNFGuinean Franc
GTQGuatemalan QuetzalGYDGuyanese Dollar
HNLHonduran LempiraHRKCroatian Kuna
HTGHaitian GourdeHUFHungarian Forint
IDRIndonesian RupiahILSIsraeli New Sheqel
IMPManx poundIQDIraqi Dinar
IRRIranian RialISKIcelandic Króna
JEPJersey PoundJMDJamaican Dollar
JODJordanian DinarKESKenyan Shilling
KGSKyrgyzstani SomKHRCambodian Riel
KMFComorian FrancKPWNorth Korean Won
KRWSouth Korean WonKWDKuwaiti Dinar
KYDCayman Islands DollarKZTKazakhstani Tenge
LAKLao KipLBPLebanese Lira
LKRSri Lankan RupeeLRDLiberian Dollar
LSLLesotho LotiLVLLatvian Lats
LYDLibyan DinarMADMoroccan Dirham
MDLMoldovan LeuMGAMalagasy Ariary
MKDMacedonian DenarMMKMyanma Kyat
MNTMongolian TugrikMOPMacanese Pataca
MROMauritanian OuguiyaMURMauritian Rupee
MVRMaldivian RufiyaaMWKMalawian Kwacha
MYRMalaysian RinggitMZNMozambican Metical
NADNamibian DollarNGNNigerian Naira
NIONicaraguan CordobaNOKNorwegian Krone
NPRNepalese RupeeNZDNew Zealand Dollar
OMROmani RialPABPanamanian Balboa
PENPeruvian Nuevo SolPGKPapua New Guinean Kina
PHPPhilippine PesoPKRPakistani Rupee
PLNPolish ZlotyPYGParaguayan Guarani
QARQatari RiyalRONRomanian Leu
RSDSerbian DinarRUBRussian Ruble
RWFRwandan FrancSARSaudi Riyal
SBDSolomon Islands DollarSCRSeychellois Rupee
SDGSudanese PoundSEKSwedish Krona
SHPSaint Helena PoundSLL, SLESierra Leonean Leone
SOSSomali ShillingSRDSurinamese Dollar
STD, STNSao Tome And Principe DobraSVCSalvadoran Colón
SYPSyrian PoundSZLSwazi Lilangeni
THBThai BahtTJSTajikistani Somoni
TMTTurkmenistan ManatTNDTunisian Dinar
TOPPaangaTRYTurkish New Lira
TTDTrinidad and Tobago DollarTWDNew Taiwan Dollar
TZSTanzanian ShillingUAHUkrainian Hryvnia
UGXUgandan ShillingUYUUruguayan Peso
UZSUzbekistani SomVEF, VESVenezuelan Bolivar
VNDVietnamese DongVUVVanuatu Vatu
WSTSamoan TalaXAFCentral African CFA Franc
XAGSilver (troy ounce)XCDEast Caribbean Dollar
XDRSpecial Drawing RightsXOFWest African CFA Franc
XPFCFP FrancYERYemeni Rial
ZARSouth African RandZMKOld Zambian Kwacha
ZMWZambian KwachaZWGZimbabwe Gold
ZWLZimbabwean Dollar
Online
(4.4)

From 5,079 users

2,800+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
249ms287ms337ms684ms1101ms

Didn't find what you were looking for? Suggest an improvement

https://api.api-ninjas.com/v1/convertcurrency

Converts an existing currency and amount into a new currency.

Data freshness depends on your plan: free-tier accounts receive once-daily rates, while premium subscribers receive real-time rates.

Parameters

  • have  required

    Currency you currently hold. Must be 3-character currency code (e.g. USD).

  • want  required

    Currency you want to convert to. Must be 3-character currency code (e.g. USD).

  • amount  required

    Amount of currency to convert.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

The /v1/convertcurrency endpoint returns a JSON object with the following fields, or an error if the request is unsuccessful.

  • old_amount

    The original amount to convert (e.g. 5000).

  • old_currency

    The original currency code (e.g. GBP).

  • new_amount

    The converted amount in the new currency (e.g. 9559.32).

  • new_currency

    The new currency code (e.g. AUD).

  • timestamp

    Unix timestamp (in seconds) indicating the time at which the exchange rate used for the conversion was applied.

Live Demo

Live demo · no API key required
Query parameters
have
want
amount

Get a free API key to get started — no credit card required.

Headers
X-Api-KeyLog in or sign up to get your API key
GET
https://api.api-ninjas.com/v1/convertcurrency?have=GBP&want=AUD&amount=5000
Sample response
{
"new_amount": 9417.04,
"new_currency": "AUD",
"old_currency": "GBP",
"old_amount": 5000,
"timestamp": 1779498871
}

Code Examples

curl -X GET "https://api.api-ninjas.com/v1/convertcurrency?have=GBP&want=AUD&amount=5000" \ -H "X-Api-Key: YOUR_API_KEY"

If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.

Frequently Asked Questions

  • 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.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • 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.
  • 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.
  • 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), and amount (the quantity to convert). To pull the underlying rates directly instead, see the Exchange Rate API.
  • It returns a JSON object with old_amount and old_currency echoing your input, new_amount and new_currency giving the converted result, and a timestamp (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.
  • All supported currencies are available on the free tier, which returns once-daily exchange rates; premium plans add real-time rates. The API converts between fiat currencies only (for crypto, use a dedicated crypto endpoint). Each response includes a timestamp for the exchange rate used. For historical rates, see the Exchange Rate 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.