---
title: "Get a specific flight by flight number"
url: "https://devportal.jilson.dev/apis/kong-air-ap-is-1-0-0/versions/7a8b8282-7fdc-432a-a618-88582e8fb712/operations/get-flight-by-number"
---

> Full API specification: https://devportal.jilson.dev/apis/kong-air-ap-is-1-0-0/versions/7a8b8282-7fdc-432a-a618-88582e8fb712.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.1.0
info:
  title: KongAir APIs
  version: 1.0.0
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
      tags:
        - Flights
      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
          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
security:
  - ApiKeyAuth: []
  - BearerAuth: []
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
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
```
