---
updatedAt: 2026-04-24T08:36:00.000Z
agentTools:
  projectIndex: https://docs.liteapi.travel/llms.txt
---

# Get airline by IATA code

## Overview

Retrieve full details for a specific airline using its 2-letter IATA code.

## When to Use

- **Airline display** - Show airline name, logo, and alliance for a given IATA code
- **Flight result enrichment** - Fetch airline details to display alongside search results
- **Data validation** - Verify an airline code and retrieve its metadata

## What You Get

- **Airline details** including name, IATA/ICAO codes, and country
- **Alliance membership** (Star Alliance, oneworld, SkyTeam, or Vanilla Alliance)
- **Logo URL** for displaying the airline's logo in your UI
- **Active status** indicating whether the airline is currently operating

## Quick Start

Provide the 2-letter IATA code (e.g., `AA` for American Airlines) in the URL path.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "API: Flights",
    "version": "3.0.0",
    "description": "The Flights API provides endpoints for searching flights, managing bookings, and accessing static flight data including airlines and airports."
  },
  "servers": [
    {
      "url": "https://api.liteapi.travel/v3.0"
    }
  ],
  "security": [
    {
      "apikeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "apikeyAuth": {
        "name": "X-API-Key",
        "type": "apiKey",
        "in": "header"
      }
    },
    "schemas": {
      "Airline": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean",
            "description": "Whether the airline is currently active"
          },
          "alliance": {
            "type": "string",
            "description": "Airline alliance membership (star_alliance, oneworld, skyteam, vanilla_alliance)"
          },
          "callsign": {
            "type": "string",
            "description": "Airline callsign"
          },
          "country": {
            "type": "string",
            "description": "Country of origin"
          },
          "iata": {
            "type": "string",
            "description": "2-letter IATA airline code"
          },
          "icao": {
            "type": "string",
            "description": "3-letter ICAO airline code"
          },
          "logo": {
            "type": "string",
            "description": "URL to airline logo"
          },
          "name": {
            "type": "string",
            "description": "Airline name"
          }
        },
        "description": "Full airline details including name, codes, alliance, and logo"
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "integer",
                "description": "Numeric error code"
              },
              "message": {
                "type": "string",
                "description": "Short error message"
              },
              "description": {
                "type": "string",
                "description": "Detailed error description"
              },
              "key": {
                "type": "string",
                "description": "JSON path to the offending request field (e.g. bodyRequest.offerId, query.airlinePnr). Present on validation and client-input errors; omitted on auth and server-side errors.",
                "example": "bodyRequest.offerId"
              }
            },
            "description": "Error details"
          }
        },
        "description": "Standard error response envelope",
        "example": {
          "error": {
            "code": 4000,
            "message": "bad request",
            "description": "invalid flight extra charges: usePaymentSdk must be true for Stripe bookings"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Airlines",
      "description": "Retrieve airline information and IATA codes"
    }
  ],
  "paths": {
    "/data/flights/airlines/iatas/{iataCode}": {
      "get": {
        "tags": [
          "Airlines"
        ],
        "summary": "Get airline by IATA code",
        "description": "## Overview\n\nRetrieve full details for a specific airline using its 2-letter IATA code.\n\n## When to Use\n\n- **Airline display** - Show airline name, logo, and alliance for a given IATA code\n- **Flight result enrichment** - Fetch airline details to display alongside search results\n- **Data validation** - Verify an airline code and retrieve its metadata\n\n## What You Get\n\n- **Airline details** including name, IATA/ICAO codes, and country\n- **Alliance membership** (Star Alliance, oneworld, SkyTeam, or Vanilla Alliance)\n- **Logo URL** for displaying the airline's logo in your UI\n- **Active status** indicating whether the airline is currently operating\n\n## Quick Start\n\nProvide the 2-letter IATA code (e.g., `AA` for American Airlines) in the URL path.",
        "parameters": [
          {
            "name": "iataCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "2-letter IATA airline code (e.g., AA)",
            "example": "AA"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "airline": {
                            "$ref": "#/components/schemas/Airline",
                            "description": "Airline details for the requested IATA code"
                          }
                        }
                      },
                      "description": "Single airline result"
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "airline": {
                        "active": true,
                        "alliance": "oneworld",
                        "callsign": "AMERICAN",
                        "country": "United States",
                        "iata": "AA",
                        "icao": "AAL",
                        "logo": "https://production.nuitee.flights/static/images/airlines/AA.png",
                        "name": "American Airlines"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": 4002,
                    "description": "IATA code is required",
                    "message": "required request field is missing or wrong input"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": 401,
                    "description": "Authentication failed",
                    "message": "unauthorized"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Airline not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": 4004,
                    "description": "Airline not found",
                    "message": "entity not found"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```