API examples

Frankfurter is a free, open-source API for current and historical exchange rates. The public API lives at api.frankfurter.dev. Query rates for this currency using the examples below.

Fetch against every currency.

curl https://api.frankfurter.dev/v2/rates?base=GHC&date=2007-12-31

Fetch five years of monthly rates.

curl https://api.frankfurter.dev/v2/rates?base=GHC&from=2002-12-31&to=2007-12-31&group=month

Fetch current GHC/EUR.

curl https://api.frankfurter.dev/v2/rate/GHC/EUR?date=2007-12-31

For the full reference and more examples, see the docs.