How to use ExchangeRate-API — a practical guide

If you're here, you probably want working code in five minutes. That's exactly what this guide does.

Five steps to get started

  1. 1
    Register at exchangerate-api.com for a key.
  2. 2
    GET /v6/<key>/latest/<BASE>.

Shortest snippet that will actually run

curl "https://v6.exchangerate-api.com/v6/YOUR_KEY/latest/USD"

Common mistakes (the honest list)

Use ILS as base for Israeli calculations — saves a conversion step.