# Enuygun Flight and Bus Prices Scraper (`dodoflix/enuygun-scraper`) Actor

Flight and intercity bus fares in Turkey for any route and date: carrier, times in UTC and local, stops, price in TRY, baggage and seats left. Fast HTTP scraper, no browser.

- **URL**: https://apify.com/dodoflix/enuygun-scraper.md
- **Developed by:** [Doğukan Metan](https://apify.com/dodoflix) (community)
- **Categories:** Travel
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.35 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## Enuygun Flight and Bus Prices Scraper

Get flight and intercity bus fares in Turkey for any route and date as clean JSON, CSV or Excel: carrier, flight number, departure and arrival in UTC and local time, duration, stops, price in TRY, baggage, seats left and a link to the search. Flights come from [Enuygun](https://www.enuygun.com), which lists Turkish Airlines, Pegasus, AJet, SunExpress and international carriers, and buses from the same site (Metro, Kamil Koç, Pamukkale and hundreds of other operators). Runs on plain HTTP, so it is fast and cheap, and the price already includes platform usage.

### What you can do with it

- **Monitor fares.** Run a route every day and track how the cheapest flight or bus ticket moves toward the departure date.
- **Compare modes.** Search "Istanbul to Ankara" for flights and buses in one run and compare price against travel time.
- **Find the cheapest day.** Give a date range and get every day of it, sorted by price inside each day.
- **Feed a travel app or an AI agent.** Dates are ISO UTC, prices are numbers, and every result has a link to the live search.

### Quick start

Open the Input tab, enter a route and press Start. Or pick one of these:

**Istanbul to Ankara, flights and buses, 14 days from today**

```json
{
    "origin": "Istanbul",
    "destination": "Ankara"
}
```

**Istanbul airport to Izmir airport, direct flights on three dates**

```json
{
    "origin": "IST",
    "destination": "ADB",
    "mode": "flight",
    "dates": ["2026-12-18", "2026-12-19", "2026-12-20"],
    "directOnly": true
}
```

**Every bus Istanbul to Ankara for a week, cheapest 20 per day**

```json
{
    "origin": "Istanbul",
    "destination": "Ankara",
    "mode": "bus",
    "dateFrom": "2026-12-18",
    "dateTo": "2026-12-24",
    "maxResultsPerSearch": 20
}
```

**Two adults and a child to London in business class**

```json
{
    "origin": "IST",
    "destination": "LHR",
    "mode": "flight",
    "adults": 2,
    "children": 1,
    "cabinClass": "business"
}
```

### Input

| Field | What it does |
|---|---|
| `origin`, `destination` | A Turkish city name (Istanbul, Ankara, Izmir, Antalya, Trabzon and about 40 more), an airport code (IST, SAW, ESB, ADB) or any airport code worldwide for flights. A city name searches all airports of the city, an airport code that airport only |
| `mode` | `both` (default), `flight` or `bus` |
| `dates` | Exact departure dates as `YYYY-MM-DD` |
| `dateFrom`, `dateTo` | Every day in a range, at most 120 days. Used when `dates` is empty |
| `daysAhead` | With no dates and no range, the day this many days from today. Default 14 |
| `adults`, `children`, `infants` | Flight passengers. Bus prices are per passenger |
| `cabinClass` | `economy` or `business` (flights) |
| `directOnly` | Drop flights with a stopover |
| `maxItems` | Stop the whole run after this many results |
| `maxResultsPerSearch` | Keep the cheapest N of each route and date. Default 50 |
| `maxConcurrency`, `maxRequestsPerMinute` | Request speed. Defaults 3 and 60 |
| `proxyConfiguration` | No proxy by default, which works from Apify. Switch to residential proxy with country Turkey only if you see 403 errors |

Bus searches need a Turkish city name, or the code of an airport in a Turkish city (ADB gives Izmir). Istanbul has two bus regions: "Istanbul" and "IST" use the European side, "SAW" and "Istanbul Anadolu" the Asian side.

### Output

Every result is one flight or one bus departure. Download the dataset as JSON, CSV, Excel, XML or HTML, or read it through the API.

**Flight**

```json
{
    "site": "enuygun",
    "mode": "flight",
    "origin": "IST",
    "destination": "ADB",
    "originName": "İstanbul Havalimanı",
    "destinationName": "Adnan Menderes Havalimanı",
    "carrier": "Pegasus",
    "carrierCode": "PC",
    "tripNumber": "PC3305",
    "departureLocal": "2026-11-30T08:45:00",
    "departureUtc": "2026-11-30T05:45:00.000Z",
    "arrivalLocal": "2026-11-30T09:50:00",
    "arrivalUtc": "2026-11-30T06:50:00.000Z",
    "durationMinutes": 65,
    "stops": 0,
    "stopovers": [],
    "price": 1513.29,
    "pricePerPassenger": 1513.29,
    "currency": "TRY",
    "passengers": 1,
    "cabinClass": "economy",
    "fareClass": "U",
    "checkedBaggageKg": 15,
    "baggage": ["1 parça X 3 kg el çantası (40x30x15 cm)", "1 parça kabin bagajı (55x40x23 cm)", "1 parça X 15 kg bagaj"],
    "seatsLeft": null,
    "refundable": true,
    "seatLayout": null,
    "amenities": null,
    "searchDate": "2026-11-30",
    "url": "https://www.enuygun.com/ucak-bileti/arama/istanbul-havalimani-izmir-adnan-menderes-havalimani-ist-adb/?gidis=30.11.2026&yetiskin=1&cocuk=0&bebek=0&sinif=ekonomi"
}
```

**Bus**

```json
{
    "site": "enuygun",
    "mode": "bus",
    "origin": "istanbul-avrupa-bolgesi",
    "destination": "ankara-otogari",
    "originName": "Esenler",
    "destinationName": "Ankara (Aşti)",
    "carrier": "Yeşil Malatya Turizm",
    "carrierCode": "yesil-malatya-turizm",
    "tripNumber": null,
    "departureLocal": "2026-11-30T14:00:00",
    "departureUtc": "2026-11-30T11:00:00.000Z",
    "arrivalLocal": "2026-11-30T22:30:00",
    "arrivalUtc": "2026-11-30T19:30:00.000Z",
    "durationMinutes": 510,
    "stops": 0,
    "price": 560,
    "pricePerPassenger": 560,
    "currency": "TRY",
    "passengers": 1,
    "seatsLeft": 41,
    "refundable": false,
    "seatLayout": "2+1",
    "amenities": [],
    "searchDate": "2026-11-30",
    "url": "https://www.enuygun.com/otobus-bileti/arama/istanbul-avrupa-bolgesi-ankara-otogari/?gidis=30.11.2026"
}
```

`departureLocal` and `arrivalLocal` are wall-clock times at the departure and arrival airport or terminal, `departureUtc` and `arrivalUtc` are the same moments in UTC. `price` is the total for all passengers in TRY and `pricePerPassenger` the average per person. Fields that do not apply to a mode, or that the site did not give, are `null`: flights have no seat layout, buses have no flight number, baggage or fare class, and `seatsLeft` is `null` for most flights because the site only shows it when seats are almost gone.

### Pricing

You pay per result: **$1.50 per 1,000 results**. Platform usage is included, so there are no extra charges. For example, a daily Istanbul to Ankara run with 50 flights and 50 buses costs about $0.15. You only pay for results you get, and a run that finds nothing costs almost nothing.

You can cap spending on every run in the run options. The Actor stops cleanly when the cap is reached.

### Why this Actor

- **Flights and buses in one run.** Most travel scrapers cover only one of them.
- **Times you can compare.** Local and UTC timestamps for departure and arrival, with each airport's own time zone, so a flight to London lands at the right hour.
- **Dates and ranges.** Search one day, a list of days or a whole range in one run.
- **Predictable cost.** One price per result with usage included.

### FAQ

**Do I need a proxy?** No. It works from Apify's servers as is.

**How fast is it?** About 30 searches a minute by default (a flight search is two requests, a bus search one). The Actor slows down by itself when the site asks it to wait, so a very large date range simply takes longer.

**Which sites does it search?** Enuygun, for both flights and buses.

**Are the prices live?** They are the prices Enuygun shows at the time of the run. For some flights Enuygun shows a recent cached fare, so the price can change when you open the link and book.

**Does it search return trips?** No. Search each direction as its own run.

**Does it include fare families such as Basic and Flex?** No. The price is the lowest fare Enuygun shows for that flight, with the baggage that comes with it.

**Why did I get fewer results than I set?** The route had fewer departures that day, `directOnly` removed some, or `maxResultsPerSearch` kept only the cheapest.

**Can I use it from code?**

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('dodoflix/enuygun-scraper').call({
    origin: 'Istanbul',
    destination: 'Izmir',
    daysAhead: 21,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

It also connects to Make, Zapier, Google Sheets, Slack and webhooks from the Integrations tab.

**Something broke or a field is missing.** Open an issue on the Issues tab with the input you used.

### Legal

This Actor collects public fare listings. You are responsible for how you use the data, including the site's terms and robots.txt.

### Türkçe özet

Türkiye içi ve uluslararası uçuş ile şehirlerarası otobüs fiyatlarını JSON, CSV veya Excel olarak indirin. Kalkış ve varış saatleri hem yerel hem UTC olarak gelir. Proxy ayarı gerekmez ve platform kullanımı fiyata dahildir.

# Actor input Schema

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

Departure place: a Turkish city name (Istanbul, Ankara, Izmir, Antalya, Trabzon), an airport code (IST, SAW, ESB, ADB) or any airport code worldwide for flights. A city name searches all of its airports (Istanbul covers IST and SAW); an airport code searches that airport only. Buses need a city name or a code of a Turkish city airport.

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

Arrival place, written like the departure place.

## `mode` (type: `string`):

Flights, intercity buses, or both in one run.

## `dates` (type: `array`):

Exact departure dates as YYYY-MM-DD, for example 2026-12-20. When empty, the date range or 'Days ahead' below is used.

## `dateFrom` (type: `string`):

Search every day from this date (YYYY-MM-DD) to the last date of the range. Ignored when exact dates are set. At most 120 days.

## `dateTo` (type: `string`):

Last day of the range (YYYY-MM-DD). When empty, only the first date is searched.

## `daysAhead` (type: `integer`):

Used when no dates and no range are set: search the day this many days from today (Istanbul time).

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

Flights only. Adult passengers. The price field is the total for all passengers, pricePerPassenger the average per person. Bus prices are per passenger.

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

Flights only. Child passengers.

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

Flights only. Infants travelling on an adult's lap, at most one per adult.

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

Flights only.

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

Drop flights with a stopover.

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

Stop the whole run after this many results. Leave empty for no limit.

## `maxResultsPerSearch` (type: `integer`):

Keep only the cheapest options of each search (a busy bus route has 300 or more departures a day).

## `maxConcurrency` (type: `integer`):

Parallel requests. Four ran 90 requests with no errors; at eight searches started to time out.

## `maxRequestsPerMinute` (type: `integer`):

Request speed. A flight search is two requests, a bus search one.

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

No proxy is needed: Apify datacenter IPs get through. If the site starts answering with 403 from your runs, switch to Apify residential proxy with country Turkey.

## Actor input object example

```json
{
  "origin": "Istanbul",
  "destination": "Ankara",
  "mode": "both",
  "daysAhead": 14,
  "adults": 1,
  "children": 0,
  "infants": 0,
  "cabinClass": "economy",
  "directOnly": false,
  "maxResultsPerSearch": 50,
  "maxConcurrency": 3,
  "maxRequestsPerMinute": 60,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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": "Istanbul",
    "destination": "Ankara",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dodoflix/enuygun-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": "Istanbul",
    "destination": "Ankara",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("dodoflix/enuygun-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": "Istanbul",
  "destination": "Ankara",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call dodoflix/enuygun-scraper --silent --output-dataset

```

## MCP server setup

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