List countries

Overview

Get the supported countries.

Use this to populate a country picker.

No token needed.

Returns countries with their codes, sorted by name. Use a country's value as country_code in List states and List cities.

Prerequisites

  • None.

Base URL

EnvironmentURL
Productionhttps://production-api.shoutaboutus.com
Developmenthttps://development-api.shoutaboutus.com

Endpoint

GET /api/v1/address/countries

Authentication

Public (no token)

  • Anyone gets the same global list.

Rate limit

100 requests per minute, counted per client IP address. See Rate limits.

Request parameters

None.

Request body

None.

Request payload

None.

Response body

The payload is inside data.data: one entry per country.

FieldTypeDescription
data.data[].labelstringThe country's name.
data.data[].valuestringThe country's ISO code, for example US. Use it as country_code.

Response payload

{
  "data": {
    "data": [
      {
        "label": "Australia",
        "value": "AU"
      },
      {
        "label": "Canada",
        "value": "CA"
      },
      {
        "label": "United Kingdom",
        "value": "GB"
      },
      {
        "label": "United States",
        "value": "US"
      }
    ]
  }
}

Examples

Success payload

See Response payload (shortened; the full list has every country).

Error payload

429 Too many requests

{
  "message": "Too Many Attempts."
}
StatusMeaning
200The countries.
429More than 100 requests in a minute from your IP address.
500Unexpected server error.

Example request

curl --request GET \
  --url "https://production-api.shoutaboutus.com/api/v1/address/countries" \
  --header 'Accept: application/json'

Did this page help you?