# Priceline Flight Price Scraper (`axlymxp/priceline-flight-scraper`) Actor

Get a flexible-date flight fare matrix from Priceline.com — the cheapest fare for every departure and return date in a window, with validating carrier, number of stops, and take-off and landing times. Great for cheapest-day analysis and price calendars. Pay only for the fares you get.

- **URL**: https://apify.com/axlymxp/priceline-flight-scraper.md
- **Developed by:** [axly](https://apify.com/axlymxp) (community)
- **Categories:** Travel, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 dataset items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Priceline Flight Price Scraper

Get a **flexible-date fare matrix** for any flight route from **Priceline.com**.
Give it an origin, a destination and a date window, and it returns the cheapest
fare for every departure/return date combination — with the **validating carrier,
number of stops per leg, take-off and landing times**, and the exact airports
chosen. Ideal for building price calendars and finding the cheapest day to fly.

Built on Priceline's official fare API, so you get clean structured JSON without
fighting anti-bot defenses.

### Who it's for

- **Travel analysts & fare researchers** — cheapest-day analysis and price
  calendars across a date window.
- **Deal sites & travel apps** — power a "cheapest dates to fly" widget.
- **Developers & data teams** — a reliable structured fare feed for any route.

### What you get (output fields)

| Field                                         | Description                               |
| --------------------------------------------- | ----------------------------------------- |
| `route`, `origin`, `destination`              | Route and IATA codes                      |
| `dates`                                       | Departure (and return) dates `YYYY-MM-DD` |
| `display_date`                                | Human-friendly date-range label           |
| `display_price`, `amount_per_pax`, `currency` | Fare price                                |
| `validating_carrier`                          | Airline (IATA code)                       |
| `cabin_class`, `adults`                       | Cabin and passengers priced               |
| `stops_per_slice`                             | Stops per leg                             |
| `takeoff_times`, `landing_times`              | Times per leg                             |
| `origins`, `destinations`                     | Actual airports chosen per leg            |
| `scraped_at`                                  | ISO-8601 scrape timestamp                 |

### Use cases

- **Cheapest-day-to-fly calendars** — sweep ± days around your dates and rank by
  price.
- **Route price monitoring** — schedule daily runs and track fares over time.
- **Fare-comparison products** — feed Priceline fares into a multi-source app.

### Input

| Field                | Type    | Default           | Description                               |
| -------------------- | ------- | ----------------- | ----------------------------------------- |
| `origin`             | string  | JFK               | Origin IATA code                          |
| `destination`        | string  | LAX               | Destination IATA code                     |
| `departDate`         | string  | +30d              | Departure `YYYY-MM-DD`                    |
| `returnDate`         | string  | +37d              | Return `YYYY-MM-DD` (empty = one-way)     |
| `adults`             | integer | 1                 | Passengers                                |
| `cabinClass`         | enum    | ECO               | `ECO`, `PREMIUM_ECO`, `BUSINESS`, `FIRST` |
| `dateFlex`           | integer | 3                 | ± days around each date (0–7)             |
| `maxItems`           | integer | 100               | Cap on rows                               |
| `proxyConfiguration` | object  | Apify residential | Proxy settings                            |

#### Example input

```json
{
    "origin": "JFK",
    "destination": "LAX",
    "departDate": "2026-09-01",
    "returnDate": "2026-09-08",
    "cabinClass": "ECO",
    "dateFlex": 3
}
````

#### Example output row

```json
{
    "route": "JFK-LAX",
    "display_date": "Aug 29–Sep 5",
    "dates": ["2026-08-29", "2026-09-05"],
    "display_price": "352",
    "amount_per_pax": 351.8,
    "currency": "USD",
    "validating_carrier": "B6",
    "cabin_class": "ECO",
    "stops_per_slice": [0, 0],
    "takeoff_times": ["18:50", "23:13"],
    "landing_times": ["21:59", "07:33"],
    "scraped_at": "2026-07-21T00:00:00Z"
}
```

### Scheduling & integrations

Schedule daily runs to build a fare-history dataset, or call it via the **Apify
API** and pipe results to Sheets, a database or a webhook. Exports to JSON, CSV,
Excel and HTML.

### AI assistants (MCP)

Want to query Priceline fares live from Claude, ChatGPT or Cursor? Use the
companion **Priceline Travel MCP Server** actor.

### FAQ

**Is this a full itinerary search?** It returns the cheapest fare per date
combination (a fare matrix / price calendar), not every individual itinerary —
perfect for finding the best dates and price to fly.

**How fresh is the data?** Live — each run queries Priceline in real time.

**One-way or round-trip?** Both — leave `returnDate` empty for one-way.

**Is scraping this legal?** The actor collects publicly available fare data. You
are responsible for using it in line with applicable laws and Priceline's terms.

# Actor input Schema

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

3-letter IATA code of the origin airport or city, e.g. JFK, LAX, LHR.

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

3-letter IATA code of the destination airport or city, e.g. LAX, MIA, CDG.

## `departDate` (type: `string`):

Departure date in YYYY-MM-DD. Defaults to 30 days from today.

## `returnDate` (type: `string`):

Return date in YYYY-MM-DD for a round trip. Leave empty for one-way.

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

Number of adult passengers.

## `cabinClass` (type: `string`):

Travel cabin.

## `dateFlex` (type: `integer`):

How many days before/after each date to include in the fare calendar (0-7).

## `maxItems` (type: `integer`):

Stop after collecting this many fare rows.

## `proxyConfiguration` (type: `object`):

Proxy settings. Residential proxies are recommended for reliability.

## Actor input object example

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "departDate": "2026-09-01",
  "returnDate": "2026-09-08",
  "adults": 1,
  "cabinClass": "ECO",
  "dateFlex": 3,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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",
    "departDate": "2026-09-01",
    "returnDate": "2026-09-08"
};

// Run the Actor and wait for it to finish
const run = await client.actor("axlymxp/priceline-flight-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",
    "departDate": "2026-09-01",
    "returnDate": "2026-09-08",
}

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

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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",
  "departDate": "2026-09-01",
  "returnDate": "2026-09-08"
}' |
apify call axlymxp/priceline-flight-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=axlymxp/priceline-flight-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Priceline Flight Price Scraper",
        "description": "Get a flexible-date flight fare matrix from Priceline.com — the cheapest fare for every departure and return date in a window, with validating carrier, number of stops, and take-off and landing times. Great for cheapest-day analysis and price calendars. Pay only for the fares you get.",
        "version": "1.0",
        "x-build-id": "HwQ3Qitfr7Vqd4f0h"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/axlymxp~priceline-flight-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-axlymxp-priceline-flight-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/axlymxp~priceline-flight-scraper/runs": {
            "post": {
                "operationId": "runs-sync-axlymxp-priceline-flight-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/axlymxp~priceline-flight-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-axlymxp-priceline-flight-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "origin",
                    "destination"
                ],
                "properties": {
                    "origin": {
                        "title": "Origin airport (IATA)",
                        "type": "string",
                        "description": "3-letter IATA code of the origin airport or city, e.g. JFK, LAX, LHR."
                    },
                    "destination": {
                        "title": "Destination airport (IATA)",
                        "type": "string",
                        "description": "3-letter IATA code of the destination airport or city, e.g. LAX, MIA, CDG."
                    },
                    "departDate": {
                        "title": "Departure date",
                        "type": "string",
                        "description": "Departure date in YYYY-MM-DD. Defaults to 30 days from today."
                    },
                    "returnDate": {
                        "title": "Return date",
                        "type": "string",
                        "description": "Return date in YYYY-MM-DD for a round trip. Leave empty for one-way."
                    },
                    "adults": {
                        "title": "Adults",
                        "minimum": 1,
                        "maximum": 9,
                        "type": "integer",
                        "description": "Number of adult passengers.",
                        "default": 1
                    },
                    "cabinClass": {
                        "title": "Cabin class",
                        "enum": [
                            "ECO",
                            "PREMIUM_ECO",
                            "BUSINESS",
                            "FIRST"
                        ],
                        "type": "string",
                        "description": "Travel cabin.",
                        "default": "ECO"
                    },
                    "dateFlex": {
                        "title": "Date flexibility (± days)",
                        "minimum": 0,
                        "maximum": 7,
                        "type": "integer",
                        "description": "How many days before/after each date to include in the fare calendar (0-7).",
                        "default": 3
                    },
                    "maxItems": {
                        "title": "Maximum fares",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Stop after collecting this many fare rows.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings. Residential proxies are recommended for reliability.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
