← Finance & Currency

Period Comparison

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.

Parameters

base required

Base currency

target required

Target currency

Example Requests

Basic usage
curl "https://nordapi.ee/api/v1/compare?base=EUR&target=USD"
EUR/USD period comparison
curl "https://nordapi.ee/api/v1/compare?base=EUR&target=USD"
GBP/NOK period comparison
curl "https://nordapi.ee/api/v1/compare?base=GBP&target=NOK"
USD/SEK period comparison
curl "https://nordapi.ee/api/v1/compare?base=USD&target=SEK"

Live Response

{
  "base": "EUR",
  "comparisons": {
    "1_month_ago": {
      "change": 0.0043,
      "change_pct": 0.3727785002167317,
      "date": "2026-08-03",
      "rate": 1.1535
    },
    "1_week_ago": {
      "change": -0.0091,
      "change_pct": -0.7798440311937612,
      "date": "2026-08-26",
      "rate": 1.1669
    },
    "1_year_ago": null,
    "3_months_ago": null,
    "today": {
      "change": 0.0,
      "change_pct": 0.0,
      "date": "2026-09-02",
      "rate": 1.1578
    },
    "yesterday": {
      "change": -0.0012,
      "change_pct": -0.10353753235547886,
      "date": "2026-09-01",
      "rate": 1.159
    }
  },
  "success": true,
  "target": "USD"
}

Example Response

{"success":true,"comparisons":{"today":{"rate":1.1555},"yesterday":{"rate":1.1489,"change_pct":0.57}}}