Convert Currency

PythonFinance
POST api.upapi.io/currency-convert.get

Convert a fiat amount across one or more target currencies using ECB daily reference rates via Frankfurter. Returns both unit rates and the converted amounts.

currencyforexfxecbpython
AuthAPI key
Cost1 unit
Timeout12s
Cache600s

Request schema

FieldTypeDescription
basereq
stringISO-4217 base currency code (e.g. USD)
amount
numberAmount of the base currency to convert· default: 1
targetsreq
stringComma-separated ISO-4217 target currency codes (e.g. EUR,GBP,JPY)

Response schema

FieldTypeDescription
basereq
string
datereq
string
ratesreq
object
amountreq
number
convertedreq
object
fetchedAtreq
string

Try it

Try it

ISO-4217 base currency code (e.g. USD)

Comma-separated ISO-4217 target currency codes (e.g. EUR,GBP,JPY)

Amount of the base currency to convert

Run this endpoint live

Jump in as a guest — no signup — and run currency-convert.get with your own inputs. Create a free account anytime to get your own API key.

Sign in

Code examples

curl -X POST https://api.upapi.io/currency-convert.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "base": "USD", "amount": 1, "targets": "EUR,GBP,JPY" }'

Developer tools

OpenAPI specImport the spec or collection into Postman, Insomnia, or any codegen tool.