GETAll countries
Every country. Paginated, 100 items per page.
/v2.2/countries/ with t=list
Try it in the interactive referenceAll Countries operations
Request
GET /v2.2/countries/?api_key=API_KEY&t=list&page=1
- Paginated: 100 items per page; read
meta.pages and request the next pages with page. - Available on every plan for the leagues the plan covers.
- Authenticate with
api_key=API_KEY in the URL, or Authorization: Bearer API_KEY as an alternative. Both use the same key, without a username. See authentication methods.
Parameters
| Name | Required | Description | Example |
|---|
page | no | Page number on paginated operations, starting at 1. The response reports meta.page and meta.pages; a page beyond the last returns an empty data. | 1 |
Example response
{
"data": [
{
"id": 136,
"name": "Africa",
"continent": "Africa",
"sub_region": null,
"code": null
},
{
"id": 9,
"name": "Algeria",
"continent": "Africa",
"sub_region": null,
"code": "dz"
}
],
"meta": {
"requests_left": 2950,
"user": "your_username",
"plan": "Soccer API 50",
"page": 1,
"pages": 2,
"count": 100,
"total": 139,
"msg": ""
}
}