ATIS Relay Live traffic API

SWIM flight state, bounding box and airport boards, and TFMS programs.

GitHub OpenAPI

Operations 11

GET /api/traffic/flights Live flights near a point, airport, or operator #
GET /api/traffic/flights/box Live flights in a bounding box #
GET /api/traffic/flights/gufi/{gufi} Live flight by GUFI #
GET /api/traffic/flights/{ident} Live flight by ident #
GET /api/traffic/airports/{airport}/arrivals Current arrivals #
GET /api/traffic/airports/{airport}/departures Current departures #
GET /api/traffic/ground_stops Active ground stops #
GET /api/traffic/ground_delay_programs Active ground delay programs #
GET /api/traffic/restrictions Active NAS flow restrictions #
GET /api/traffic/advisories Recent ATCSCC advisories #
GET /api/traffic/delays TFMS delays for one airport #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/atisrelay-com:atisrelay-com-live-traffic-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

atisrelay-com-live-traffic-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ATIS Relay Live traffic API
  version: 1.0.0
  termsOfService: https://atisrelay.com/terms
  contact:
    name: Torrey Systems, LLC
    url: https://atisrelay.com/contact
    email: support@atisrelay.com
  description: 'The ATIS Relay API provides D-ATIS, ATIS and AWOS transcription, live traffic, weather, airport data, aircraft registry, schedules, and aircraft activity subscriptions.


    Commercial use requires a commercial license via the contact page at https://atisrelay.com/contact. Phone-line (ATIS/AWOS dial) transcription is licensed for aviation use only. Pricing is published at https://atisrelay.com/pricing.


    Publisher: Torrey Systems, LLC.


    Authenticate with the X-Api-Key header. Create a key from an ATIS Relay account at https://atisrelay.com/account/api-key.'
servers:
- url: https://atisrelay.com
security:
- apiKey: []
tags:
- name: Live traffic
  description: SWIM flight state, bounding box and airport boards, and TFMS programs.
paths:
  /api/traffic/flights:
    get:
      operationId: getTrafficFlights
      tags:
      - Live traffic
      summary: Live flights near a point, airport, or operator
      description: Returns live flights near a point or airport, or the current flight for an operator and flight number. Nearby and box searches also include uncorrelated radar targets as items with kind radar_target. Any valid API key can call this endpoint. Free accounts get 1000 traffic requests a month. ATIS Relay Plus includes 10000. Use one of lat and lon, airport, or operator_icao and flight_number. Optional radius_nm defaults to 50 and is capped at 250. Nearby results default to airborne flights. Pass include_ground=true to include completed, dropped, and on-ground statuses. Radar targets are capped separately so they do not crowd out flights.
      parameters:
      - $ref: '#/components/parameters/LatQuery'
      - $ref: '#/components/parameters/LonQuery'
      - name: airport
        in: query
        schema:
          type: string
        description: ICAO or FAA location id.
      - name: operator_icao
        in: query
        schema:
          type: string
      - name: flight_number
        in: query
        schema:
          type: string
      - $ref: '#/components/parameters/RadiusNmQuery'
      - $ref: '#/components/parameters/IncludeGroundQuery'
      responses:
        '200':
          description: Live flights.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficFlightsResponse'
              example:
                lat: 37.461
                lon: -122.115
                radius_nm: 25.0
                flights:
                - gufi: 550e8400-e29b-41d4-a716-446655440000
                  ident: AAL100
                  operator_icao: AAL
                  flight_number: '100'
                  lat: 37.461
                  lon: -122.115
                  position_age: 12
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/TrafficUnavailable'
  /api/traffic/flights/box:
    get:
      operationId: getTrafficFlightsBox
      tags:
      - Live traffic
      summary: Live flights in a bounding box
      description: Returns live flights and uncorrelated radar targets inside a bounding box. Any valid API key can call this endpoint. Requires min_lat, min_lon, max_lat, and max_lon. Latitude span and longitude span are each capped at 10 degrees. Results default to airborne flights. Pass include_ground=true to include completed, dropped, and on-ground statuses. Results are capped at 100 compact flight objects plus 100 radar targets. Counts as one traffic request per ten items returned, at least one.
      parameters:
      - name: min_lat
        in: query
        required: true
        schema:
          type: number
      - name: min_lon
        in: query
        required: true
        schema:
          type: number
      - name: max_lat
        in: query
        required: true
        schema:
          type: number
      - name: max_lon
        in: query
        required: true
        schema:
          type: number
      - $ref: '#/components/parameters/IncludeGroundQuery'
      responses:
        '200':
          description: Compact flights in the box.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficBoxResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/TrafficUnavailable'
  /api/traffic/flights/gufi/{gufi}:
    get:
      operationId: getTrafficFlightByGufi
      tags:
      - Live traffic
      summary: Live flight by GUFI
      description: Same payload as the ident lookup, keyed by GUFI. Any valid API key can call this endpoint. Missing flights return 404.
      parameters:
      - name: gufi
        in: path
        required: true
        schema:
          type: string
        example: 550e8400-e29b-41d4-a716-446655440000
      responses:
        '200':
          description: Flight state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficFlightResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/TrafficUnavailable'
  /api/traffic/flights/{ident}:
    get:
      operationId: getTrafficFlightByIdent
      tags:
      - Live traffic
      summary: Live flight by ident
      description: Returns the latest SWIM flight state for an aircraft identification. Any valid API key can call this endpoint. Idents are matched case-insensitively. Missing flights return 404 and count as a traffic request. Free accounts get 1000 traffic requests a month. ATIS Relay Plus includes 10000. After the included requests, add prepaid credits or a card, or the API returns 402. Free keys without a payment method are not billed. If the traffic store is unset or unreachable, the API returns 503 and does not count the request. Ident and GUFI lookups include predicted_arrival with a UTC at and a short basis code, plus a delay object.
      parameters:
      - name: ident
        in: path
        required: true
        schema:
          type: string
        example: AAL100
      responses:
        '200':
          description: Flight state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficFlightResponse'
              example:
                gufi: 550e8400-e29b-41d4-a716-446655440000
                ident: AAL100
                operator_icao: AAL
                flight_number: '100'
                departure: KSFO
                arrival: KJFK
                status: ACTIVE
                eta: '2026-03-15T22:10:00Z'
                etd: '2026-03-15T16:00:00Z'
                lat: 39.861667
                lon: -104.673167
                altitude: 36000
                ground_speed: 447
                track: 268.0
                aircraft_type: B738
                route: KSFO DCT KJFK
                message_type: TRACK_INFORMATION
                position_ts: '2026-03-15T18:22:00Z'
                updated_at: '2026-03-15T18:22:00Z'
                position_age: 30
                predicted_arrival:
                  at: '2026-03-15T22:24:00Z'
                  basis: speed
                delay:
                  status: on_time
                  text: On time.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/TrafficUnavailable'
  /api/traffic/airports/{airport}/arrivals:
    get:
      operationId: getTrafficAirportArrivals
      tags:
      - Live traffic
      summary: Current arrivals
      description: Returns current flights whose arrival field matches the airport. Any valid API key can call this endpoint. Pass ICAO or FAA location id. Results are capped at 100. Unknown airports return 404. Counts as one traffic request per ten flights returned, at least one. An empty list still counts as one request.
      parameters:
      - $ref: '#/components/parameters/AirportPath'
      responses:
        '200':
          description: Arrival board.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficBoardResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/TrafficUnavailable'
  /api/traffic/airports/{airport}/departures:
    get:
      operationId: getTrafficAirportDepartures
      tags:
      - Live traffic
      summary: Current departures
      description: Returns current flights whose departure field matches the airport. Same access, caps, billing, and payload shape as arrivals, with board set to departures.
      parameters:
      - $ref: '#/components/parameters/AirportPath'
      responses:
        '200':
          description: Departure board.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficBoardResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/TrafficUnavailable'
  /api/traffic/ground_stops:
    get:
      operationId: getTrafficGroundStops
      tags:
      - Live traffic
      summary: Active ground stops
      description: Active FAA ground stops. Any valid API key can call this endpoint. It uses the same metering and free monthly allowance as live traffic. When Redis is available and the TFMS feed has no current records, the array is empty. If the traffic store is unset or unreachable, the API returns 503 and does not count the request.
      responses:
        '200':
          description: Ground stops.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroundStopsResponse'
              example:
                ground_stops:
                - id: ORD
                  kind: gs
                  airport: ORD
                  status: ACTIVE
                  start: '2026-11-15T18:00:00Z'
                  end: '2026-11-15T22:00:00Z'
                  cause: EQUIPMENT
                  avg_delay: 40.0
                  max_delay: 90
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/TrafficUnavailable'
  /api/traffic/ground_delay_programs:
    get:
      operationId: getTrafficGroundDelayPrograms
      tags:
      - Live traffic
      summary: Active ground delay programs
      description: Active ground delay programs. Same key access, metering, empty-result, and 503 behavior as ground stops.
      responses:
        '200':
          description: Ground delay programs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroundDelayProgramsResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/TrafficUnavailable'
  /api/traffic/restrictions:
    get:
      operationId: getTrafficRestrictions
      tags:
      - Live traffic
      summary: Active NAS flow restrictions
      description: Active NAS flow restrictions, including MIT, MINIT, APREQ, STOP, and TBM. Same key access, metering, empty-result, and 503 behavior as ground stops.
      responses:
        '200':
          description: Restrictions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestrictionsResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/TrafficUnavailable'
  /api/traffic/advisories:
    get:
      operationId: getTrafficAdvisories
      tags:
      - Live traffic
      summary: Recent ATCSCC advisories
      description: Recent ATCSCC advisories. Same key access, metering, empty-result, and 503 behavior as ground stops.
      responses:
        '200':
          description: Advisories.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficAdvisoriesResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/TrafficUnavailable'
  /api/traffic/delays:
    get:
      operationId: getTrafficDelays
      tags:
      - Live traffic
      summary: TFMS delays for one airport
      description: Ground stops, ground delay programs, restrictions, advisories, and airport configuration for one airport. Requires airport (ICAO or FAA location id). Same key access and metering as ground stops. Unknown airports return 404. A known airport with no current TFMS records returns 200 with empty lists.
      parameters:
      - name: airport
        in: query
        required: true
        schema:
          type: string
        example: KORD
      responses:
        '200':
          description: Airport delay package.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficDelaysResponse'
              example:
                airport: KORD
                nas_id: ORD
                ground_stops: []
                ground_delay_programs:
                - id: ORD
                  kind: gdp
                  airport: ORD
                  cause: THUNDERSTORMS
                  avg_delay: 46.0
                  delay_mode: UDP
                restrictions: []
                advisories: []
                config:
                  id: ORD
                  airport: ORD
                  arr_runways: 28C,28R
                  arr_rate: 80
                  weather: VMC
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/TrafficUnavailable'
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized
    TrafficUnavailable:
      description: Live traffic or TFMS data is unset or unreachable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Traffic data is unavailable
    TooManyRequests:
      description: Daily, burst, monthly phone-line, or bulk 5-minute limit exceeded.
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Rate limit exceeded
            tier: free
            limit: 500
            reset_at: '2026-11-17T00:00:00Z'
    PaymentRequired:
      description: A free API key cannot start a new phone-line dial, or a live traffic request needs prepaid credits or a card.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            dial:
              value:
                error: Starting a new phone-line capture needs an ATIS Relay subscription
            traffic:
              value:
                error: Add credits or a card to continue using live traffic.
    BadRequest:
      description: A required parameter is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: icao is required
    NotFound:
      description: Resource unavailable, including an expired or invalid audio link.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Not found
    Forbidden:
      description: The key's plan cannot use this endpoint, or a personal API key was used on an app-only endpoint.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            recents:
              value:
                error: This endpoint is for the ATIS Relay app, not personal API keys
  schemas:
    TfmsConfig:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        airport:
          type: string
        facility:
          type: string
        arr_runways:
          type: string
        dep_runways:
          type: string
        arr_rate:
          type: number
        dep_rate:
          type: number
        weather:
          type: string
        event_time:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    RestrictionsResponse:
      allOf:
      - type: object
        properties:
          restrictions:
            type: array
            items:
              $ref: '#/components/schemas/TfmsRestriction'
    OfficialSourceUrl:
      type: string
      format: uri
    TrafficFlightResponse:
      allOf:
      - $ref: '#/components/schemas/TrafficFlight'
      - type: object
        properties:
          predicted_arrival:
            $ref: '#/components/schemas/PredictedArrival'
    PredictedArrival:
      type: object
      properties:
        at:
          type: string
          format: date-time
        basis:
          type: string
          enum:
          - cta
          - tfms
          - sfdps
          - filed
          - gdp
          - gs
          - nas
          - speed
          - holding
          - landed
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        hint:
          type: string
        tier:
          type: string
        limit: {}
        reset_at:
          type:
          - string
          - 'null'
          format: date-time
        number:
          type: string
        icao:
          type: string
        notams:
          type: array
          items:
            $ref: '#/components/schemas/Notam'
      additionalProperties: true
    TfmsProgram:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        kind:
          type: string
        airport:
          type: string
        fca:
          type: string
        ctop_id:
          type: string
        center:
          type: string
        status:
          type: string
        start:
          type: string
          format: date-time
        end:
          type: string
          format: date-time
        cause:
          type: string
        avg_delay:
          type: number
        max_delay:
          type: number
        delay_mode:
          type: string
        scope:
          type: string
        element_type:
          type: string
        updated_at:
          type: string
          format: date-time
        official_source_url:
          $ref: '#/components/schemas/OfficialSourceUrl'
    FlightDelay:
      type: object
      properties:
        status:
          type: string
          enum:
          - on_time
          - delayed
          - likely
        text:
          type: string
        kind:
          type: string
        airport:
          type: string
        cause:
          type: string
        avg_delay_min:
          type: integer
        until:
          type: string
          format: date-time
        controlled_departure:
          type: string
          format: date-time
    TrafficFlight:
      type: object
      properties:
        kind:
          type: string
          description: radar_target for uncorrelated radar returns. Omitted for flights.
        id:
          type: string
          description: Stable id for a radar target.
        gufi:
          type: string
        ident:
          type: string
        operator_icao:
          type: string
        flight_number:
          type: string
        registration:
          type: string
        departure:
          type: string
        arrival:
          type: string
        status:
          type: string
        eta:
          type: string
          format: date-time
        etd:
          type: string
          format: date-time
        lat:
          type: number
        lon:
          type: number
        altitude:
          type: number
        ground_speed:
          type: number
        track:
          type: number
        aircraft_type:
          type: string
        squawk:
          type: string
        route:
          type: string
        message_type:
          type: string
        position_ts:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        position_age:
          type: integer
        projected:
          $ref: '#/components/schemas/ProjectedPosition'
        edct:
          type: string
          format: date-time
        delay:
          $ref: '#/components/schemas/FlightDelay'
    CompactTrafficFlight:
      type: object
      properties:
        kind:
          type: string
          description: radar_target for uncorrelated radar returns. Omitted for flights.
        id:
          type: string
          description: Stable id for a radar target.
        gufi:
          type: string
        ident:
          type: string
        operator_icao:
          type: string
        flight_number:
          type: string
        registration:
          type: string
        departure:
          type: string
        arrival:
          type: string
        status:
          type: string
        eta:
          type: string
          format: date-time
        etd:
          type: string
          format: date-time
        lat:
          type: number
        lon:
          type: number
        altitude:
          type: number
        ground_speed:
          type: number
        track:
          type: number
        aircraft_type:
          type: string
        squawk:
          type: string
        projected:
          $ref: '#/components/schemas/ProjectedPosition'
    TrafficDelaysResponse:
      allOf:
      - type: object
        properties:
          airport:
            type: string
          nas_id:
            type: string
          ground_stops:
            type: array
            items:
              $ref: '#/components/schemas/TfmsProgram'
          ground_delay_programs:
            type: array
            items:
              $ref: '#/components/schemas/TfmsProgram'
          restrictions:
            type: array
            items:
              $ref: '#/components/schemas/TfmsRestriction'
          advisories:
            type: array
            items:
              $ref: '#/components/schemas/TfmsAdvisory'
          config:
            allOf:
            - $ref: '#/components/schemas/TfmsConfig'
    GroundDelayProgramsResponse:
      allOf:
      - type: object
        properties:
          ground_delay_programs:
            type: array
            items:
              $ref: '#/components/schemas/TfmsProgram'
    TrafficBoxResponse:
      allOf:
      - type: object
        properties:
          min_lat:
            type: number
          min_lon:
            type: number
          max_lat:
            type: number
          max_lon:
            type: number
          flights:
            type: array
            items:
              $ref: '#/components/schemas/CompactTrafficFlight'
    Notam:
      type: object
      properties:
        number:
          type: string
        location:
          type: string
        classification:
          type: string
        text:
          type: string
        type:
          type: string
        effective_dt:
          type: string
          format: date-time
        effective_end_dt:
          type: string
          format: date-time
        age:
          type: string
    TfmsRestriction:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        restriction_id:
          type: string
        facility:
          type: string
        action:
          type: string
        category:
          type: string
        type:
          type: string
        nas_elements: {}
        airports: {}
        start:
          type: string
          format: date-time
        end:
          type: string
          format: date-time
        mit_value:
          type: number
        reason:
          type: string
        qualifier:
          type: string
        updated_at:
          type: string
          format: date-time
    ProjectedPosition:
      type:
      - object
      - 'null'
      properties:
        lat:
          type: number
        lon:
          type: number
        as_of:
          type: string
          format: date-time
        source_age_seconds:
          type: integer
        method:
          type: string
    TrafficBoardResponse:
      allOf:
      - type: object
        properties:
          board:
            type: string
            enum:
            - arrivals
            - departures
          airport:
            type: string
          flights:
            type: array
            items:
              $ref: '#/components/schemas/CompactTrafficFlight'
    TrafficFlightsResponse:
      allOf:
      - type: object
        properties:
          lat:
            type: number
          lon:
            type: number
          radius_nm:
            type: number
          airport:
            type: string
          operator_icao:
            type: string
          flight_number:
            type: string
          flights:
            type: array
            items:
              $ref: '#/components/schemas/TrafficFlight'
    GroundStopsResponse:
      allOf:
      - type: object
        properties:
          ground_stops:
            type: array
            items:
              $ref: '#/components/schemas/TfmsProgram'
    TfmsAdvisory:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        number:
          type: string
        origin:
          type: string
        issue_time:
          type: string
          format: date-time
        title:
          type: string
        text:
          type: string
        advisory_type:
          type: string
        start:
          type: string
          format: date-time
        end:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    TrafficAdvisoriesResponse:
      allOf:
      - type: object
        properties:
          advisories:
            type: array
            items:
              $ref: '#/components/schemas/TfmsAdvisory'
  parameters:
    LonQuery:
      name: lon
      in: query
      schema:
        type: number
    IncludeGroundQuery:
      name: include_ground
      in: query
      schema:
        type: boolean
      description: When true, include completed, dropped, and on-ground flights. Nearby and box searches default to airborne flights.
    LatQuery:
      name: lat
      in: query
      schema:
        type: number
    RadiusNmQuery:
      name: radius_nm
      in: query
      schema:
        type: number
    AirportPath:
      name: airport
      in: path
      required: true
      schema:
        type: string
      example: KSFO
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Personal ATIS Relay API key.
externalDocs:
  description: ATIS Relay API docs
  url: https://atisrelay.com/api_docs