---
title: "Get a specific flight by flight number"
url: "https://portal.kongair.dev/apis/flights-api/versions/74c7c2b2-fdaf-4ab3-9579-5f636eaa7370/operations/get-flight-by-number"
---

> Full API specification: https://portal.kongair.dev/apis/flights-api/versions/74c7c2b2-fdaf-4ab3-9579-5f636eaa7370.md

# Get a specific flight by flight number

`GET` `/flights/{flightNumber}`

Operation ID: `get-flight-by-number`

Returns a specific flight given its flight number

## Path parameters

- `flightNumber` (string, required) - The flight number

## Responses

- `200` - Successful response with the requested flight
- `404` - Flight not found

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Flights API
  version: "1.1"
servers:
  - url: https://api.kongair.dev
    description: KongAir API Dev
paths:
  /flights/{flightNumber}:
    get:
      summary: Get a specific flight by flight number
      description: Returns a specific flight given its flight number
      operationId: get-flight-by-number
      parameters:
        - name: flightNumber
          in: path
          description: The flight number
          required: true
          style: simple
          schema:
            type: string
      responses:
        "200":
          description: Successful response with the requested flight
          headers:
            hostname:
              description: The hostname of the machine fulfilling the request.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Flight"
              examples:
                Example Flight KD924:
                  value:
                    number: KD924
                    route_id: LHR-SFO
                    scheduled_departure: 2024-03-20T09:12:28Z
                    scheduled_arrival: 2024-03-20T19:12:28Z
        "404":
          description: Flight not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
components:
  schemas:
    Flight:
      type: object
      properties:
        number:
          type: string
        route_id:
          type: string
        scheduled_departure:
          type: string
          format: date-time
        scheduled_arrival:
          type: string
          format: date-time
      required:
        - number
        - route_id
        - scheduled_departure
        - scheduled_arrival
```
