Request
GET /v2.2/countries/?api_key=API_KEY&t=info&id=4- Available on every plan for the leagues the plan covers.
- Authenticate with
api_key=API_KEYin the URL, orAuthorization: Bearer API_KEYas an alternative. Both use the same key, without a username. See authentication methods.
Parameters
| Name | Required | Description | Example |
|---|---|---|---|
id | yes | Country 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": ""
}
}