Currency API

This API converts EUR to USD and the other way around.

Usage

GET /eur

{
  "date": "2026-06-09",
  "rate": 1.1573
}

GET /usd

{
  "date": "2026-06-09",
  "rate": 0.8641
}

GET /20eur

{
  "date": "2026-06-09",
  "rate": 1.1573,
  "from": {
    "amount": 20,
    "currency": "eur"
  },
  "to": {
    "amount": 23.15,
    "currency": "usd"
  }
}

GET /42.69usd

{
  "date": "2026-06-09",
  "rate": 0.8641,
  "from": {
    "amount": 42.69,
    "currency": "usd"
  },
  "to": {
    "amount": 36.89,
    "currency": "eur"
  }
}

GET /eur/usd/1999-12-30

{
  "date": "1999-12-30",
  "rate": 1.0046
}

GET /20eur/usd/1999-12-30

{
  "date": "1999-12-30",
  "rate": 1.0046,
  "from": {
    "amount": 20,
    "currency": "eur"
  },
  "to": {
    "amount": 20.09,
    "currency": "usd"
  }
}