Airlines API Reference

Airline Database API — 2,588 airlines matched with IATA and ICAO codes and daily updates. Complete reference for the airlines endpoint — query, filter, and retrieve airline data.

Authentication

All API requests require a valid API key. Pass it as a Bearer token in the Authorization header, or via the X-API-Key header. Keys are delivered immediately after subscribing.

Don't have an API key yet? Get started — you'll have a key in minutes.

# Bearer token (recommended)
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://airhex.com/api/v1/airlines?iata=DL"

# Alternative: X-API-Key header
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://airhex.com/api/v1/airlines?iata=DL"
Base URL
https://airhex.com/api/v1
GET /airlines

Query airline data. Returns matching airlines as a JSON array. At least one filter parameter is required on Starter plans — Growth and Enterprise plans may omit filters to retrieve the full dataset.

Parameters
NameInRequiredDescription
iata query Optional IATA 2-letter airline code (e.g. DL). Comma-separated for multiple codes (e.g. DL,AA,UA — max 100). Returns all airlines sharing each code, deduplicated. Multi-code requires Growth or Enterprise.
icao query Optional ICAO 3-letter airline code (e.g. DAL). Comma-separated for multiple codes (e.g. DAL,AAL,UAL — max 100). Multi-code requires Growth or Enterprise.
name query Optional Case-insensitive substring search across marketing_name and full_name. Minimum 2 characters.
country_code query Optional ISO 3166-1 alpha-2 country code (e.g. US). Returns all airlines registered in that country.
alliance query Optional Filter by global alliance: Star Alliance, oneworld, or SkyTeam. Growth & Enterprise only — Starter plans receive 403.
active_only query Optional Set to 1 to return only currently operating airlines. Starter and Growth plans always return active airlines regardless of this parameter; it is only meaningful on Enterprise where historical records are included by default.
Bulk access: Listing the full database (no filter parameters) requires a Growth or Enterprise plan. Starter plans must provide at least one filter.
Multi-code requests: Pass comma-separated IATA or ICAO codes to look up multiple airlines in one call (max 100). Results are deduplicated by unique airline ID. Requires Growth or Enterprise plan.
Airline type filtering: Starter and Growth plans return scheduled passenger airlines, charter operators, and rail/bus/ferry operators (type codes 1–3). Enterprise adds cargo, ACMI/wet lease, private jet, helicopter, tour operators, and others (type codes 4–9).
Historical airlines: Starter and Growth plans automatically filter to active airlines only (active = true). Enterprise includes historical/ceased operators and respects the active_only parameter.
Response Fields

Airline object

FieldTypePlanDescription
airhex_id string All Unique internal airline identifier
updated string All Last data update timestamp
iata string All IATA 2-letter airline designator (e.g. "DL")
icao string All ICAO 3-letter airline designator (e.g. "DAL")
parent_icao string|null All ICAO code of parent/holding airline, if this is a subsidiary
marketing_name string All Marketing/brand name (e.g. "Delta Air Lines")
full_name string All Full legal/registered name (e.g. "Delta Air Lines, Inc.")
active boolean All Active flag: true = operating, false = historical/ceased
type string All Airline type label (e.g. "SCHEDULED", "CHARTER", "CARGO")
type_code string All Numeric type code: 1=Scheduled, 2=Charter, 3=Rail/Bus/Ferry, 4=Helicopter, 5=Private Jet, 6=Tour, 7=ACMI, 8=Cargo, 9=Other
country_code_alpha_2 string All Country of registration — ISO 3166-1 alpha-2 (e.g. "US")
country_code_alpha_3 string All Country of registration — ISO 3166-1 alpha-3 (e.g. "USA")
country_name string All Country of registration — full name (e.g. "United States")
founded string All Year of founding (e.g. "1929")
alliance string Growth Enterprise Global alliance membership: "Star Alliance", "oneworld", "SkyTeam", or empty string
lowcost boolean Growth Enterprise Low-cost carrier flag
ffp_name string|null Growth Enterprise Frequent flyer program name (e.g. "SkyMiles")
colorscheme array Growth Enterprise Brand color palette — array of objects with hex, color (RGB array), percent, and dark flag
website string Growth Enterprise Main website URL
web_checkin_url string Growth Enterprise Online check-in page URL
baggage_url string Growth Enterprise Baggage policy page URL
city_code string Enterprise IATA airport code of the airline's base/headquarters airport (e.g. "LGW")
Response Example
[
  {
    "airhex_id": "377",
    "updated": "2023-05-15 09:42:10",
    "iata": "DL",
    "icao": "DAL",
    "parent_icao": null,  // Starter+
    "marketing_name": "Delta",
    "full_name": "Delta Air Lines Inc.",  // Starter+
    "active": true,  // Starter+
    "type": "SCHEDULED",  // Starter+
    "type_code": "1",  // Starter+
    "country_code_alpha_2": "US",  // Starter+
    "country_code_alpha_3": "USA",  // Starter+
    "country_name": "United States",  // Starter+
    "founded": "1924",  // Starter+
    "alliance": "SkyTeam",  // Growth+
    "lowcost": false,  // Growth+
    "ffp_name": "SkyMiles",  // Growth+
    "colorscheme": [  // Growth+
      {
        "color": [
          156,
          28,
          52
        ],
        "percent": 50,
        "hex": "#9C1C34",
        "dark": 1
      },
      {
        "color": [
          228,
          28,
          52
        ],
        "percent": 50,
        "hex": "#E41C34",
        "dark": 1
      }
    ],
    "website": "https://www.delta.com",  // Growth+
    "web_checkin_url": "https://www.delta.com/PCCOciWeb/findBy.action",  // Growth+
    "baggage_url": "https://www.delta.com/us/en/baggage/overview",  // Growth+
    "city_code": "ATL"  // Enterprise
  }
]

Examples

Lookup airline by IATA code

Retrieve the full profile for Delta Air Lines using its IATA code.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://airhex.com/api/v1/airlines?iata=DL"
Search airlines by name

Find all airlines whose name contains "Emirates" — matches Emirates, Emirates SkyCargo, etc.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://airhex.com/api/v1/airlines?name=Emirates"
Filter airlines by alliance (Growth & Enterprise)

Get all Star Alliance member airlines. Requires Growth or Enterprise plan.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://airhex.com/api/v1/airlines?alliance=Star+Alliance"
All airlines in a country

List all airlines registered in Germany.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://airhex.com/api/v1/airlines?country_code=DE"
Bulk download — full airline database (Growth & Enterprise)

Retrieve every airline record. Requires Growth or Enterprise plan.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://airhex.com/api/v1/airlines"
Multi-code airline lookup (Growth & Enterprise)

Retrieve multiple airlines by comma-separated IATA codes in a single request.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://airhex.com/api/v1/airlines?iata=DL,AA,UA,LH,EK"

Error Codes

CodeDescription
400Bad request — invalid or conflicting query parameters (e.g. name search under 2 characters)
401Unauthorized — missing or invalid API key. Check your Authorization header.
403Forbidden — your plan does not permit this operation (e.g. bulk listing on Starter, alliance filter on Starter, inactive API key)
404Not found — no matching airline for the given code
429Too many requests — per-second rate limit exceeded. Back off and retry.

Rate Limits

All plans include unlimited monthly requests with fair-use rate limiting enforced per second. Standard rate headers (RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset) are included in every response. Responses also include Cache-Control headers — caching responses locally is recommended to stay well within limits.

Legacy API — This documents the previous AirHex API (content.airhex.com). It remains operational for existing integrations but new projects should use the Current API.
GET https://content.airhex.com/api/v3.7.9/airlines

This endpoint provides access to detailed airline information, including the ability to retrieve specific airline records or export the entire airline database in JSON, XML, or CSV formats.

Example Request:

https://content.airhex.com/api/v3.7.9/airlines?apikey=YOUR_API_KEY&iata=WN
At least one query parameter (iata, icao, name, or dump) is required.
Request Parameters
NameRequiredRangeTypeDefaultDescription
apikey Yes Any String none Your assigned API key
iata No 00-ZZ String none Two-letter IATA airline code
icao No 000-ZZZ String none Three-letter ICAO airline code
name No Any String none Airline name or substring for partial matching
dump No 0 or 1 Integer 0 Set to 1 to export the complete database. Overrides other query parameters.
response_type No JSON, XML, CSV String JSON Response format: JSON, XML, or CSV (CSV triggers file download)
onlyscheduled No 0 or 1 Integer 1 Filter to include only scheduled airlines (1) or all airline types (0)
logo_rectangle_width No 1-1400 Integer 700 Width of rectangular logo images
logo_rectangle_height No 1-400 Integer 200 Height of rectangular logo images
logo_square_width No 1-400 Integer 200 Width of square and tail logo images
logo_square_height No 1-400 Integer 200 Height of square and tail logo images
Response Fields
FieldExampleDescription
airhex_id 1046 Unique permanent record identifier
updated 2025-11-06 08:49:23 Date and time the record was last updated
iata WN Airline's IATA code
icao SWA Airline's ICAO code
parent_icao ICAO code of parent airline (if applicable)
marketing_name Southwest Airlines Commonly used airline name for marketing purposes
full_name Southwest Airlines Co. Airline's registered legal name
status 1 Operational status: 1 = Active, 0 = Defunct, 2 = Start-up
type SCHEDULED Airline category: Scheduled, Passenger/Charter, Cargo, ACMI, etc.
type_code 1 Numeric code: 1-Scheduled, 2-Charter, 3-Railway, 4-Helicopter, 5-Jet, 6-Tour, 7-ACMI, 8-Cargo, 9-Others
alliance Alliance membership (if applicable)
ffp_name Rapid Rewards Frequent flyer program name
lowcost 1 Low-cost carrier flag (1 if LCC, else 0)
country_name United States Country of airline's headquarters
country_code_alpha_2 US ISO 3166-1 Alpha-2 country code
country_code_alpha_3 USA ISO 3166-1 Alpha-3 country code
founded 1967 Year the airline was established
website https://www.southwest.com Official airline website URL
web_checkin_url https://www.southwest.com/air/check-in/ URL for web-based passenger check-in
mobile_checkin_url https://mobile.southwest.com/check-in URL for mobile passenger check-in
baggage_url https://www.southwest.com/html/customer-service/baggage/ URL to airline's baggage allowance policy
colorscheme [{...}] Array of brand colors with RGB values, percentages, hex codes, and darkness indicators
logo_rectangle https://content.airhex.com/content/logos/airlines_WN_700_200_r.png?... Direct URL to the rectangular airline logo
logo_square https://content.airhex.com/content/logos/airlines_WN_200_200_s.png?... Direct URL to the square airline logo
logo_tail https://content.airhex.com/content/logos/airlines_WN_200_200_t.png?... Direct URL to the airline's tail logo
logo_tail_flipped https://content.airhex.com/content/logos/airlines_WN_200_200_f.png?... Direct URL to the airline's flipped tail logo
logo_*_dark (same pattern with theme=dark) Dark theme variants for each logo type
logo_*_svg (same pattern, .svg format) SVG vector variants for each logo type
logo_*_svg_dark (same pattern, .svg + dark) Dark theme SVG variants for each logo type
Response Example (JSON)
[
    {
        "airhex_id": "1046",
        "updated": "2025-11-06 08:49:23",
        "iata": "WN",
        "icao": "SWA",
        "parent_icao": null,
        "marketing_name": "Southwest Airlines",
        "full_name": "Southwest Airlines Co.",
        "status": "1",
        "type": "SCHEDULED",
        "type_code": "1",
        "alliance": null,
        "ffp_name": "Rapid Rewards",
        "lowcost": "1",
        "country_name": "United States",
        "country_code_alpha_2": "US",
        "country_code_alpha_3": "USA",
        "founded": "1967",
        "website": "https://www.southwest.com",
        "web_checkin_url": "https://www.southwest.com/air/check-in/",
        "mobile_checkin_url": "https://mobile.southwest.com/check-in",
        "baggage_url": "https://www.southwest.com/html/customer-service/baggage/",
        "colorscheme": [ ... ],
        "logo_rectangle": "https://content.airhex.com/content/logos/airlines_WN_700_200_r.png?...",
        "logo_square": "https://content.airhex.com/content/logos/airlines_WN_200_200_s.png?...",
        "logo_tail": "https://content.airhex.com/content/logos/airlines_WN_200_200_t.png?...",
        "logo_tail_flipped": "https://content.airhex.com/content/logos/airlines_WN_200_200_f.png?..."
    }
]

Ready to integrate airline data?

Get your API key and start querying airline data in minutes.

Get Started
Trusted by leading aviation & travel companies

Trusted by leading aviation & travel companies