Airline Baggage Policy API

Help travelers find their airline’s baggage policy directly from your booking flow or itinerary. Retrieve official policy URLs matched to airline codes and names, or download the directory for your own application.

  • Official baggage policy links
  • Lookup by code or name
  • JSON, XML and CSV

Get an airline’s baggage policy link

Look up Southwest Airlines using its IATA code WN and read baggage_url. Use the returned URL for a baggage-policy link in your application. Replace YOUR_API_KEY with your assigned key.

Request · cURL

curl --get 'https://content.airhex.com/api/v3.7.10/airlines/' \
  --data-urlencode 'apikey=YOUR_API_KEY' \
  --data-urlencode 'iata=WN'

Response · JSON excerpt

[
  {
    "iata": "WN",
    "icao": "SWA",
    "marketing_name": "Southwest Airlines",
    "baggage_url": "https://support.southwest.com/helpcenter/pathway/baggage",
    ...
  }
]

Abbreviated response. The ellipsis (…) represents additional airline fields omitted here and is not part of the actual JSON response.

View the full Airline Database API reference →

Request parameters

Use the Airlines API to retrieve an individual airline or export the directory. baggage_url is a response field; no separate baggage-policy endpoint or baggage_url query parameter is required.

ParameterRequiredDefaultDescription
apikey YesNoneYour assigned API key. Get a free test API key.
iata ConditionalNoneLook up an airline by its two-character IATA code, such as WN.
icao ConditionalNoneLook up an airline by its three-letter ICAO code, such as SWA.
name ConditionalNoneFind airline codes by airline name or partial name.
dump Conditional0Set to 1 to export the complete dataset, subject to the onlyscheduled filter.
response_type NoJSONResponse format: JSON, XML or CSV. CSV triggers a file download.
onlyscheduled No1Set to 1 for scheduled airlines only, or 0 for all airline types.

Provide at least one of iata, icao, name, or dump=1. Setting dump=1 overrides the other lookup parameters.

View all request parameters →

Available data

Match baggage_url to the airline identity before displaying it. The API supplies a link to the airline’s policy page; it does not return structured baggage allowances, dimensions or fees for a specific ticket.

FieldTypeExampleDescription
airhex_id Identifier1046Permanent Airhex record identifier. Use it to associate future updates with the same record.
iata StringWNTwo-character IATA airline designator. Codes can contain letters and digits; store them as text.
icao StringSWAThree-letter ICAO airline designator, useful for mapping between code systems.
marketing_name StringSouthwest AirlinesCommonly used airline name for display in your application.
baggage_url String (URL)https://support.southwest.com/helpcenter/pathway/baggageURL to the airline’s baggage allowance policy.

View all available data →

Common implementation tasks

Download baggage policy links for your airline directory

Export the airline directory as CSV, then retain baggage_url alongside airline names, codes and airhex_id. Only display a policy link when a URL is present. Use onlyscheduled=0 if you also need carrier types beyond scheduled airlines, and select the relevant records in your application.

curl --get 'https://content.airhex.com/api/v3.7.10/airlines/' \
  --data-urlencode 'apikey=YOUR_API_KEY' \
  --data-urlencode 'dump=1' \
  --data-urlencode 'onlyscheduled=0' \
  --data-urlencode 'response_type=CSV' \
  --output airline-baggage-links.csv

Find a baggage policy by airline name

Search with name, select the intended airline and read baggage_url. Partial name matching can return multiple records, so confirm the identity before showing its policy link.

curl --get 'https://content.airhex.com/api/v3.7.10/airlines/' \
  --data-urlencode 'apikey=YOUR_API_KEY' \
  --data-urlencode 'name=Southwest'

Retrieve a policy link using an ICAO code

Use icao if your source identifies the airline with a three-letter ICAO designator. This example retrieves Southwest Airlines using SWA and returns the same airline record and baggage policy field.

curl --get 'https://content.airhex.com/api/v3.7.10/airlines/' \
  --data-urlencode 'apikey=YOUR_API_KEY' \
  --data-urlencode 'icao=SWA'

What you can build

Baggage guidance during booking

Give travelers access to the airline’s policy while they review their itinerary and ticket-specific baggage allowance.

Helpful pre-trip communications

Include a clearly labelled airline baggage-policy link in booking confirmations and pre-departure messages.

Faster customer support

Let agents find the policy link for the airline on a booking without maintaining a separate list of URLs.

Frequently asked questions

What does the Airline Baggage Policy API return?

The baggage_url field contains a URL to the airline’s baggage allowance policy. It is returned within the Airlines API record alongside the airline name, codes and other reference data.

Does the API return baggage weights, dimensions or fees?

This field returns a policy URL, not structured allowance or pricing data. Travelers can follow the link to the airline’s policy. Obtain ticket-specific baggage entitlements and purchasable options from your booking supplier.

Can I use the policy link to determine what a fare includes?

No. A general airline policy link does not establish the baggage entitlement for an individual booking. Use the allowance supplied with the selected fare or ticket and offer the policy link as additional guidance.

Can I retrieve a policy by IATA code, ICAO code or name?

Yes. Use iata, icao or name to retrieve an airline record, then read baggage_url. Name searches support partial matching, so verify the returned airline before using its link.

Which link should I show for a codeshare or multi-airline itinerary?

Associate each policy link with the airline record it belongs to and label it with that airline’s name. Do not use this field alone to decide which carrier’s rules apply to the ticket; use the baggage information supplied with the booking. Use a clear label such as “View airline baggage policy” so travelers know what they will open.

What should I do when baggage_url is empty?

Do not render an empty or broken link. Omit the policy button or provide another support path in your application. Missing data does not establish that the airline permits or prohibits any particular baggage. It also does not mean the airline has no baggage policy.

Can I store baggage policy links in my own database?

Yes, with an appropriate Airline Database license. Export with dump=1 in JSON, XML or CSV and retain the airline identity with each URL. Refresh stored records periodically; Airhex reviews and updates airline data daily. Retain airhex_id and the updated timestamp from the full response so imports can pick up policy URL changes.

Does the API supply policy text or translated versions?

The documented baggage_url field supplies a URL, not policy text or language-specific variants. The destination airline page controls the content and language options available to the traveler.

Help travelers find their airline’s baggage policy

Put airline policy links where travelers need them—in booking flows, itineraries and support tools—without maintaining a separate URL directory.

Airline Database API →

Explore the complete airline dataset, including IATA and ICAO codes, names, operational status, carrier types, alliances, frequent flyer programs, check-in and baggage policy links, logos and brand colors. View all request parameters and response fields, with individual lookups and bulk exports in JSON, XML and CSV.

Airline Alliance API →

Look up airline alliance membership by IATA code, ICAO code or name. Build alliance filters and group airlines in your travel application with Airhex.

Airline Brand Colors API →

Retrieve airline brand colors as hex and RGB values by IATA code, ICAO code or name. Add airline color accents to travel interfaces with the Airhex API.

Airline Frequent Flyer Programs API →

Look up airline frequent flyer program names by IATA code, ICAO code or airline name. Build loyalty program directories and enrich airline profiles with Airhex.

Airline IATA Codes API →

Look up airline IATA codes, match codes to airline names and ICAO codes, or export the airline coding directory with the Airhex API.

Airline ICAO Codes API →

Look up three-letter ICAO airline codes, match them to airline names and IATA codes, and download the airline directory with the Airhex API.

Airline Metadata API →

Retrieve low-cost carrier flags and airline types, including scheduled, charter, cargo and ACMI. Look up airline metadata by code or name with Airhex.

Airline Online Check-in API →

Retrieve airline online check-in links by IATA code, ICAO code or name. Add online check-in links to itineraries and pre-trip messages with Airhex.

Airline Status API →

Look up airline operational status: active, defunct or start-up. Retrieve status by airline code or name and filter your local airline directory with Airhex.