---
title: "List the cities of a country"
method: GET
path: "/data/cities"
tags: ["Cities"]
---

# List the cities of a country

`GET /data/cities`

## Request

- Base URL: `https://api.liteapi.travel/v3.0`
- URL: `https://api.liteapi.travel/v3.0/data/cities`
- Auth: API key in header `X-API-Key`

## Overview

Get a list of all cities within a specific country. Perfect for building location dropdowns and city selection interfaces.

## When to Use

- **City dropdowns** - Populate city selection lists
- **Location filters** - Filter hotels by city
- **Geographic data** - Get city lists for specific countries
- **Form autocomplete** - Build city autocomplete features

## What You Get

- **City list** - All cities in the specified country
- **City names** - Formatted city names ready for display

## Quick Start

Provide the `countryCode` in ISO-2 format (e.g., "US", "GB"). Returns all cities in that country. Use the [Get Country List endpoint](/v3.0.0/reference/get_data-countries) to get country codes.

## Query parameters

- `countryCode` string, required
- `timeout` number, float

## Response `200`

OK

- object
  - `data` object[]
    - `city` string, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/liteapi/apis/api-hotel-data.md) - [All operations](https://skmtc.dev/liteapi/apis/api-hotel-data/llms.txt) - [OpenAPI document](https://skmtc.dev/liteapi/apis/api-hotel-data/revisions/f89f11b63949?raw)
