GET Country by ID
https://soccer.sportmonks.com/api/v2.0/country/{ID}
Endpoint details | |
Pagination | YES |
Allowed nested includes | 2 |
Authorization | API Key |
Available parameters | |
page | The number of the page you want to browse. Can be used by adding &page=2 etc to your request url. |
include | Enrich the API with more data and/or nested includes. Can be used by adding &include= etc. to your request url. |
leagues
continent
covid
Includes are the cornerstone of our API and allow you to enrich and customize your requests. This flexibility is what distinguishes us from our competitors.
You can learn more about what includes are and how they work here:
Request
Response
https://soccer.sportmonks.com/api/v2.0/countries/2?api_token={API_TOKEN}
"data": {
"id": 2,
"name": "Poland",
"image_path": "https://cdn.sportmonks.com/images/countries/png/short/pl.png",
"extra": {
"continent": "Europe",
"sub_region": "Eastern Europe",
"world_region": "EMEA",
"fifa": "POL",
"iso": "POL",
"iso2": "PL",
"longitude": "19.37775993347168",
"latitude": "52.147850036621094",
"flag": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1280\" height=\"800\" viewBox=\"0 0 16 10\"><path fill=\"#fff\" d=\"M0 0h16v10h-16z\"/><path fill=\"#dc143c\" d=\"M0 5h16v5h-16z\"/></svg>\n"
}
}
Last modified 1yr ago