# Compare nonstop flights from Los Angeles to Tokyo

**Use case:** 

Searches Google Flights for nonstop round trips from Los Angeles to Tokyo Haneda, leaving in 45 days for 10 days. Lists each itinerary's airline, times, duration and price.

## Input

```json
{
  "mode": "search",
  "routes": [
    "LAX-HND"
  ],
  "departure_date": "45 days",
  "return_date": "55 days",
  "adults": 1,
  "cabin_class": "economy",
  "currency": "USD",
  "sort_by": "top_flights",
  "stops": 0,
  "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 "Compare nonstop flights from Los Angeles to Tokyo". [Sign up or log in](https://console.apify.com/create-task-from-example/hppkgii4LLRAlr9zv) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare nonstop flights from Los Angeles to Tokyo" 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 "Compare nonstop flights from Los Angeles to Tokyo" 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 "Compare nonstop flights from Los Angeles to Tokyo" task via API](https://apify.com/scrapercompany/google-flights-scraper.md).

## FAQ

### What does the LAX to Tokyo nonstop task return?

The LAX to Tokyo nonstop task returns one row per nonstop itinerary with the airline, departure and arrival times, duration and price in USD.

### How do I use the LAX to Tokyo nonstop task for another route?

To use the LAX to Tokyo nonstop task for another route, open it, change the route codes such as LAX-HND in the input and start the run. Every other setting stays as saved.

### Can the LAX to Tokyo nonstop task run on a schedule?

The LAX to Tokyo nonstop 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`).
