Skip to main content
GET
Convert an amount between currencies

Authorizations

X-API-Key
string
header
required

API key (wg_live_…) created in the dashboard (Account → API Keys). Shown once at creation; only a hash is stored server-side.

Query Parameters

from
string
required

Currency code to convert from (case-insensitive). Any key of GET …/rates.

Example:

"EUR"

to
string
required

Currency code to convert to (case-insensitive). Any key of GET …/rates.

Example:

"USD"

amount
number
default:1

Amount in from to convert.

Example:

50

Response

Converted amount.

from
string
required

Uppercased from code.

Example:

"EUR"

to
string
required

Uppercased to code.

Example:

"USD"

amount
number
required
Example:

50

converted
number
required

amount expressed in to — unrounded.

Example:

54.35

rate
number
required

Units of to per 1 unit of from.

Example:

1.087