# Weekend round-trip fares from Los Angeles to Las Vegas

**Use case:** 

Compare Google Flights round-trip prices for every Friday and Saturday departure in the coming weeks, with 2-day trips from Los Angeles to Las Vegas.

## Input

```json
{
  "routes": [
    "LAX-LAS"
  ],
  "departureDates": [
    "30 days"
  ],
  "departureDateFrom": "14 days",
  "departureDateTo": "42 days",
  "weekendsOnly": true,
  "tripType": "round-trip",
  "tripLengthDays": 2,
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "cabinClass": "economy",
  "maxStops": "any",
  "checkedBags": 0,
  "carryOnBag": false,
  "excludeBasicEconomy": false,
  "lessEmissionsOnly": false,
  "sortBy": "best",
  "maxFlightsPerSearch": 5,
  "returnFlightsForTopOutbound": 0,
  "maxReturnFlightsPerOutbound": 10,
  "bookingOptionsForTop": 0,
  "priceCalendarDays": 0,
  "includePriceHistory": false,
  "currency": "USD",
  "country": "US",
  "language": "en-US",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "useResidentialFallback": true,
  "maxSearches": 500,
  "maxConcurrency": 5,
  "maxRetries": 6,
  "maxSecondsPerSearch": 120,
  "delayBetweenRequestsSecs": 1
}
```

## Output

```json
{
  "type": {
    "label": "Type"
  },
  "route": {
    "label": "Route"
  },
  "departureDate": {
    "label": "Date"
  },
  "returnDate": {
    "label": "Return"
  },
  "position": {
    "label": "#",
    "format": "number"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "currency": {
    "label": "Currency"
  },
  "priceLevel": {
    "label": "Price level"
  },
  "airlines": {
    "label": "Airlines",
    "format": "array"
  },
  "flightNumbers": {
    "label": "Flights",
    "format": "array"
  },
  "departureTime": {
    "label": "Departs"
  },
  "arrivalTime": {
    "label": "Arrives"
  },
  "durationMinutes": {
    "label": "Minutes",
    "format": "number"
  },
  "stops": {
    "label": "Stops",
    "format": "number"
  },
  "layovers": {
    "label": "Layovers",
    "format": "object"
  },
  "emissionsLevel": {
    "label": "Emissions"
  },
  "returnFlight": {
    "label": "Return flight",
    "format": "object"
  },
  "nextFlights": {
    "label": "Next flights (multi-city)",
    "format": "object"
  },
  "cheapestBookingPrice": {
    "label": "Cheapest booking",
    "format": "number"
  },
  "cheapestSeller": {
    "label": "Cheapest seller"
  },
  "googleFlightsUrl": {
    "label": "Google Flights",
    "format": "link"
  },
  "warnings": {
    "label": "Notes",
    "format": "array"
  },
  "error": {
    "label": "Error"
  }
}
```

## How it works

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

The Google Flights Scraper & API — Airfare & Price Calendar Actor is ready to run with the inputs already set for "Weekend round-trip fares from Los Angeles to Las Vegas". [Sign up or log in](https://console.apify.com/create-task-from-example/O33taIDtZGr6WSfa5) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Weekend round-trip fares from Los Angeles to Las Vegas" task

The Google Flights Scraper & API — Airfare & Price Calendar Actor will start running based on the input automatically. You can also change all the input fields, like routes, departure dates, and more, to match your specific use case.

### 3. Receive the "Weekend round-trip fares from Los Angeles to Las Vegas" 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 type, route, 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 "Weekend round-trip fares from Los Angeles to Las Vegas" task via API](https://apify.com/aaronoptimus/google-flights-scraper.md).

## About this Actor

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