Discover/British Airways API
live

British Airways APIbritishairways.com

Search British Airways flights by route, date, and cabin class. Returns per-flight fare options, segment times, aircraft type, and CO2 data via one endpoint.

This API takes change requests — .
Endpoint health
verified 21h ago
search_flights
1/1 passing latest checkself-healing
Endpoints
1
Updated
21h ago

What is the British Airways API?

The British Airways API exposes 1 endpoint — search_flights — that returns available outbound flights between any two IATA airport codes on a specified date. Each response includes an array of flight objects with segment-level details (departure and arrival times, aircraft type, CO2 emissions), per-cabin fare breakdowns, and a total flight count. The endpoint supports both one-way and round-trip queries.

Try it
Number of adult passengers.
IATA airport code for departure (e.g. LHR, CDG, JFK).
Cabin class to search fares for.
IATA airport code for arrival (e.g. JFK, LAX, CDG).
Return date in ISO format YYYY-MM-DD. When provided, searches round-trip flights; when omitted, searches one-way.
Departure date in ISO format YYYY-MM-DD.
api.parse.bot/scraper/e0cfe764-548a-4c2c-8561-937ef120186a/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/e0cfe764-548a-4c2c-8561-937ef120186a/search_flights?adults=1&origin=LHR&cabin_class=economy&destination=JFK&return_date=2026-08-12&departure_date=2026-08-05' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace britishairways-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: British Airways SDK — bounded, re-runnable; every call capped."""
from parse_apis.britishairways_com_api import BritishAirways, CabinClass, InvalidInput

client = BritishAirways()

# Search economy flights from London Heathrow to New York JFK
for flight in client.flights.search(
    origin="LHR",
    destination="JFK",
    departure_date="2026-08-05",
    return_date="2026-08-12",
    cabin_class=CabinClass.ECONOMY,
    limit=3,
):
    print(flight.departure_time, flight.arrival_time, flight.is_direct)
    for fare in flight.fares:
        print(f"  {fare.fare_family}: {fare.currency} {fare.total_price}")

# Get the first business class flight on a one-way trip
biz = client.flights.search(
    origin="LHR",
    destination="JFK",
    departure_date="2026-08-05",
    cabin_class=CabinClass.BUSINESS,
    limit=1,
).first()

if biz:
    for seg in biz.segments:
        print(seg.flight_number, seg.airline, seg.aircraft, seg.co2_emissions_kg)

# Typed error handling
try:
    client.flights.search(origin="LHR", destination="JFK", departure_date="bad-date", limit=1).first()
except InvalidInput as e:
    print("invalid input:", e)

print("exercised: flights.search")
All endpoints · 1 totalmissing one? ·

Search available flights between two airports on a given date. Returns all matching outbound flights with per-flight fare options across cabin sub-classes. Supports round-trip (with return_date) and one-way searches. Each flight includes segment details (times, aircraft, CO2) and multiple fare tiers with pricing. Results are a single page of up to 100 flights for the requested departure date.

Input
ParamTypeDescription
adultsintegerNumber of adult passengers.
originrequiredstringIATA airport code for departure (e.g. LHR, CDG, JFK).
cabin_classstringCabin class to search fares for.
destinationrequiredstringIATA airport code for arrival (e.g. JFK, LAX, CDG).
return_datestringReturn date in ISO format YYYY-MM-DD. When provided, searches round-trip flights; when omitted, searches one-way.
departure_daterequiredstringDeparture date in ISO format YYYY-MM-DD.
Response
{
  "type": "object",
  "fields": {
    "origin": "IATA code echoed back",
    "flights": "array of flight objects with segments and fare options",
    "cabin_class": "requested cabin class",
    "destination": "IATA code echoed back",
    "return_date": "requested return date or empty string",
    "total_flights": "integer count of flights returned",
    "departure_date": "requested departure date"
  },
  "sample": {
    "data": {
      "origin": "LHR",
      "flights": [
        {
          "fares": [
            {
              "tags": [],
              "currency": "GBP",
              "fare_code": "BASICNX",
              "fare_family": "Economy Basic",
              "is_cheapest": true,
              "total_price": 363,
              "travel_class": "Economy"
            },
            {
              "tags": [
                "recommended"
              ],
              "currency": "GBP",
              "fare_code": "ECOPLUSNX",
              "fare_family": "Economy Standard",
              "is_cheapest": false,
              "total_price": 428,
              "travel_class": "Economy"
            }
          ],
          "segments": [
            {
              "airline": "British Airways",
              "aircraft": "BOEING 777-200/300",
              "arrival_time": "2026-08-05T11:10:00.000-04:00",
              "flight_number": "BA117",
              "departure_time": "2026-08-05T08:20:00.000+01:00",
              "duration_hours": 7,
              "arrival_airport": "JFK",
              "co2_emissions_kg": 1334.42,
              "duration_minutes": 50,
              "departure_airport": "LHR",
              "operating_airline": "British Airways"
            }
          ],
          "is_direct": true,
          "arrival_city": "New York",
          "arrival_time": "2026-08-05T11:10:00.000-04:00",
          "departure_city": "London",
          "departure_time": "2026-08-05T08:20:00.000+01:00",
          "duration_hours": 7,
          "arrival_airport": "JFK",
          "duration_minutes": 50,
          "departure_airport": "LHR"
        }
      ],
      "cabin_class": "economy",
      "destination": "JFK",
      "return_date": "2026-08-12",
      "total_flights": 15,
      "departure_date": "2026-08-05"
    },
    "status": "success"
  }
}

About the British Airways API

What the API covers

The search_flights endpoint accepts an origin and destination as IATA airport codes (e.g. LHR, JFK, CDG), a departure_date in YYYY-MM-DD format, and an optional return_date for round-trip searches. The cabin_class parameter filters fare results to a specific cabin (e.g. economy, business, first). The adults parameter controls passenger count for pricing context.

Response structure

Each response includes the echoed origin, destination, departure_date, return_date, and cabin_class alongside a total_flights integer and a flights array. Each flight object carries segment-level data: scheduled times, aircraft type, and CO2 figures. Fare options within the flight object are broken down by cabin sub-class, giving visibility into the fare buckets British Airways makes available for that itinerary.

Coverage and scope

The endpoint covers routes operated or marketed by British Airways and returns fares as they appear on the BA website for the requested date and cabin. Results reflect live availability, so fare options and prices vary by query time. There is no pagination parameter — all matching flights for the searched day are returned in a single response.

Reliability & maintenanceVerified

The British Airways API is a managed, monitored endpoint for britishairways.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when britishairways.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official britishairways.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
21h ago
Latest check
1/1 endpoint passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Compare fare buckets across BA cabin sub-classes for a specific route and date
  • Track CO2 emissions per flight segment for corporate travel sustainability reporting
  • Monitor one-way vs round-trip fare availability between two airports
  • Build a flight price alert system using departure_date and cabin_class parameters
  • Aggregate aircraft type data across BA routes for fleet research
  • Pull segment-level departure and arrival times for itinerary planning tools
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does British Airways have an official developer API?+
British Airways offers the BA APIs developer portal at https://developer.britishairways.com, which provides access to flight information and offers data. The Parse API draws on the same public-facing data available on the BA website.
What does the search_flights endpoint return for a round-trip search?+
When you include a return_date, the endpoint searches for round-trip availability. The response echoes both departure_date and return_date and returns flight objects with segment details and fare options for the outbound journey. The cabin_class and adults parameters apply to both legs.
Does the API return seat availability counts or booking class inventory?+
Not currently. The response covers fare options per cabin sub-class, segment times, aircraft type, and CO2 data, but does not expose seat inventory counts or booking class availability codes (e.g. Y, J, F buckets by seat count). You can fork this API on Parse and revise it to add an endpoint targeting that data if BA surfaces it publicly.
Can I retrieve multi-city or connecting flight itineraries?+
Not currently. The search_flights endpoint takes a single origin and destination pair per call, returning direct and connecting flights BA offers between those two airports. Multi-city itinerary searches across three or more city pairs are not supported in the current endpoint. You can fork this API on Parse and revise it to add a multi-city search endpoint.
How fresh is the flight and fare data returned?+
Each call queries current availability as shown on the British Airways website at the time of the request. Fare availability and prices change continuously based on demand and inventory, so two calls made minutes apart may return different fare options or prices for the same route and date.
Page content last updated . Spec covers 1 endpoint from britishairways.com.
Related APIs in TravelSee all →
aircanada.com API
Search for Air Canada flights between any two airports and compare pricing across all fare families, from Basic to Business class, along with complete schedule and segment details. Find the perfect flight option with transparent pricing and full flight information to make your booking decision.
us.trip.com API
Search for flights across Trip.com and view a low-price calendar to find the cheapest travel dates for your destination. Compare flight options and prices to book your next trip at the best rates available.
flightconnections.com API
Search for flights with detailed information about pricing, schedules, and layover options to find the best travel connections for your trips. Compare multiple flight choices and their costs in one convenient search.
skyscanner.com API
Search for flights and compare prices across multiple booking agents, while exploring airports and cities to plan your trip. View daily and monthly price calendars to find the best deals for your travel dates.
skiplagged.com API
Search for flights across airlines including hidden-city ticketing options, and look up airport information by name or code to find the best travel deals. Access Skiplagged's flight inventory and routing data to discover cheaper itineraries and alternative airport combinations.
virginaustralia.com API
Search Virgin Australia flights and browse fare calendars to find the best prices, while exploring available destinations and current flight specials all in one place. Get real-time flight options and pricing information to plan your next trip with ease.
alaskaair.com API
Search for Alaska Airlines award flight availability and pricing in miles, including taxes, fees, and seat details across airports and cities. Look up airport and city codes to find the perfect mileage redemption for your next trip.
skyairline.com API
Search for flights across SKY Airline routes, explore available airports and travel options, and discover current promotions and brand offerings. Plan your trip efficiently by browsing the airline's complete route network and accessing exclusive deals in one place.