GET /api/srd-api/v3/srd/common/country-list

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/cmc/api/srd-api/v3/srd/common/country-listCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Reference countries (name and code).

name=srd_countries.

Parameters

No parameters documented.

Response

type: array
pagination: none
sample: {
  "len": "246",
  "[0]": "object",
  "[0].name": "Afghanistan",
  "[0].code": "AF"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/cmc/api/srd-api/v3/srd/common/country-list"