# Flight Price Scraper (Skyscanner & Google Flights) (`ulitron34/flight-price-scraper`) Actor

Fast and lightweight flight price scraper. Extract airfares, airlines, flight numbers, stops, durations, aircraft models, and schedules for any global route without browser overhead.

- **URL**: https://apify.com/ulitron34/flight-price-scraper.md
- **Developed by:** [ulises salgado diaz](https://apify.com/ulitron34) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Flight Price Scraper (Skyscanner & Google Flights)

A lightning-fast, lightweight, and cost-effective Apify Actor to extract flight prices, schedules, airlines, stops, durations, and aircraft types for any route worldwide without browser overhead.

***

### Why Flight Price Scraper?

Flight search data is notoriously difficult to scrape reliably. Most scrapers on the market either get blocked by PerimeterX / Cloudflare anti-bot challenges or crash because they run heavy, resource-intensive browser instances (Playwright/Selenium).

**Flight Price Scraper** solves this:

- ⚡ **Ultra-Fast Speed:** Extracts structured flight data via pure HTTP requests with TLS fingerprint impersonation in just 1–2 seconds.
- 💸 **Cost-Efficient:** Minimal memory footprint (<64 MB RAM) ensures runs cost pennies in compute units.
- 🛫 **Deep Flight Details:** Extracts full itinerary legs: airlines, flight numbers, aircraft models (e.g. Airbus A320, Boeing 737), departure/arrival times, durations, and layovers.
- 🔄 **One-Way & Round-Trip:** Supports both single-leg journeys and return trips with flexible dates, currencies, and cabin classes.

***

### Extracted Data Fields

Each record in your dataset contains:

| Field | Type | Description | Example |
| :--- | :--- | :--- | :--- |
| `airline` | String | Operating airline name | `"JetBlue"` |
| `airline_code` | String | 2-letter IATA airline code | `"B6"` |
| `flight_numbers` | String | Flight identifier(s) | `"B6 523"` |
| `price` | Number | Numeric ticket fare | `239` |
| `currency` | String | Currency code | `"USD"` |
| `price_formatted` | String | Display price with currency | `"$239 USD"` |
| `stops` | Integer | Total layovers (`0` for Nonstop) | `0` |
| `duration` | String | Total travel time | `"6h 16m"` |
| `duration_minutes` | Integer | Total duration in minutes | `376` |
| `departure_airport` | String | Origin airport IATA code | `"JFK"` |
| `departure_airport_name` | String | Full departure airport name | `"John F. Kennedy International Airport"` |
| `departure_time` | String | Departure date & time | `"2026-11-15 07:00"` |
| `arrival_airport` | String | Destination airport IATA code | `"LAX"` |
| `arrival_airport_name` | String | Full arrival airport name | `"Los Angeles International Airport"` |
| `arrival_time` | String | Arrival date & time | `"2026-11-15 10:16"` |
| `airplane` | String | Aircraft model | `"Airbus A320"` |
| `legs_count` | Integer | Number of flight legs | `1` |
| `legs` | Array | Detailed segments breakdown | `[{ ... }]` |
| `booking_url` | String | Direct search link | `"https://www.google.com/travel/flights?..."` |

***

### Input Configuration

| Parameter | Type | Required | Default | Description |
| :--- | :--- | :--- | :--- | :--- |
| `origin` | String | **Yes** | `"JFK"` | 3-letter IATA code of origin airport. |
| `destination` | String | **Yes** | `"LAX"` | 3-letter IATA code of destination airport. |
| `date` | String | **Yes** | `"2026-11-15"` | Departure date in `YYYY-MM-DD` format. |
| `return_date` | String | No | `null` | Optional return date for round-trip flights. |
| `currency` | String | No | `"USD"` | Currency (`USD`, `EUR`, `MXN`, `GBP`, `CAD`, `AUD`). |
| `seat_class` | String | No | `"economy"` | Cabin class (`economy`, `premium-economy`, `business`, `first`). |
| `adults` | Integer | No | `1` | Number of adult passengers. |
| `max_results` | Integer | No | `50` | Maximum flight offers to extract. |

***

### Example Output (JSON)

```json
{
  "airline": "JetBlue",
  "airline_code": "B6",
  "flight_numbers": "B6 523",
  "price": 239,
  "currency": "USD",
  "price_formatted": "$239 USD",
  "stops": 0,
  "duration": "6h 16m",
  "duration_minutes": 376,
  "departure_airport": "JFK",
  "departure_airport_name": "John F. Kennedy International Airport",
  "departure_time": "2026-11-15 07:00",
  "arrival_airport": "LAX",
  "arrival_airport_name": "Los Angeles International Airport",
  "arrival_time": "2026-11-15 10:16",
  "airplane": "Airbus A320",
  "legs_count": 1,
  "legs": [
    {
      "origin": "JFK",
      "origin_name": "John F. Kennedy International Airport",
      "destination": "LAX",
      "destination_name": "Los Angeles International Airport",
      "departure": "2026-11-15 07:00",
      "arrival": "2026-11-15 10:16",
      "duration_minutes": 376,
      "aircraft": "Airbus A320",
      "flight_number": "B6 523"
    }
  ]
}
```

***

### Resumen en Español

Extractor de tarifas aéreas ultrarrápido y económico para Apify. Permite monitorear precios de vuelos, aerolíneas, escalas, modelos de avión y horarios entre cualquier par de aeropuertos del mundo sin utilizar navegadores lentos ni consumir memoria excesiva.

# Actor input Schema

## `origin` (type: `string`):

3-letter IATA airport code of departure (e.g. JFK, LHR, MEX, MAD, CDG).

## `destination` (type: `string`):

3-letter IATA airport code of arrival (e.g. LAX, BCN, CUN, NRT, FCO).

## `date` (type: `string`):

Departure date in YYYY-MM-DD format.

## `return_date` (type: `string`):

Optional return date in YYYY-MM-DD format for round-trip flights.

## `currency` (type: `string`):

Currency for flight prices.

## `seat_class` (type: `string`):

Travel cabin class.

## `adults` (type: `integer`):

Number of adult passengers.

## `max_results` (type: `integer`):

Maximum number of flight offers to extract.

## Actor input object example

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "date": "2026-11-15",
  "currency": "USD",
  "seat_class": "economy",
  "adults": 1,
  "max_results": 50
}
```

# Actor output Schema

## `results` (type: `string`):

Scraped flight fares with airlines, durations, stops, and schedules.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "origin": "JFK",
    "destination": "LAX",
    "date": "2026-11-15"
};

// Run the Actor and wait for it to finish
const run = await client.actor("ulitron34/flight-price-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "origin": "JFK",
    "destination": "LAX",
    "date": "2026-11-15",
}

# Run the Actor and wait for it to finish
run = client.actor("ulitron34/flight-price-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "origin": "JFK",
  "destination": "LAX",
  "date": "2026-11-15"
}' |
apify call ulitron34/flight-price-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ulitron34/flight-price-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/gWO3Udjm2fmhhxXak/builds/5zedAhwvHoWH6c9CH/openapi.json
