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

# Get a city by slug

> Returns a single city record identified by its unique slug.



## OpenAPI

````yaml /docs/openapi/openapi.json get /v2/cities/{slug}
openapi: 3.1.0
info:
  title: PREXSELL REST v2
  version: 5.97.1
  description: REST API for the PREXSELL bus booking management platform.
servers:
  - url: https://staging.api.prexsell.com
    description: Staging
  - url: https://api.prexsell.com
    description: Production
security: []
paths:
  /v2/cities/{slug}:
    get:
      tags:
        - Cities
      summary: Get a city by slug
      description: Returns a single city record identified by its unique slug.
      operationId: getCityBySlug
      parameters:
        - schema:
            type: string
            description: URL-friendly slug of the city.
            example: kyiv
          required: true
          description: URL-friendly slug of the city.
          name: slug
          in: path
      responses:
        '200':
          description: A single city record with name, slug, country, and timezone.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      city:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          slug:
                            type: string
                          country:
                            type: string
                            enum:
                              - UA
                              - TR
                              - PL
                              - CZ
                              - IT
                              - DE
                              - SK
                              - HU
                              - BE
                              - NL
                              - RO
                              - BG
                              - FR
                              - AT
                              - LT
                              - LV
                              - EE
                              - ES
                              - LU
                              - CH
                              - GR
                              - MD
                              - SI
                          timeZone:
                            type:
                              - string
                              - 'null'
                        required:
                          - id
                          - name
                          - slug
                          - country
                          - timeZone
                        additionalProperties: false
                    required:
                      - city
                required:
                  - data
                example:
                  data:
                    city:
                      id: cld1a2b3c4d5e6f7g8h9i0j1
                      name: Київ
                      slug: kyiv
                      country: UA
                      timeZone: Europe/Kyiv
        '404':
          description: Standard error response body.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          example: AUTH_INVALID_CREDENTIALS
                        errorCode:
                          type: string
                          example: UNAUTHORIZED
                        details: {}
                      required:
                        - message
                required:
                  - errors
                example:
                  errors:
                    - message: RESOURCE_NOT_FOUND
                      errorCode: NOT_FOUND

````