Country Codes
GET
/api/v1/generic-api-service/content/country?page=0&size=400
Returns the full list of supported country codes. This request does not require a body. Use the returned id value as the countryId when calling the Hotels by Country endpoint to pull hotels for a specific country.
- cURL
- Request
- Response
- Request Details
- Response Details
- Errors
curl --location 'https://api.etscore.com/api/v1/generic-api-service/content/country?page=0&size=400' \
--header 'Accept-Language: En-US' \
--header 'X-CURRENCY: EUR' \
--header 'Authorization: Bearer <token>'
/// no request parameter required
[
0: {
"id": "549",
"code": "549",
"name": {
"translations": {
"en": "Turkey",
"tr": "Türkiye"
}
}
},
1: {
"id": "709",
"code": "709",
"name": {
"translations": {
"de": "Deutschland",
"ru": "Германия",
"en": "Germany",
"tr": "Almanya"
}
}
},
2: {
"id": "631",
"code": "631",
"name": {
"translations": {
"ru": "США",
"en": "United States of America",
"tr": "Birleşik Devletler"
}
}
}
]
| Name | Type | Required | Description |
|---|---|---|---|
| page | int | No | Pagination offset. Integer starting at 0. |
| size | int | No | The number of countries requested in the response. |
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Unique identifier of the country. Use this value as countryId in the Hotels by Country endpoint. |
| code | string | Yes | Country code. Matches the id value. |
| name | object | Yes | Container for the localized country names. |
| name/translations | object | Yes | Localized country names keyed by language code. |
| name/translations/en | string | Yes | English name. |
| name/translations/tr | string | Yes | Turkish name. |
| name/translations/ru | string | No | Russian name. Present for most countries. |
| name/translations/de | string | No | German name. Present for a subset of countries. |
This endpoint does not define service-specific errors. Common gateway and authentication errors still apply — see the central Error Codes reference.