Skip to main content

GET /v1.1/country/:id

Returns a single country by its ID.

Request

GET /v1.1/country/:id

URL Parameters

ParameterTypeRequiredDescription
idstringYesThe country ID

Example Request

curl -X GET "https://api.rccl.ro/v1.1/country/101817e2-3304-3987-baad-aba1e5577909" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"

Response

200 OK

Returns a single country resource.

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"
}
},
"links": {
"self": "/v1.1/country/101817e2-3304-3987-baad-aba1e5577909"
},
"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 — country not found or upstream query failure