---
title: "Get a specific flight by flight number"
url: "https://dev.kong-air.com/apis/kong-air-flights-0/versions/1dcd5a8f-ea85-46be-942c-c4cc0059aa48/operations/get-flight-by-number"
---

> Full API specification: https://dev.kong-air.com/apis/kong-air-flights-0/versions/1dcd5a8f-ea85-46be-942c-c4cc0059aa48.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 Service
  version: 0.1.0
servers:
  - description: KongAir API Server
    url: https://api.kong-air.com
paths:
  /flights/{flightNumber}:
    get:
      description: |
        Returns a specific flight given its flight number
      operationId: get-flight-by-number
      parameters:
        - description: The flight number
          in: path
          name: flightNumber
          required: true
          schema:
            type: string
          style: simple
      responses:
        "200":
          content:
            application/json:
              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"
                    }
              schema:
                $ref: "#/components/schemas/Flight"
          description: Successful response with the requested flight
          headers:
            hostname:
              description: The hostname of the machine fulfilling the request.
              schema:
                type: string
        "404":
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                type: object
          description: Flight not found
      summary: Get a specific flight by flight number
      tags:
        - flight-data
components:
  schemas:
    Flight:
      properties:
        number:
          type: string
        route_id:
          type: string
        scheduled_arrival:
          format: date-time
          type: string
        scheduled_departure:
          format: date-time
          type: string
      required:
        - number
        - route_id
        - scheduled_departure
        - scheduled_arrival
      type: object
```
