List countries

List countries

GET /v1/countries

The country master referenced by league and team country_id.

Parameters

search optional Match on country name.
lang optional Localize country names (21 languages besides English, e.g. zh-cn, zh-tw, ja, es, de, pt). Unrecognized non-country rows fall back to English.
page, per_page optional Pagination.

Example

GET /v1/countries
curl https://api.5dollarfootballapi.com/v1/countries
  -H "Authorization: Bearer fb_live_your_key"
{
  "success": 1,
  "data": [
    { "id": 14, "name": "England", "continent_id": 3 },
    { "id": 26, "name": "Spain", "continent_id": 3 },
    { "id": 7,  "name": "Brazil", "continent_id": 5 }
  ],
  "pagination": { "page": 1, "per_page": 50, "count": 3, "has_more": true }
}

Need a key? Create a free account — a working key is issued instantly, no card required.