GET /compare
Compare a currency pair's current rate against its rate from yesterday, 1 week ago, 1 month ago, 3 months ago, and 1 year ago, with percentage change for each period. Gives instant context about whether a currency is trending up or down over different timeframes. Perfect for currency converter apps that want to show users if now is a good or bad time to exchange.
base
required
Base currency
target
required
Target currency
| Name | Required | Default | Description |
|---|---|---|---|
base |
Yes | - | Base currency |
target |
Yes | - | Target currency |
curl "https://nordapi.ee/api/v1/compare?base=EUR&target=USD"
curl "https://nordapi.ee/api/v1/compare?base=EUR&target=USD"
curl "https://nordapi.ee/api/v1/compare?base=GBP&target=NOK"
curl "https://nordapi.ee/api/v1/compare?base=USD&target=SEK"
{
"base": "EUR",
"comparisons": {
"1_month_ago": {
"change": -0.0295,
"change_pct": -2.535017616224113,
"date": "2026-05-27",
"rate": 1.1637
},
"1_week_ago": {
"change": -0.0125,
"change_pct": -1.0900845905642278,
"date": "2026-06-19",
"rate": 1.1467
},
"1_year_ago": null,
"3_months_ago": {
"change": -0.0175,
"change_pct": -1.5194929235043848,
"date": "2026-03-28",
"rate": 1.1517
},
"today": {
"change": 0.0,
"change_pct": 0.0,
"date": "2026-06-25",
"rate": 1.1342
},
"yesterday": {
"change": 0.0,
"change_pct": 0.0,
"date": "2026-06-25",
"rate": 1.1342
}
},
"success": true,
"target": "USD"
}
{"success":true,"comparisons":{"today":{"rate":1.1555},"yesterday":{"rate":1.1489,"change_pct":0.57}}}