# Wego Flights Scraper – MENA Flights Scraper (`boring_internet_explorer/wego-flights-scraper`) Actor

Search Wego flights between any two airports and extract every itinerary with its cheapest price, airline, stops, flight numbers, durations and booking providers for Saudi Arabia, UAE, Kuwait, Qatar, Bahrain and Oman.

- **URL**: https://apify.com/boring_internet_explorer/wego-flights-scraper.md
- **Developed by:** [Boring Internet Explorer](https://apify.com/boring_internet_explorer) (community)
- **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

## ✈️ Wego Flights Scraper — Saudi Arabia, UAE, Kuwait, Qatar, Bahrain & Oman

[Wego](https://www.wego.com) is the leading travel metasearch engine in the Middle East. It compares flight prices from airlines and hundreds of online travel agencies in one place, with dedicated sites for Saudi Arabia, the UAE, Kuwait, Qatar, Bahrain, Oman and Egypt. This scraper searches Wego for any route and date and returns every flight itinerary with its cheapest price, airline, stops, flight numbers, timings and the full list of booking providers, so you can track GCC airfare, compare providers and build travel-data products without manual searching.

### Why use this scraper?

- 📉 **Airfare monitoring** — track the cheapest price on any route (Riyadh → Dubai, Kuwait → London, Doha → Cairo...) day after day.
- 🧭 **Provider price comparison** — see which airline or travel agency is cheapest for each itinerary, and how much the alternatives cost.
- 🏷️ **Competitor intelligence for travel agencies** — benchmark your fares against what Wego shows to customers in Saudi Arabia, UAE, Kuwait, Qatar, Bahrain and Oman.
- 📊 **Demand and pricing research** — build datasets on fares, durations, stops and airline share across GCC routes and cabin classes.
- 🔔 **Deal alerts** — schedule the actor and notify yourself when a route drops below a target price.
- 🌍 **Multi-market pricing** — run the same route on different Wego country sites and currencies to see how prices differ per market.
- 🤖 **Data for apps and AI agents** — feed clean, structured fare data into dashboards, notebooks or LLM workflows.

### Supported URL types

This actor is configured with dedicated flight search fields instead of start URLs. Each run searches one route:

| Search                            | Example input                                                                                                   |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| One-way flight                    | `origin: RUH`, `destination: DXB`, `departureDate: 2026-11-20`                                                  |
| Round-trip flight                 | `tripType: roundTrip`, `origin: JED`, `destination: DXB`, `departureDate: 2026-11-20`, `returnDate: 2026-11-27` |
| Business / first class            | `cabinClass: business`                                                                                          |
| Family search                     | `adults: 2`, `children: 1`, `infants: 1`                                                                        |
| Another country site and currency | `market: kw`, `currency: USD`                                                                                   |

### Input fields

| Field                | Type    | Default         | Description                                                                                              |
| -------------------- | ------- | --------------- | -------------------------------------------------------------------------------------------------------- |
| `origin`             | string  | `RUH`           | 3-letter IATA code of the departure airport or city, e.g. RUH, JED, DXB, KWI.                            |
| `destination`        | string  | `DXB`           | 3-letter IATA code of the arrival airport or city, e.g. DXB, CAI, LHR.                                   |
| `tripType`           | string  | `oneWay`        | `oneWay` or `roundTrip`. Round trips require a return date.                                              |
| `departureDate`      | string  | `14 days`       | Departure date (`YYYY-MM-DD`) or a relative date such as `14 days` or `2 weeks`.                         |
| `returnDate`         | string  | –               | Return date (`YYYY-MM-DD`) or relative date. Only used for round trips.                                  |
| `adults`             | integer | `1`             | Adult passengers (12+ years).                                                                            |
| `children`           | integer | `0`             | Children (2-11 years).                                                                                   |
| `infants`            | integer | `0`             | Infants (under 2). Cannot exceed the number of adults.                                                   |
| `cabinClass`         | string  | `economy`       | `economy`, `premium_economy`, `business` or `first`.                                                     |
| `directOnly`         | boolean | `false`         | Keep only itineraries without stops.                                                                     |
| `sortBy`             | string  | `recommended`   | `recommended` (Wego's ranking, fastest), `price`, `duration` or `departureTime`.                         |
| `market`             | string  | `sa`            | Wego country site: `sa`, `ae`, `kw`, `qa`, `bh`, `om`, `eg`. Decides the providers and default currency. |
| `currency`           | string  | market currency | Optional 3-letter currency code, e.g. `USD`, `EUR`.                                                      |
| `language`           | string  | `en`            | `en` or `ar` — language of airline, airport and city names.                                              |
| `maxItems`           | integer | `50`            | Maximum number of itineraries to return.                                                                 |
| `proxyConfiguration` | object  | no proxy        | Apify proxy settings. Leave disabled unless your IP gets blocked.                                        |

### Example input

```json
{
  "origin": "RUH",
  "destination": "DXB",
  "tripType": "oneWay",
  "departureDate": "2026-11-25",
  "cabinClass": "economy",
  "directOnly": true,
  "sortBy": "price",
  "market": "sa",
  "maxItems": 50,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

### Output

Each scraped item is stored as one record in the default dataset: one record per flight itinerary (for round trips, the outbound and return flights together), priced at its cheapest available offer.

### Example output

```json
{
  "scrapedAt": "2026-10-07T17:09:09.445Z",
  "url": "https://sa.wego.com/en/flights/searches/RUH-DXB-2026-11-25/economy/1a:0c:0i?currency=SAR",
  "title": "Riyadh (RUH) → Dubai (DXB) · flyadeal",
  "price": 323,
  "currency": "SAR",
  "country": "Saudi Arabia",
  "market": "sa",
  "tripId": "5b64a1b67441334emsr:F3507~25~1655~1950",
  "tripType": "oneWay",
  "origin": "RUH",
  "originCity": "Riyadh",
  "destination": "DXB",
  "destinationCity": "Dubai",
  "departureDate": "2026-11-25",
  "returnDate": null,
  "cabinClass": "economy",
  "passengers": { "adults": 1, "children": 0, "infants": 0 },
  "pricePerAdult": 323.1,
  "taxAmount": 0,
  "provider": "Safarni",
  "providerCode": "safarni.com",
  "providerType": "ota",
  "bookingUrl": "https://handoff.wego.com/flights/continue?currency=SAR&url_locale=en&site_code=SA&device_type=desktop&app_type=WEB_APP&domain=sa.wego.com&fare_id=5b64a1b67441334emsr:safarni.com:92f2ac045f492995&route=RUH-DXB&search_id=5b64a1b67441334emsr&trip_id=RUH:DXB:2026-11-25&pwa=false&api_version=2&integration_code=safarni.com&region=us-east-1&placement_type=metasearch&show_weegio=true",
  "offersCount": 19,
  "otherOffers": [
    {
      "provider": "Makemytrip",
      "price": 334,
      "bookingUrl": "https://handoff.wego.com/flights/continue?currency=SAR&url_locale=en&site_code=SA&device_type=desktop&app_type=WEB_APP&domain=sa.wego.com&fare_id=5b64a1b67441334emsr:makemytrip.com-sa:507932f75bf2c8b6&route=RUH-DXB&search_id=5b64a1b67441334emsr&trip_id=RUH:DXB:2026-11-25&pwa=false&api_version=2&integration_code=makemytrip.com&region=us-east-1&placement_type=metasearch&show_weegio=true"
    }
  ],
  "checkedBagIncluded": null,
  "refundable": false,
  "exchangeable": false,
  "remainingSeats": null,
  "outbound": {
    "origin": "RUH",
    "destination": "DXB",
    "departure": "2026-11-25T16:55:00.000+03:00",
    "arrival": "2026-11-25T19:50:00.000+04:00",
    "durationMinutes": 115,
    "stops": 0,
    "stopoverAirports": [],
    "layoverMinutes": 0,
    "overnight": false,
    "airlines": ["flyadeal"],
    "flightNumbers": ["F3507"],
    "segments": [
      {
        "flightNumber": "F3507",
        "airline": "flyadeal",
        "origin": "RUH",
        "destination": "DXB",
        "departure": "2026-11-25T16:55:00.000+03:00",
        "arrival": "2026-11-25T19:50:00.000+04:00",
        "durationMinutes": 115,
        "aircraft": "Airbus Industrie A321"
      }
    ]
  },
  "inbound": null
}
```

The example is shortened: `otherOffers` normally lists up to five alternative providers.

### Field reference

| Field                                        | Type            | Description                                                                                       |
| -------------------------------------------- | --------------- | ------------------------------------------------------------------------------------------------- |
| `scrapedAt`                                  | string          | ISO 8601 timestamp of the scrape.                                                                 |
| `url`                                        | string          | Wego results page for the search.                                                                 |
| `title`                                      | string          | Route and airlines, e.g. `Riyadh (RUH) → Dubai (DXB) · flyadeal`.                                 |
| `price`                                      | number          | Total price for all passengers at the cheapest offer.                                             |
| `currency`                                   | string          | Currency of all prices (SAR, AED, KWD, QAR, BHD, OMR, EGP or your override).                      |
| `country`                                    | string          | Country of the Wego site searched.                                                                |
| `market`                                     | string          | Market code: `sa`, `ae`, `kw`, `qa`, `bh`, `om`, `eg`.                                            |
| `tripId`                                     | string          | Wego identifier of the itinerary within the search.                                               |
| `tripType`                                   | string          | `oneWay` or `roundTrip`.                                                                          |
| `origin` / `destination`                     | string          | IATA codes of the searched route.                                                                 |
| `originCity` / `destinationCity`             | string | null  | Place names in the selected language.                                                             |
| `departureDate` / `returnDate`               | string | null  | Searched dates.                                                                                   |
| `cabinClass`                                 | string          | Searched cabin class.                                                                             |
| `passengers`                                 | object          | Adults, children and infants searched.                                                            |
| `pricePerAdult`                              | number | null  | Price per adult at the cheapest offer.                                                            |
| `taxAmount`                                  | number | null  | Taxes included in the price.                                                                      |
| `provider` / `providerCode` / `providerType` | string | null  | Cheapest provider, its code and type (`airline` or `ota`).                                        |
| `bookingUrl`                                 | string | null  | Wego redirect link to book the cheapest offer.                                                    |
| `offersCount`                                | number          | Number of providers offering this itinerary.                                                      |
| `otherOffers`                                | array           | Up to five next-cheapest offers (`provider`, `price`, `bookingUrl`).                              |
| `checkedBagIncluded`                         | boolean | null | Whether a checked bag is included, when known.                                                    |
| `refundable` / `exchangeable`                | boolean | null | Fare conditions of the cheapest offer.                                                            |
| `remainingSeats`                             | number | null  | Seats left, when reported.                                                                        |
| `outbound`                                   | object          | Outbound flight: times, duration, stops, layover airports, airlines, flight numbers and segments. |
| `inbound`                                    | object | null  | Return flight (round trips only), same structure as `outbound`.                                   |

### ❓ FAQ

**Which countries and currencies are supported?**
Use the `market` field to pick the Wego country site: Saudi Arabia (`sa`, SAR), UAE (`ae`, AED), Kuwait (`kw`, KWD), Qatar (`qa`, QAR), Bahrain (`bh`, BHD), Oman (`om`, OMR) or Egypt (`eg`, EGP). Set `currency` to price in any other currency such as USD.

**Can I search round trips?**
Yes. Set `tripType` to `roundTrip` and provide `returnDate`. Each item contains both the outbound and the return flight with a single total price.

**Do I need start URLs?**
No. Flights are defined with `origin`, `destination` and dates. Use IATA codes — airport codes (RUH) or city codes (LON) both work.

**Does it support Arabic?**
Yes. Set `language` to `ar` to get airline, airport and city names in Arabic.

**How many results can I get, and in what order?**
Up to `maxItems` itineraries. `recommended` follows Wego's default ranking and is the fastest. `price`, `duration` and `departureTime` load all results first, so they take a little longer but return the true cheapest, shortest or earliest flights.

**How fresh is the data?**
Every run searches Wego live, so prices and availability are as current as the moment of the run. Prices can change quickly, and some providers may show different fares on later runs.

**What if Wego blocks my requests?**
Wego limits how many searches it accepts from one IP. If a run reports rate limiting, retry a little later or enable an Apify proxy in `proxyConfiguration`.

### 🔗 Want More Data?

Explore more scrapers from [boring_internet_explorer](https://apify.com/boring_internet_explorer):

- 🛒 [Jarir جرير Product Scraper](https://apify.com/boring_internet_explorer/jarir-scraper) — products and prices from Jarir in Saudi Arabia
- 📱 [eXtra - اكسترا Product Scraper](https://apify.com/boring_internet_explorer/extra-scraper) — electronics and appliance prices from extra.com
- 🏢 [Saudi Companies Scraper](https://apify.com/boring_internet_explorer/companies-scraper) — Saudi company data and B2B leads
- 🛍️ [Juno Product Scraper](https://apify.com/boring_internet_explorer/juno-product-scraper) — product and price data from Juno

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

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

3-letter IATA code of the departure airport or city, e.g. RUH, JED, DXB, KWI.

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

3-letter IATA code of the arrival airport or city, e.g. DXB, CAI, LHR.

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

One-way or round-trip search. Round trips require a return date.

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

Departure date (YYYY-MM-DD) or a relative date such as "14 days" or "2 weeks".

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

Return date (YYYY-MM-DD) or relative date. Only used for round trips.

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

Number of adult passengers (12+ years).

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

Number of children (2-11 years).

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

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

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

Cabin class to search for.

## `directOnly` (type: `boolean`):

Keep only itineraries without stops.

## `sortBy` (type: `string`):

Order of the returned itineraries. "Recommended" is Wego's default ranking and is the fastest option; other orders scan all results first.

## `market` (type: `string`):

Wego country site to search on. It decides which providers and default currency are used.

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

Optional 3-letter currency code (e.g. USD, EUR). Defaults to the market's currency.

## `language` (type: `string`):

Language of airline, airport and city names.

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

The maximum number of itineraries to return.

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

Your proxy configuration from Apify. Leave disabled unless the site blocks your IP.

## Actor input object example

```json
{
  "origin": "RUH",
  "destination": "DXB",
  "tripType": "oneWay",
  "departureDate": "14 days",
  "adults": 1,
  "children": 0,
  "infants": 0,
  "cabinClass": "economy",
  "directOnly": false,
  "sortBy": "recommended",
  "market": "sa",
  "language": "en",
  "maxItems": 50,
  "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 = {
    "origin": "RUH",
    "destination": "DXB",
    "departureDate": "14 days"
};

// Run the Actor and wait for it to finish
const run = await client.actor("boring_internet_explorer/wego-flights-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": "RUH",
    "destination": "DXB",
    "departureDate": "14 days",
}

# Run the Actor and wait for it to finish
run = client.actor("boring_internet_explorer/wego-flights-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": "RUH",
  "destination": "DXB",
  "departureDate": "14 days"
}' |
apify call boring_internet_explorer/wego-flights-scraper --silent --output-dataset

```

## MCP server setup

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