GET /v1.1/country/:id
Returns a single country by its ID.
Request
GET /v1.1/country/:id
URL Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The 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
| Field | Type | Description |
|---|---|---|
code | string | ISO 3166-1 alpha-3 country code |
title | string | Country name |
citizenship | string | Citizenship label |
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid API key |
500 | Internal Server Error — country not found or upstream query failure |