# Agoda Flights Scraper (`aboo.script/agoda-flights-scraper`) Actor

\[💰$2 / 1K] ⚡ Fast, cheap Agoda Flights scraper. No login, no API key. Search any route by airport code, city or URL in 60 currencies: airlines, flight numbers, times, terminals, stops, layovers, baggage, price, discount, promo codes, booking link and a price calendar.

- **URL**: https://apify.com/aboo.script/agoda-flights-scraper.md
- **Developed by:** [Aboo Script](https://apify.com/aboo.script) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 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

## Agoda Flights Scraper

![Agoda Flights Scraper](https://i.ibb.co/SwQDktMR/agoda-banner.png)

**Agoda Flights Scraper** extracts flight search results from [Agoda Flights](https://www.agoda.com/flights) into clean, structured data you can download as JSON, CSV, Excel, or HTML. Type a route such as `CGK-DPS` or `Singapore - London`, or paste an Agoda flights results URL, and get every itinerary with its airlines, flight numbers, departure and arrival times, terminals, stops and layovers, duration, baggage, price, discount, promo codes, and booking link. No account or login required.

### Introduction

[Agoda](https://www.agoda.com/) is one of the largest online travel platforms in Asia. Agoda Flights compares fares from hundreds of airlines, including low-cost carriers across Southeast Asia, and shows them in many currencies.

This Agoda flights scraper collects the same public results you see in your browser and turns them into a ready-to-use dataset. Run it once, schedule it every day to follow fares on your routes, or connect it to your own tools.

### What data can you extract from Agoda Flights?

- ✈️ Airline names, codes, and logos, and every flight number
- 🕒 Departure and arrival time, total duration in text and minutes
- 🛫 Departure and arrival airports with names, cities, and terminals
- 🔁 Number of stops, plus layover airport and layover time for each connection
- 💲 Price, original price, discount, and currency
- 🏷️ Promo codes shown with the fare, with their discount and final price
- 🧳 Cabin bag and checked baggage included or not
- 🎖️ Badges such as Cheapest and Best
- 💺 Cabin class, passengers, trip type (one-way or round trip)
- 🔗 Results page URL and booking link
- 📅 Optional price calendar: cheapest fare for the 2 days before and after your date

### Use Cases

- 📈 **Fare tracking**: follow prices on your routes every day and spot the best time to book.
- 🕵️ **Airline and travel agency research**: compare carriers, schedules, and fares on busy routes.
- 🧳 **Travel planning tools**: power deal alerts, travel blogs, or trip planners with real fares.
- 🗂️ **Market research**: study route coverage, low-cost carrier pricing, and connection options.
- 🤖 **AI and automation**: feed clean, structured data into spreadsheets, dashboards, or AI workflows.

### How to scrape Agoda Flights step by step

1. Type one or more routes into **Routes** (for example `CGK-DPS` or `Jakarta - Bali`), or paste Agoda flights results URLs into **Start URLs**.
2. Pick the **Departure date**, and a **Return date** for round trips.
3. Set passengers, cabin class, sort order, and currency if needed.
4. Set **Maximum flights per route** to how many itineraries you want per route.
5. Click **Start** and download your data in JSON, CSV, Excel, or HTML from the **Output** tab.

### Input

- **Start URLs**: Agoda flights results URLs, such as `https://www.agoda.com/flights/results?departureFrom=CGK&departureFromType=1&arrivalTo=DPS&arrivalToType=1&departDate=2026-12-16&searchType=1&cabinType=Economy&adults=1&sort=8`. The route, dates, passengers, cabin class, and sort order in the URL are used as they are.
- **Routes**: one route per line. Use airport codes (`CGK-DPS`), city codes that cover every airport of a city (`LON-NYC`), or place names (`Jakarta - Bali`, `Singapore to London`).
- **Maximum flights per route**: how many itineraries to collect for each start URL or route. Use 0 for all results.
- **Departure date**: departure date for the routes. Leave empty for 14 days from today.
- **Return date**: set it for a round trip, leave it empty for one-way flights.
- **Adults**, **Children**, **Infants**: passengers for the routes.
- **Cabin class**: economy, premium economy, business, or first.
- **Sort by**: best, cheapest, shortest, fewest stops, earliest departure, or earliest arrival.
- **Currency**: currency of all prices, for routes and start URLs.
- **Include price calendar**: adds one extra item per route with the cheapest fare of the days around your date.

You can use start URLs, routes, or both in the same run.

### Input Examples

Search two routes:

```json
{
  "searchQueries": ["CGK-DPS", "Singapore - London"],
  "maxResults": 5
}
```

Round trip in business class for two adults, cheapest first, in euros, with the price calendar:

```json
{
  "searchQueries": ["London - New York"],
  "departureDate": "2026-12-10",
  "returnDate": "2026-12-17",
  "adults": 2,
  "cabinClass": "Business",
  "sort": "price",
  "currency": "EUR",
  "maxResults": 20,
  "includePriceCalendar": true
}
```

Scrape a results page from Agoda:

```json
{
  "startUrls": [
    {
      "url": "https://www.agoda.com/flights/results?departureFrom=CGK&departureFromType=1&arrivalTo=DPS&arrivalToType=1&departDate=2026-12-16&searchType=1&cabinType=Economy&adults=1&sort=8"
    }
  ],
  "maxResults": 5
}
```

### Output

Each itinerary is saved as one item in the dataset. Here is an example:

```json
{
  "url": "https://www.agoda.com/flights/results?departureFrom=CGK&departureFromType=1&arrivalTo=DPS&arrivalToType=1&departDate=2026-10-30&searchType=1&cabinType=Economy&adults=1&sort=8",
  "resultType": "itinerary",
  "itineraryId": "1546276910",
  "tripType": "oneWay",
  "origin": "CGK",
  "destination": "DPS",
  "departureDate": "2026-10-30",
  "returnDate": null,
  "departureTime": "2026-10-30T08:30:00",
  "arrivalTime": "2026-10-30T11:25:00",
  "departureAirport": { "code": "CGK", "name": "Soekarno-Hatta International Airport", "city": "Jakarta" },
  "arrivalAirport": { "code": "DPS", "name": "Ngurah Rai International Airport", "city": "Bali" },
  "airline": "Lion Air",
  "airlines": [
    { "code": "JT", "name": "Lion Air", "logo": "https://img.agoda.net/images/mvc/default/airlines/JT_v1.png" }
  ],
  "flightNumbers": ["JT30"],
  "stops": 0,
  "duration": "1h 55m",
  "durationMinutes": 115,
  "cabinClass": "Economy",
  "price": 84,
  "originalPrice": 89,
  "discount": 5,
  "currency": "USD",
  "passengers": { "adults": 1, "children": 0, "infants": 0 },
  "cabinBagIncluded": true,
  "checkedBagIncluded": true,
  "badges": ["Cheapest", "Best"],
  "promoCodes": [],
  "bookingUrl": "https://www.agoda.com/en-us/packages/book?cid=-1&pk=...",
  "segments": [
    {
      "flightNumber": "JT30",
      "airlineCode": "JT",
      "airlineName": "Lion Air",
      "departureAirport": { "code": "CGK", "name": "Soekarno-Hatta International Airport", "city": "Jakarta" },
      "departureTerminal": "Terminal 1B",
      "departureTime": "2026-10-30T08:30:00",
      "arrivalAirport": { "code": "DPS", "name": "Ngurah Rai International Airport", "city": "Bali" },
      "arrivalTerminal": "Terminal D",
      "arrivalTime": "2026-10-30T11:25:00",
      "duration": "1h 55m",
      "durationMinutes": 115,
      "cabinClass": "Economy",
      "fareBasisCode": null,
      "layoverAirport": null,
      "layoverDuration": null,
      "layoverMinutes": null
    }
  ]
}
```

With **Include price calendar**, each route also gets one item like this:

```json
{
  "url": "https://www.agoda.com/flights/results?departureFrom=CGK&departureFromType=1&arrivalTo=DPS&arrivalToType=1&departDate=2026-10-30&searchType=1&cabinType=Economy&adults=1&sort=8",
  "resultType": "priceCalendar",
  "origin": "CGK",
  "destination": "DPS",
  "tripType": "oneWay",
  "currency": "USD",
  "days": [
    { "departureDate": "2026-10-28", "returnDate": null, "price": 63.02 },
    { "departureDate": "2026-10-29", "returnDate": null, "price": 74.1 },
    { "departureDate": "2026-10-30", "returnDate": null, "price": 83.44 },
    { "departureDate": "2026-10-31", "returnDate": null, "price": 71.19 },
    { "departureDate": "2026-11-01", "returnDate": null, "price": 71.05 }
  ]
}
```

You can download the dataset in JSON, CSV, Excel, XML, or HTML, or access it through the Apify API.

### Notes

- Round trips list the outbound flights with the total round-trip price, like the first step on Agoda. Return flight details and the booking link are not included for round trips.
- Prices are the total for all passengers, rounded the same way as on Agoda. The price calendar shows exact cheapest fares, so it can differ by a few cents.
- Times are local airport times.
- Filters you set in the Agoda sidebar (airlines, stops, duration, price) are not applied; the route, dates, passengers, cabin class, and sort order are.
- Results URLs with a past departure date and unknown places are skipped with a warning.
- Fares change quickly, so the same search can return different prices a few minutes later.
- Some airlines do not show baggage details, so `cabinBagIncluded` and `checkedBagIncluded` are `null`.

### Why use the Agoda Flights Scraper?

- ✅ **No login needed**: works with public data only, so there is no account to manage.
- 🌍 **Simple routes**: type codes or place names, no need to build URLs.
- 💱 **Any currency**: prices in 60 currencies.
- 🧩 **Full itinerary detail**: every segment with terminals, layovers, and baggage.
- 📅 **Price calendar**: see if a nearby day is cheaper.
- 🧹 **Clean data**: numbers are real numbers, durations come in minutes too, and text is free of HTML.
- 💸 **Pay for what you need**: set a limit per route and keep every run small and cheap.

### FAQ

#### How many flights can I scrape?

Set any number in **Maximum flights per route**, or 0 for all results. The actor keeps going until it reaches your limit or Agoda has no more results.

#### Do I need an Agoda account?

No. The actor only collects publicly available fares. You do not need to log in or provide any account details.

#### Can I track fares every day?

Yes. Use Apify Schedules to run the actor every day with the same routes and dates, and compare prices over time.

#### Why are some fields empty?

Not every fare shows every detail. When a value is not shown on Agoda, it is returned as `null`.

#### Can I request a new feature or filter?

Yes. If you need other inputs, such as airline or stop filters, multi-city trips, or return flight details, get in touch and they can be added.

#### Can I get a custom or private version?

Yes. The actor can be customized for your workflow, delivered as a private version, or a new scraper can be built for a different website. Use the contact details below.

### Need to scrape other travel platforms?

- [Agoda Reviews Scraper](https://apify.com/aboo.script/agoda-reviews-scraper): hotel reviews from Agoda and Booking.com, and tour reviews from Agoda Activities.
- [Ticketmaster Scraper](https://apify.com/aboo.script/ticketmaster-scraper): concerts, sports, and theater events with venues, dates, and ticket prices.

***

**Need help or want a custom solution?**

- 📧 Email: aboo.script@gmail.com
- 🧩 More scrapers: [Apify profile](https://apify.com/aboo.script)

### Image Credit

Image credit: [Agoda](https://www.agoda.com/)

# Actor input Schema

## `startUrls` (type: `array`):

Agoda flights results URLs (https://www.agoda.com/flights/results?departureFrom=...). The route, dates, passengers, cabin class and sort order in the URL are used as they are.

## `searchQueries` (type: `array`):

Routes to search, one per line, as airport or city codes ("CGK-DPS", "LON-NYC") or place names ("Jakarta - Bali", "Singapore to London"). Dates, passengers, cabin class and sort order come from the options below.

## `maxResults` (type: `integer`):

Maximum number of itineraries to scrape per start URL or route. Use 0 for all results.

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

Departure date for the routes (YYYY-MM-DD). Leave empty for 14 days from today.

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

Return date for a round trip (YYYY-MM-DD). Leave empty for one-way flights. Round-trip results list the outbound flights with the total round-trip price.

## `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), at most one per adult.

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

Cabin class for the routes.

## `sort` (type: `string`):

Result order for the routes.

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

Currency of the prices, for both routes and start URLs.

## `includePriceCalendar` (type: `boolean`):

Adds one extra item per route (resultType "priceCalendar") with the cheapest fare of the 2 days before and after the departure date.

## Actor input object example

```json
{
  "searchQueries": [
    "CGK-DPS",
    "Singapore - London"
  ],
  "maxResults": 5,
  "adults": 1,
  "children": 0,
  "infants": 0,
  "cabinClass": "Economy",
  "sort": "best",
  "currency": "USD",
  "includePriceCalendar": 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 = {
    "searchQueries": [
        "CGK-DPS",
        "Singapore - London"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aboo.script/agoda-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 = { "searchQueries": [
        "CGK-DPS",
        "Singapore - London",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("aboo.script/agoda-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 '{
  "searchQueries": [
    "CGK-DPS",
    "Singapore - London"
  ]
}' |
apify call aboo.script/agoda-flights-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aboo.script/agoda-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/cTyf1TnTQhUuGk4lR/builds/9qtvPp6FORlRRMDvM/openapi.json
