> For the complete documentation index, see [llms.txt](https://apidocs.mytravellerschoice.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.mytravellerschoice.com/hotel-content-api/content-api/location-master/countries.md).

# countries

Returns a list of available countries,

Country represents the highest level in our location tree. While we don't allow searches by country, this information is included for organizational purposes (to group destinations)  and the country codes are used in other API operations, such as defining the sourceMarket, Nationality in the Availability function of the Hotel Booking API.

## Countries API

<mark style="color:green;">`GET`</mark> `/api/v1/hotel/content-api/locations/countries`

**Headers**

| Name            | Value                   |
| --------------- | ----------------------- |
| Content-Type    | `application/json`      |
| Authorization   | `Bearer <Access token>` |
| Accept-Encoding | `gzip`                  |

**Query Params**

| Name     | Type   | Description |
| -------- | ------ | ----------- |
| `syncId` | string | `<syncId>`  |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "success": true,
    "data": {
        "syncId": "56f0073c97cbfb66578b006f909b7a4bf26067d9964d8e9c9dd4ef08f9bbcfee",
        "total": 221,
        "from": 1,
        "to": 221,
        "countries": [
            {
                "countryId": 100001,
                "countryName": "jordan",
                "isocode": "ZW",
                "phonecode": "+263"
            },
            {
                "countryId": 100002,
                "countryName": "nepal",
                "isocode": "NP",
                "phonecode": "+977"
            },
            {
                "countryId": 100004,
                "countryName": "France",
                "isocode": "FR",
                "phonecode": "+435"
            },
            {
                "countryId": 100005,
                "countryName": "morocco",
                "isocode": "MA",
                "phonecode": "+212"
            }
		]
	}
}	
```

{% endtab %}
{% endtabs %}
