> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ceibo.me/llms.txt
> Use this file to discover all available pages before exploring further.

# List cities

> Paginated list of cities. Filter by country, search by name, or both.



## OpenAPI

````yaml GET /cities
openapi: 3.1.0
info:
  title: Ceibo API
  description: >-
    Travel platform data API: countries, cities, points of interest, walking
    tours, and entry requirements.
  version: 1.0.0
  contact:
    name: Ceibo Support
    email: support@ceibo.me
    url: https://developer.ceibo.me
servers:
  - url: https://api.ceibo.me/v1
    description: Production
security:
  - apiKey: []
paths:
  /cities:
    get:
      summary: List cities
      description: Paginated list of cities. Filter by country, search by name, or both.
      parameters:
        - name: countryId
          in: query
          required: false
          schema:
            type: integer
        - name: search
          in: query
          description: Free-text match against the city name.
          required: false
          schema:
            type: string
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
      responses:
        '200':
          description: Paginated list of cities.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedCities'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    PaginatedCities:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/City'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
    City:
      type: object
      required:
        - id
        - name
        - countryId
        - location
        - zoom
        - isCapital
        - createdAt
      properties:
        id:
          type: integer
          example: 1
        name:
          type: string
          example: Buenos Aires
        countryId:
          type: integer
          example: 10
        location:
          $ref: '#/components/schemas/Location'
        zoom:
          type: integer
          example: 12
        description:
          type:
            - string
            - 'null'
          example: Capital and largest city of Argentina
        imageUrl:
          type:
            - string
            - 'null'
          example: https://cdn.ceibo.me/cities/buenos-aires.jpg
        timezone:
          type:
            - string
            - 'null'
          example: America/Argentina/Buenos_Aires
        isCapital:
          type: boolean
          example: true
        createdAt:
          type: string
          format: date-time
          example: '2024-01-15T10:30:00.000Z'
    PaginationMeta:
      type: object
      required:
        - page
        - limit
        - total
        - totalPages
      properties:
        page:
          type: integer
          example: 1
        limit:
          type: integer
          example: 20
        total:
          type: integer
          example: 195
        totalPages:
          type: integer
          example: 10
    Error:
      type: object
      required:
        - statusCode
        - code
        - message
        - timestamp
        - path
      properties:
        statusCode:
          type: integer
          example: 404
        code:
          type: string
          example: NOT_FOUND
        message:
          type: string
          example: Country with id 9999 not found
        timestamp:
          type: string
          format: date-time
          example: '2026-04-30T10:00:00.000Z'
        path:
          type: string
          example: /v1/countries/9999
    Location:
      type: object
      required:
        - latitude
        - longitude
      properties:
        latitude:
          type: number
          example: -34.603722
        longitude:
          type: number
          example: -58.381592
  responses:
    Unauthorized:
      description: Missing, malformed, revoked, or unknown API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Tier quota or burst limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key minted at developer.ceibo.me. Send on every request.

````