GET /convert
Convert a specifik monetary amount från one currency to anandra med hjälp av the latest växelkurss. Stöder an valfri margin parameter for adding business markup (e.g., 2% fee on top av marknad kurs), and an valfri datum parameter for historisk conversions. Returnerar the converted amount, the kurs used, and query detaljer. Perfekt för e-commerce checkout flows, invoicing system, and rese budget verktyg.
from
obligatorisk
Source currency
to
obligatorisk
Target currency
amount
obligatorisk
Amount to convert
margin
valfri
Business markup percentage
date
valfri
Historical date (YYYY-MM-DD)
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
from |
Ja | - | Source currency |
to |
Ja | - | Target currency |
amount |
Ja | - | Amount to convert |
margin |
Nej | - | Business markup percentage |
date |
Nej | - | Historical date (YYYY-MM-DD) |
curl "https://nordapi.ee/api/v1/convert?from=USD&to=EUR&amount=100"
curl "https://nordapi.ee/api/v1/convert?from=USD&to=EUR&amount=100"
curl "https://nordapi.ee/api/v1/convert?from=USD&to=EUR&amount=100&margin=2.5"
curl "https://nordapi.ee/api/v1/convert?from=GBP&to=NOK&amount=500&date=2026-01-15"
curl "https://nordapi.ee/api/v1/convert?from=JPY&to=NOK&amount=1000000"
{
"query": {
"amount": 100.0,
"from": "USD",
"to": "EUR"
},
"rate": 0.86767896,
"result": 86.767896,
"success": true
}
{"success":true,"query":{"from":"USD","to":"EUR","amount":100.0},"result":86.54,"rate":0.8654}