# Find the best value round trips from London to Rome

**Use case:** 

Searches Google Flights for round trips between LHR and FCO, keeps flights with at most one stop and ranks them by value: price, duration and stops together. Change the airports, dates, cabin or passengers to run the same search for any route.

## Input

```json
{
  "origins": [
    "LHR"
  ],
  "destinations": [
    "FCO"
  ],
  "tripType": "round_trip",
  "adults": 1,
  "children": 0,
  "infantsOnLap": 0,
  "infantsInSeat": 0,
  "cabinClass": "economy",
  "currency": "USD",
  "market": "US",
  "maxStops": 1,
  "maxDurationMinutes": 1440,
  "checkedBagsPerPassenger": 0,
  "carryOnBagsPerPassenger": 0,
  "maxResults": 20,
  "resultsPerSearch": 30,
  "maxSearches": 12,
  "concurrency": 2,
  "timeoutSeconds": 240,
  "baggageMode": "strict",
  "ranking": "best_value",
  "valuePerHour": 15,
  "stopPenalty": 30,
  "searchMode": "complete",
  "maxSourceChargeUsd": 1,
  "sourceChargePerSearchUsd": 0.1,
  "includeBookingDetails": false,
  "sourceActor": "leadproof/google-flights-collector"
}
```

## Output

```json
{
  "origin": {
    "label": "Departure airport",
    "format": "string"
  },
  "destination": {
    "label": "Destination airport",
    "format": "string"
  },
  "departureDate": {
    "label": "Outbound date",
    "format": "string"
  },
  "returnDate": {
    "label": "Return date",
    "format": "string"
  },
  "quotedFare": {
    "label": "Quoted group fare excluding unknown extras",
    "format": "number"
  },
  "currency": {
    "label": "Quote currency",
    "format": "string"
  },
  "seller": {
    "label": "Seller of this priced quote, when identified",
    "format": "string"
  },
  "totalDurationMinutes": {
    "label": "Total travel minutes, excluding time at destination",
    "format": "number"
  },
  "totalStops": {
    "label": "Stops across both directions",
    "format": "integer"
  },
  "outboundFlightNumbers": {
    "label": "Outbound flight numbers",
    "format": "string"
  },
  "returnFlightNumbers": {
    "label": "Return flight numbers",
    "format": "string"
  },
  "bookingUrl": {
    "label": "Source click-through link; not checkout verified",
    "format": "string"
  },
  "quoteStatus": {
    "label": "Search quote or retrieved booking options",
    "format": "string"
  },
  "priceComplete": {
    "label": "False while baggage/payment conditions are unknown",
    "format": "boolean"
  },
  "baggageStatus": {
    "label": "Verified allowance availability",
    "format": "string"
  }
}
```

## How it works

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

The Google Flights Scraper - Flight Prices & Flexible Dates Actor is ready to run with the inputs already set for "Find the best value round trips from London to Rome". [Sign up or log in](https://console.apify.com/create-task-from-example/9PS1BaAQuIPaWq3qb) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find the best value round trips from London to Rome" task

The Google Flights Scraper - Flight Prices & Flexible Dates Actor will start running based on the input automatically. You can also change all the input fields, like departure airports, destination airports, and more, to match your specific use case.

### 3. Receive the "Find the best value round trips from London to Rome" 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 airport, destination airport, outbound date, 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 the best value round trips from London to Rome" task via API](https://apify.com/leadproof/flight-finder.md).

## About this Actor

This example demonstrates how to use [Google Flights Scraper - Flight Prices & Flexible Dates](https://apify.com/leadproof/flight-finder.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/leadproof/flight-finder.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/leadproof/flight-finder.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`).
