# ASAP Tickets Flights Scraper – Worldwide Airfare Prices (`boring_internet_explorer/asaptickets-scraper`) Actor

Scrape airfare prices from asaptickets.com for any origin and destination worldwide. Search many routes at once, one-way or round-trip, by cabin class and passenger mix, and get fares per airline with route, dates and price per person.

- **URL**: https://apify.com/boring_internet_explorer/asaptickets-scraper.md
- **Developed by:** [Boring Internet Explorer](https://apify.com/boring_internet_explorer) (community)
- **Categories:** Travel
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 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

## ✈️ ASAP Tickets Flights Scraper — Worldwide Flight Fare Tracker

[ASAP Tickets](https://www.asaptickets.com/) is a US-based online travel agency that sells discounted airline tickets on routes all over the world. This scraper turns any list of origins and destinations into a clean dataset of airline fares, so you can compare prices per airline, track fare changes over time and benchmark routes worldwide without searching by hand.

### Why use this scraper?

- 💸 **Fare monitoring** – track one-way and round-trip prices on routes such as New York–London or Singapore–Sydney
- 🧭 **Route matrix in one run** – add several origins and several destinations and every combination is searched
- 🏷️ **Airline price benchmarking** – compare British Airways, United, Egyptair, Turkish Airlines and others on the same route
- 📈 **Travel market research** – build price history for routes worldwide, by cabin class and passenger mix
- 🧳 **Corporate and agency pricing** – check business and first class quotes for 1–9 passengers
- 🔔 **Deal alerts** – schedule runs and push cheaper fares to your own tools

### Supported inputs

| Input                          | Example                                   |
| ------------------------------ | ----------------------------------------- |
| Origins (several allowed)      | `JFK`, `LAX`, `London (LHR)`              |
| Destinations (several allowed) | `LHR`, `CDG`, `SIN`                       |
| Trip type                      | Round trip or one way                     |
| Cabin class                    | Economy, premium economy, business, first |
| Passengers                     | Adults, children, infants                 |
| Airlines filter                | `EK`, `SV`, `MS`                          |

Every origin is searched against every destination. `maxItems` is applied **per search** (per origin → destination pair), so one popular route can never use up the budget of the others.

### Input fields

| Field                | Type    | Default            | Description                                                        |
| -------------------- | ------- | ------------------ | ------------------------------------------------------------------ |
| `origins`            | array   | `["CAI"]`          | Departure airport/city codes (3-letter IATA). Required.            |
| `destinations`       | array   | `["DXB"]`          | Arrival airport/city codes (3-letter IATA). Required.              |
| `tripType`           | string  | `roundTrip`        | `roundTrip` or `oneWay`.                                           |
| `departureDate`      | string  | today + 30 days    | `YYYY-MM-DD`, from today up to about 11 months ahead.              |
| `returnDate`         | string  | departure + 7 days | `YYYY-MM-DD`, round trips only.                                    |
| `cabinClass`         | string  | `economy`          | `economy`, `premium_economy`, `business` or `first`.               |
| `adults`             | integer | `1`                | Adults (at least 1).                                               |
| `children`           | integer | `0`                | Children aged 2–11.                                                |
| `infants`            | integer | `0`                | Infants under 2 (not more than adults). Max 9 passengers in total. |
| `airlines`           | array   | `[]`               | Optional 2-character airline codes to keep. Empty = all airlines.  |
| `maxItems`           | integer | `5`                | Maximum fares stored per origin → destination search.              |
| `proxyConfiguration` | object  | no proxy           | Optional Apify proxy settings.                                     |

### Example input

```json
{
  "origins": ["JFK", "LAX"],
  "destinations": ["LHR", "CDG"],
  "tripType": "roundTrip",
  "departureDate": "2026-11-18",
  "returnDate": "2026-11-25",
  "cabinClass": "economy",
  "adults": 1,
  "maxItems": 5,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

### Output

Each fare is stored as one record in the default dataset. Prices are numbers in US dollars (the site's selling currency) and are the total for all passengers in the search.

### Example output

```json
{
  "scrapedAt": "2026-10-10T13:35:34.152Z",
  "url": "https://www.asaptickets.com/search?from=CAI&to=DXB&departureDate=2026-11-18&class=economy&isOneWay=false&adult=1&child=0&infant=0&returnDate=2026-11-25",
  "title": "CAI → DXB · Egyptair",
  "price": 211.48,
  "currency": "USD",
  "country": "United States",
  "market": "us",
  "pricePerPerson": 211.48,
  "discount": 0,
  "discountPerPerson": 0,
  "priceId": "RFCltIaGy7smgWon9Fwg2WZwxPc=",
  "searchId": 910081,
  "rankInSearch": 1,
  "isTopAirline": false,
  "airlineCode": "MS",
  "airlineName": "Egyptair",
  "airlineLogo": "https://cdn-airline-logo.s3.amazonaws.com/result/ms.png",
  "originCode": "CAI",
  "originCity": "Cairo",
  "originCountryCode": "EG",
  "originCountry": "Egypt",
  "destinationCode": "DXB",
  "destinationCity": "Dubai",
  "destinationCountryCode": "AE",
  "destinationCountry": "United Arab Emirates",
  "tripType": "roundTrip",
  "departureDate": "2026-11-18",
  "returnDate": "2026-11-25",
  "cabinClass": "economy",
  "adults": 1,
  "children": 0,
  "infants": 0
}
```

### Field reference

| Field                                                                                   | Type    | Description                                                    |
| --------------------------------------------------------------------------------------- | ------- | -------------------------------------------------------------- |
| `scrapedAt`                                                                             | string  | ISO 8601 timestamp of the scrape                               |
| `url`                                                                                   | string  | ASAP Tickets search page for this route and dates              |
| `title`                                                                                 | string  | Route and airline, e.g. `CAI → DXB · Egyptair`                 |
| `price`                                                                                 | number  | Total fare for all passengers                                  |
| `currency`                                                                              | string  | Currency of the fare (USD)                                     |
| `country`                                                                               | string  | Market of the site (United States)                             |
| `market`                                                                                | string  | Market code (`us`)                                             |
| `pricePerPerson`                                                                        | number  | Average fare per passenger                                     |
| `discount` / `discountPerPerson`                                                        | number  | Discount included in the fare, if any                          |
| `priceId`                                                                               | string  | Fare identifier from the site                                  |
| `searchId`                                                                              | number  | Search identifier from the site                                |
| `rankInSearch`                                                                          | number  | Position of the fare in the search (1 = cheapest listed first) |
| `isTopAirline`                                                                          | boolean | Whether the site flags the airline as a top airline            |
| `airlineCode` / `airlineName` / `airlineLogo`                                           | string  | Validating airline                                             |
| `originCode` / `originCity` / `originCountryCode` / `originCountry`                     | string  | Departure place                                                |
| `destinationCode` / `destinationCity` / `destinationCountryCode` / `destinationCountry` | string  | Arrival place                                                  |
| `tripType`                                                                              | string  | `roundTrip` or `oneWay`                                        |
| `departureDate` / `returnDate`                                                          | string  | Travel dates (`returnDate` is `null` for one way)              |
| `cabinClass`                                                                            | string  | Cabin class searched                                           |
| `adults` / `children` / `infants`                                                       | number  | Passenger mix searched                                         |

### ❓ FAQ

**Which airports can I use?** Any 3-letter IATA airport or city code, for example `JFK`, `LAX`, `LHR`, `CDG`, `SIN`, `DXB`, `SYD`, `NYC`. `London (LHR)` style values are accepted too.

**How far ahead can I search?** From today up to about 11 months ahead. Dates outside that window are rejected before the run starts.

**Why do some routes return only one or two fares?** The site lists a limited set of fares per route and date. `maxItems` is a ceiling, not a target, so a search returns whatever is available.

**Is the price per person or total?** `price` is the total for all passengers; `pricePerPerson` is the average per passenger.

**Which currency do I get?** US dollars, because that is how the site prices tickets.

**What happens with an unknown airport code?** That search is skipped with a warning and the remaining searches continue.

**Do I need a proxy?** No, the default configuration works without one. A proxy can be set in the input if you need one.

### 🔗 Want More Data?

Looking for more flight data? These related flight scrapers on Apify cover other travel sites:

- [Google Flights Data Scraper](https://apify.com/johnvc/Google-Flights-Data-Scraper-Flight-and-Price-Search) – flight and price search results from Google Flights
- [Google Flights Scraper](https://apify.com/kaix/google-flights-scraper) – comprehensive Google Flights fares and itineraries
- [Skyscanner Flight Scraper](https://apify.com/makework36/flight-price-scraper) – flight prices from Skyscanner
- [Skyscanner Scraper with multi-city fares](https://apify.com/memo23/skyscanner-scraper) – Skyscanner fares including multi-city trips
- [Kayak Flights Scraper](https://apify.com/shahidirfan/kayak-flights-scraper) – flight listings from Kayak

### 🛠️ Need a custom scraper?

Need this scraper adapted to your use case — extra fields, additional filters, a different output format, or a new website? Reach out at boringinternetexplorer@gmail.com and we'll make it happen.

# Actor input Schema

## `origins` (type: `array`):

Departure airport or city codes (3-letter IATA, e.g. CAI, JED). Add several to search all of them. The format "Cairo (CAI)" is also accepted.

## `destinations` (type: `array`):

Arrival airport or city codes (3-letter IATA, e.g. DXB, RUH). Every origin is searched against every destination.

## `tripType` (type: `string`):

Round trip or one way.

## `departureDate` (type: `string`):

Departure date (YYYY-MM-DD). Must be between today and about 11 months ahead. Leave empty to use 30 days from today.

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

Return date (YYYY-MM-DD) for round trips. Leave empty to use 7 days after the departure date. Ignored for one-way trips.

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

Cabin class to search.

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

Number of adult passengers (12+). At least 1.

## `children` (type: `integer`):

Number of child passengers (2-11).

## `infants` (type: `integer`):

Number of infants (under 2). Cannot exceed the number of adults.

## `airlines` (type: `array`):

Optional. Only keep fares from these airlines (2-character IATA codes, e.g. EK, MS, SV). Leave empty for all airlines.

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

Maximum number of fares to store for each origin → destination search.

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

Your proxy configuration from Apify

## Actor input object example

```json
{
  "origins": [
    "CAI"
  ],
  "destinations": [
    "DXB"
  ],
  "tripType": "roundTrip",
  "cabinClass": "economy",
  "adults": 1,
  "children": 0,
  "infants": 0,
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "origins": [
        "CAI"
    ],
    "destinations": [
        "DXB"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("boring_internet_explorer/asaptickets-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 = {
    "origins": ["CAI"],
    "destinations": ["DXB"],
}

# Run the Actor and wait for it to finish
run = client.actor("boring_internet_explorer/asaptickets-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 '{
  "origins": [
    "CAI"
  ],
  "destinations": [
    "DXB"
  ]
}' |
apify call boring_internet_explorer/asaptickets-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,boring_internet_explorer/asaptickets-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/egImWgtKuMmuNDMEr/builds/xZkWfIetNL9uBCYh4/openapi.json
