GET /configuration/countries/

Get countries.

Query parameters

  • code string

    Country code

    Minimum length is 3, maximum length is 3.

  • name string

    Country name

  • model string

    Ordering

    Values are code, -code, name, or -name. Default value is code.

Responses

  • 200 application/json

    A list of countries.

    Hide response attributes Show response attributes object
    • name string

      Country name.

    • code string

      Country code.

      Minimum length is 3, maximum length is 3.

GET /configuration/countries/
curl \
 --request GET 'https://app.countryrisk.io/api/v1/configuration/countries/' \
 --header "Authorization: $API_KEY"
Response examples (200)
[
  {
    "name": "Australia",
    "code": "AUS"
  },
  {
    "name": "Austria",
    "code": "AUT"
  },
  {
    "name": "Sweden",
    "code": "SWE"
  }
]