List countries
This endpoint allows you to retrieve all the countries.
Query parameters
Optional : If you pass this parameter with the value total, then the response will be the number of items in the collection, instead of the items themselves.<br /> Part of the total capacity
Optional parameter that define the number of items to return<br /> Part of the offset capacity
Optional parameter that define the index of the first item to return (0 = first item)<br /> Part of the offset capacity
Optional parameter that define the page number<br /> Part of the pagination capacity
Optional parameter that define the number of items per page<br /> Part of the pagination capacity
Optional parameter that define the field used for sorting<br /> Part of the sort capacity
Optional parameter that define the default sort order<br /> Part of the sort capacity
Optional parameter that define the sorting order for a field<br /> By default order is used<br /> Part of the sort capacity
Response
OK
Example response
{
"result": "success",
"data": [
{
"id": 203,
"name": "SWITZERLAND",
"short_name": "CH"
}
],
"total": 221,
"page": 2,
"pages": 15,
"items_per_page": 15
}Changes
No recorded changes to this endpoint across all 1 revision of this API.