Skip to main content

GET /v1.1/country

Returns a list of all supported countries.

Request

GET /v1.1/country

Example Request

curl -X GET "https://api.rccl.ro/v1.1/country" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"

Response

200 OK

Returns an array of country resources.

Response body:

{
"data": [
{
"type": "country",
"id": "101817e2-3304-3987-baad-aba1e5577909",
"attributes": {
"code": "MDA",
"title": "Republica Moldova",
"citizenship": "Rep. Moldova"
},
"links": {
"self": "/v1.1/country/101817e2-3304-3987-baad-aba1e5577909"
}
},
{
"type": "country",
"id": "20540665-adc9-33e8-9eaf-76d30821c163",
"attributes": {
"code": "ROU",
"title": "Romania",
"citizenship": "Romana"
},
"links": {
"self": "/v1.1/country/20540665-adc9-33e8-9eaf-76d30821c163"
}
}
],
"meta": {
"count": 2
},
"jsonapi": {
"version": "1.0"
}
}

Country Attributes

FieldTypeDescription
codestringISO 3166-1 alpha-3 country code
titlestringCountry name
citizenshipstringCitizenship label

Error Responses

StatusDescription
401Unauthorized — missing or invalid API key
500Internal Server Error — upstream query failure