v1

latestSwagger 2.0Creative Commons Attribution 3.02026-07-14263452.9 KB
Locale

Find currencies

Find currencies, filtering by optional criteria. If no criteria are set, you will get back all known currencies.

get/locale/currencies

Query parameters

countryIdstring required

Currencies for this country id

hateoasModeboolean

Include HATEOAS-style links in results

limitinteger

The maximum number of results to retrieve

offsetinteger

The zero-ary offset index into the results

Response

A list of currencies

Example response

{
  "data": [
    {
      "code": "AWG",
      "countryCodes": [
        "AW"
      ]
    },
    {
      "code": "AZN",
      "countryCodes": [
        "AZ"
      ]
    },
    {
      "code": "BAM",
      "countryCodes": [
        "BA"
      ]
    },
    {
      "code": "BBD",
      "countryCodes": [
        "BB"
      ]
    },
    {
      "code": "BDT",
      "countryCodes": [
        "BD"
      ]
    }
  ],
  "links": [
    {
      "href": "/data/world/v1/locale/currencies?offset=0&limit=5",
      "rel": "first"
    },
    {
      "href": "/data/world/v1/locale/currencies?offset=5&limit=5",
      "rel": "prev"
    },
    {
      "href": "/data/world/v1/locale/currencies?offset=15&limit=5",
      "rel": "next"
    },
    {
      "href": "/data/world/v1/locale/currencies?offset=200&limit=5",
      "rel": "last"
    }
  ],
  "metadata": {
    "currentOffset": 10,
    "totalCount": 205
  }
}