Skip to main content

Endpoint

GET /api/currencies
Retrieves a list of all currency codes supported by the API. You can use this endpoint to validate currency codes before making conversion or rate requests.

Example request

curl -X GET "http://localhost:8000/api/currencies"

Response

currencies
array
List of currency codes

Example response

{
  "currencies": [
    "USD",
    "EUR",
    "GBP",
    "JPY",
    "AUD",
    "CAD",
    "CHF",
    "CNY",
    "SEK",
    "NZD"
  ]
}

Status codes

  • 200 - Successfully retrieved list of currencies
  • 500 - Internal server error

Build docs developers (and LLMs) love