Documentation / Account and coverage
Countries
GET /v1/countriesFree key and up
Every country with the number of leagues and teams it has.
GET
https://api.icehockeyapi.com/v1/countrieshttps://api.icehockeyapi.com/v1/countriescurl "https://api.icehockeyapi.com/v1/countries" \ -H "X-API-Key: YOUR_KEY"
200 OKExample answer from the data, 12 Oct
{
"data": [
{
"country": "Afriquesud",
"leagues": 1,
"teams": 2
},
{
"country": "AlpeAdria",
"leagues": 1,
"teams": 5
},
{
"country": "Armenia",
"leagues": 2,
"teams": 6
}
],
"meta": {
"count": 100,
"plan": "Complete"
}
}Run works once the API is live; the code above works now.
Parameters
None.
Returns
| Field | Type |
|---|---|
country | string |
leagues | int |
teams | int |