# Business Class Flight Prices

**Use case:** 

Compare business class fares on a route. This example lists every business class flight from London to Dubai leaving in 30 days, with price, airline, aircraft, times and stops. Switch the cabin to first or premium economy as needed.

## Input

```json
{
  "mode": "search",
  "flights": [
    {
      "from": "London",
      "to": "Dubai",
      "departureDate": "30 days"
    }
  ],
  "returnFlights": "price-only",
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "cabinClass": "business",
  "maxStops": "any",
  "carryOnBags": 0,
  "checkedBags": 0,
  "lessEmissionsOnly": false,
  "priceCalendar": false,
  "priceCalendarDays": 60,
  "deepSearch": true,
  "includeUnpricedFlights": false,
  "bookingOptions": false,
  "bookingOptionsFor": 10,
  "currency": "GBP",
  "country": "GB",
  "maxResultsPerSearch": 0,
  "maxItems": 0
}
```

## Output

```json
{
  "departureDate": {
    "label": "Departure date",
    "format": "text"
  },
  "returnDate": {
    "label": "Return date",
    "format": "text"
  },
  "departureAirport": {
    "label": "From (airport)",
    "format": "text"
  },
  "arrivalAirport": {
    "label": "To (airport)",
    "format": "text"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "text"
  },
  "airlineLogo": {
    "label": "Logo",
    "format": "image"
  },
  "airline": {
    "label": "Airline(s)",
    "format": "text"
  },
  "flightNumbers": {
    "label": "Flight numbers",
    "format": "text"
  },
  "departureTime": {
    "label": "Departs (local time)",
    "format": "text"
  },
  "arrivalTime": {
    "label": "Arrives (local time)",
    "format": "text"
  },
  "duration": {
    "label": "Total travel time",
    "format": "text"
  },
  "stops": {
    "label": "Stops",
    "format": "number"
  },
  "layovers": {
    "label": "Layovers (airport & wait)",
    "format": "text"
  },
  "returnFlight.airline": {
    "label": "Return: airline(s)",
    "format": "text"
  },
  "returnFlight.flightNumbers": {
    "label": "Return: flight numbers",
    "format": "text"
  },
  "returnFlight.departureTime": {
    "label": "Return: departs",
    "format": "text"
  },
  "returnFlight.arrivalTime": {
    "label": "Return: arrives",
    "format": "text"
  },
  "returnFlight.duration": {
    "label": "Return: travel time",
    "format": "text"
  },
  "returnFlight.layovers": {
    "label": "Return: layovers",
    "format": "text"
  },
  "nextFlights": {
    "label": "Next flights (multi-city)",
    "format": "array"
  },
  "isCheapest": {
    "label": "Cheapest of the search",
    "format": "boolean"
  },
  "isTopFlight": {
    "label": "Google top flight",
    "format": "boolean"
  },
  "co2EmissionsKg": {
    "label": "CO2 (kg)",
    "format": "number"
  },
  "cheapestSeller": {
    "label": "Cheapest seller",
    "format": "text"
  },
  "googleFlightsUrl": {
    "label": "Open on Google Flights",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Google Flights Scraper Actor is ready to run with the inputs already set for "Business Class Flight Prices". [Sign up or log in](https://console.apify.com/create-task-from-example/JPhK75JFEBTpr1p8A) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Business Class Flight Prices" task

The Google Flights Scraper Actor will start running based on the input automatically. You can also change all the input fields, like what do you want to scrape?, flights, and more, to match your specific use case.

### 3. Receive the "Business Class Flight Prices" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as departure date, return date, from (airport), and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Business Class Flight Prices" task via API](https://apify.com/data_xplorer/google-flights-scraper.md).

## About this Actor

This example demonstrates how to use [Google Flights Scraper](https://apify.com/data_xplorer/google-flights-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/data_xplorer/google-flights-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/data_xplorer/google-flights-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
