SoccersAPIDocs
DocsReferenceCountries › Country by ID

GETCountry by ID

One country with continent, ISO code and flag image.

/v2.2/countries/ with t=info

Try it in the interactive referenceAll Countries operations

Request

GET /v2.2/countries/?user=USER&token=TOKEN&t=info&id=4

Parameters

NameRequiredDescriptionExample
idyesCountry ID.4

Example response

{
  "data": {
    "id": 4,
    "name": "Germany",
    "continent": "Europe",
    "sub_region": null,
    "long": null,
    "lat": null,
    "img": "https://cdn.soccersapi.com/images/countries/30/de.png",
    "code": "de"
  },
  "meta": {
    "requests_left": 2950,
    "user": "your_username",
    "plan": "Soccer API 50",
    "page": 1,
    "pages": 1,
    "count": 1,
    "total": 1,
    "msg": ""
  }
}