get countries
REST API Documentation
- Authentication
- Manage Deliveries
- Manage Riders
get countries
curl --request GET \
--url http:///%7B{v2_url}%7D/metas/countries \
--header 'Authorization: Bearer <token>'
{
"status": "success",
"message": "Available Countries",
"data": [
{
"id": 83,
"name": "Ghana",
"iso3": "GHA",
"iso2": "GH",
"phonecode": "233",
"capital": "Accra",
"currency": "GHS",
"native": "Ghana",
"emoji": "🇬🇭",
"emojiu": "U+1F1EC U+1F1ED",
"created_at": "2018-07-20T20:11:03.000000Z",
"updated_at": "2020-05-16T10:49:11.000000Z",
"flag": 1,
"wikidataid": "Q117"
},
{
"id": 113,
"name": "Kenya",
"iso3": "KEN",
"iso2": "KE",
"phonecode": "254",
"capital": "Nairobi",
"currency": "KES",
"native": "Kenya",
"emoji": "🇰🇪",
"emojiu": "U+1F1F0 U+1F1EA",
"created_at": "2018-07-20T20:11:03.000000Z",
"updated_at": "2020-05-16T10:49:11.000000Z",
"flag": 1,
"wikidataid": "Q114"
},
{
"id": 161,
"name": "Nigeria",
"iso3": "NGA",
"iso2": "NG",
"phonecode": "234",
"capital": "Abuja",
"currency": "NGN",
"native": "Nigeria",
"emoji": "🇳🇬",
"emojiu": "U+1F1F3 U+1F1EC",
"created_at": "2018-07-20T20:11:03.000000Z",
"updated_at": "2020-05-16T10:49:11.000000Z",
"flag": 1,
"wikidataid": "Q1033"
},
]
}
{
"status": "success",
"message": "Available Countries",
"data": [
{
"id": 83,
"name": "Ghana",
"iso3": "GHA",
"iso2": "GH",
"phonecode": "233",
"capital": "Accra",
"currency": "GHS",
"native": "Ghana",
"emoji": "🇬🇭",
"emojiu": "U+1F1EC U+1F1ED",
"created_at": "2018-07-20T20:11:03.000000Z",
"updated_at": "2020-05-16T10:49:11.000000Z",
"flag": 1,
"wikidataid": "Q117"
},
{
"id": 113,
"name": "Kenya",
"iso3": "KEN",
"iso2": "KE",
"phonecode": "254",
"capital": "Nairobi",
"currency": "KES",
"native": "Kenya",
"emoji": "🇰🇪",
"emojiu": "U+1F1F0 U+1F1EA",
"created_at": "2018-07-20T20:11:03.000000Z",
"updated_at": "2020-05-16T10:49:11.000000Z",
"flag": 1,
"wikidataid": "Q114"
},
{
"id": 161,
"name": "Nigeria",
"iso3": "NGA",
"iso2": "NG",
"phonecode": "234",
"capital": "Abuja",
"currency": "NGN",
"native": "Nigeria",
"emoji": "🇳🇬",
"emojiu": "U+1F1F3 U+1F1EC",
"created_at": "2018-07-20T20:11:03.000000Z",
"updated_at": "2020-05-16T10:49:11.000000Z",
"flag": 1,
"wikidataid": "Q1033"
},
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200 - application/json
OK
The response is of type object
.
curl --request GET \
--url http:///%7B{v2_url}%7D/metas/countries \
--header 'Authorization: Bearer <token>'
{
"status": "success",
"message": "Available Countries",
"data": [
{
"id": 83,
"name": "Ghana",
"iso3": "GHA",
"iso2": "GH",
"phonecode": "233",
"capital": "Accra",
"currency": "GHS",
"native": "Ghana",
"emoji": "🇬🇭",
"emojiu": "U+1F1EC U+1F1ED",
"created_at": "2018-07-20T20:11:03.000000Z",
"updated_at": "2020-05-16T10:49:11.000000Z",
"flag": 1,
"wikidataid": "Q117"
},
{
"id": 113,
"name": "Kenya",
"iso3": "KEN",
"iso2": "KE",
"phonecode": "254",
"capital": "Nairobi",
"currency": "KES",
"native": "Kenya",
"emoji": "🇰🇪",
"emojiu": "U+1F1F0 U+1F1EA",
"created_at": "2018-07-20T20:11:03.000000Z",
"updated_at": "2020-05-16T10:49:11.000000Z",
"flag": 1,
"wikidataid": "Q114"
},
{
"id": 161,
"name": "Nigeria",
"iso3": "NGA",
"iso2": "NG",
"phonecode": "234",
"capital": "Abuja",
"currency": "NGN",
"native": "Nigeria",
"emoji": "🇳🇬",
"emojiu": "U+1F1F3 U+1F1EC",
"created_at": "2018-07-20T20:11:03.000000Z",
"updated_at": "2020-05-16T10:49:11.000000Z",
"flag": 1,
"wikidataid": "Q1033"
},
]
}