# Changi Airport Timetable Scraper (`rl1987/sin-airport-timetable`) Actor

Scrapes arrival and departure flight timetables from Changi Airport (SIN).

- **URL**: https://apify.com/rl1987/sin-airport-timetable.md
- **Developed by:** [R.L.](https://apify.com/rl1987) (community)
- **Categories:** Travel
- **Stats:** 2 total users, 1 monthly users, 33.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 flight rows

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

**Changi Airport Timetable Scraper** pulls live arrival and departure flight data straight from [Changi Airport's (SIN)](https://www.changiairport.com/en/fly/flight-information.html) own flight-status API — the same one powering the airport's official website. Get flight numbers, airlines, scheduled/estimated/actual times, gates, baggage belts, terminals, and flight status in structured JSON, CSV, or Excel, without touching a browser. Run it once, on a schedule, or hook it into your own app via the Apify API.

### Why use this scraper?

- **Flight tracking dashboards** — build a live arrivals/departures board for a travel app or internal tool.
- **Passenger meeting & logistics** — check gate, belt, and delay status for pickups or ground transport planning.
- **Travel & OTA data feeds** — enrich itineraries with real-time SIN flight status.
- **Research & analytics** — study route frequency, delay patterns, or terminal load over time.

Runs on Apify, so you get scheduling, an API for every result, and monitoring/alerting for free — no server or proxy setup needed.

### How to use it

1. Open the Actor's **Input** tab.
2. Pick a **direction**: arrivals, departures, or both.
3. Optionally set a **scheduled date**, **terminal**, and whether to fetch **backwards in time** from that date.
4. Optionally cap the number of results with **max items**.
5. Click **Start** and download results from the **Output** tab once the run finishes.

### Input

| Field | Type | Description |
|---|---|---|
| `direction` | select | `dep` (departures only, default), `arr` (arrivals only), or `both` |
| `scheduledDate` | date | Flight schedule date, `YYYY-MM-DD`. Defaults to today. |
| `terminal` | select | Filter by terminal: `all` (default), `1`, `2`, `3`, or `4` |
| `prev` | boolean | Page backwards in time from the scheduled date/time instead of forwards. Default `false`. |
| `maxItems` | integer | Cap on results per direction. Default `100`; set explicitly to fetch more (or pass `null` for unlimited). |
| `proxyConfiguration` | proxy | Apify Proxy config, rotated per request to avoid rate limiting. Defaults to Apify Proxy enabled. |

Example input:

```json
{
  "direction": "both",
  "scheduledDate": "2026-08-02",
  "terminal": "1",
  "prev": false,
  "maxItems": 100
}
```

### Output

Each dataset item is one flight entry. Example:

```json
{
  "flight_number": "SQ963",
  "direction": "ARR",
  "airline": "SQ",
  "airline_details": { "name": "Singapore Airlines" },
  "airport_details": { "name": "Jakarta" },
  "terminal": "3",
  "display_belt": "45",
  "scheduled_date": "2026-08-01",
  "scheduled_time": "20:55",
  "flight_status": "Landed"
}
```

You can download results as JSON, CSV, Excel, or XML from the Output tab, or pull them programmatically via the [Apify API](https://docs.apify.com/api/v2).

#### Main fields

| Field | Description |
|---|---|
| `flight_number` | Flight code, e.g. `SQ963` |
| `direction` | `ARR` or `DEP` |
| `airline_details.name` | Airline name |
| `airport_details.name` | Origin (arrivals) or destination (departures) airport |
| `terminal` | Changi terminal |
| `display_gate` | Departure gate (departures) |
| `display_belt` | Baggage belt (arrivals) |
| `scheduled_date` / `scheduled_time` | Scheduled date and time |
| `estimated_timestamp` / `actual_timestamp` | Estimated / actual movement time |
| `flight_status` | Current status, e.g. `Confirmed`, `Landed`, `New Gate` |

### Cost

This is a lightweight API-based scraper — no browser rendering. A run fetching a few hundred flights typically finishes in well under a minute and uses minimal compute units, so it comfortably fits within Apify's free tier for regular use.

### Tips

- Use `maxItems` to limit runs when you only need the next handful of flights.
- Combine `terminal` with `direction` to build a focused board for one terminal.
- Schedule the Actor (Apify's built-in **Schedules**) to keep a dataset continuously refreshed.

### FAQ & disclaimer

This Actor reads publicly accessible flight data exposed by Changi Airport's own website. Flight information can change without notice — always verify time-critical details (gate, delay, cancellation) directly with the airline or airport before travelling. Found a bug or have a feature request? Use the Actor's **Issues** tab.

# Actor input Schema

## `direction` (type: `string`):

Flight direction to scrape. Choose 'both' to scrape arrivals and departures.

## `scheduledDate` (type: `string`):

Flight schedule date in YYYY-MM-DD format. Defaults to today (Asia/Singapore) if not set.

## `terminal` (type: `string`):

Filter flights by terminal. Leave as 'All' to fetch flights from every terminal.

## `prev` (type: `boolean`):

If enabled, pages backwards from the scheduled date/time instead of forwards (Changi's API 'prev' flag).

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

Maximum number of flight entries to fetch per direction. Leave empty to fetch all available entries.

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

Proxy servers to rotate requests through, to avoid rate limiting (HTTP 429) from Changi's API.

## Actor input object example

```json
{
  "direction": "dep",
  "scheduledDate": "2026-08-02",
  "terminal": "all",
  "prev": false,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `flights` (type: `string`):

No description

## `input` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("rl1987/sin-airport-timetable").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("rl1987/sin-airport-timetable").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 '{}' |
apify call rl1987/sin-airport-timetable --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=rl1987/sin-airport-timetable",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/nV8Ph11ljBNQaaFH1/builds/g4a3Sh68tSji82szq/openapi.json
