# Find business class fares from San Francisco to Paris

**Use case:** 

Searches Google Flights for business class round trips from San Francisco to Paris Charles de Gaulle, leaving in 60 days for a week, sorted by price. Lists airlines, stops, duration and fare.

## Input

```json
{
  "mode": "search",
  "routes": [
    "SFO-CDG"
  ],
  "departure_date": "60 days",
  "return_date": "67 days",
  "adults": 1,
  "cabin_class": "business",
  "currency": "USD",
  "sort_by": "price",
  "children": 0,
  "infants_in_seat": 0,
  "infants_on_lap": 0,
  "carry_on_bags": 0,
  "checked_bags": 0,
  "exclude_basic_economy": false,
  "less_emissions": false,
  "origins": [
    "JFK"
  ],
  "explore_sort": "price",
  "explore_limit": 20,
  "date_window_days": 7,
  "places": [
    "paris"
  ],
  "gl": "us",
  "hl": "en",
  "includeErrors": true,
  "maxConcurrency": 3,
  "maxRetries": 2
}
```

## Output

```json
{
  "price": {
    "label": "Price",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "text"
  },
  "total_stops": {
    "label": "Stops",
    "format": "number"
  },
  "total_duration_minutes": {
    "label": "Minutes",
    "format": "number"
  },
  "is_direct": {
    "label": "Direct",
    "format": "boolean"
  },
  "legs": {
    "label": "Legs",
    "format": "array"
  },
  "carbon_emissions_kg": {
    "label": "CO2 kg",
    "format": "number"
  },
  "google_flights_url": {
    "label": "Link",
    "format": "link"
  }
}
```

## How it works

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

The $6/1K | Google Flights Scraper - Fares & Price Calendar Actor is ready to run with the inputs already set for "Find business class fares from San Francisco to Paris". [Sign up or log in](https://console.apify.com/create-task-from-example/B3DXzM00kleqdblfx) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find business class fares from San Francisco to Paris" task

The $6/1K | Google Flights Scraper - Fares & Price Calendar Actor will start running based on the input automatically. You can also change all the input fields, like mode, routes, and more, to match your specific use case.

### 3. Receive the "Find business class fares from San Francisco to Paris" 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 price, currency, stops, 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 "Find business class fares from San Francisco to Paris" task via API](https://apify.com/scrapercompany/google-flights-scraper.md).

## FAQ

### What does the SFO to Paris business class task return?

The SFO to Paris business class task returns one row per itinerary with the airlines, stops, duration and business class fare in USD.

### How do I use the SFO to Paris business class task for another route?

To use the SFO to Paris business class task for another route, open it, change the route codes such as SFO-CDG in the input and start the run. Every other setting stays as saved.

### Can the SFO to Paris business class task run on a schedule?

The SFO to Paris business class task can run on an Apify schedule or through the Apify API. Relative dates such as "30 days" count from the day of each run, so a scheduled run always looks the same distance ahead.

## About this Actor

This example demonstrates how to use [$6/1K | Google Flights Scraper - Fares & Price Calendar](https://apify.com/scrapercompany/google-flights-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scrapercompany/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/scrapercompany/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`).
