Hong Kong MTR Realtime Scraper
Pricing
from $7.50 / 1,000 results
Hong Kong MTR Realtime Scraper
Query the official Hong Kong MTR realtime feed for any line and station. Returns line code, station code, direction, destination, platform, and minutes to arrival. Track Tuen Ma, East Rail, Tsuen Wan, Island, and other lines for commuter tools and travel dashboards.
Pricing
from $7.50 / 1,000 results
Rating
0.0
(0)
Developer
ParseForge
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Share

🚇 Hong Kong MTR Realtime Scraper
🚀 Export live Hong Kong MTR train schedule and arrival times from the Hong Kong open data portal in seconds. From the public Hong Kong MTR source to spreadsheet, JSON, JSONL, XML, RSS, or HTML.
🕒 Last updated: 2026-06-05 · 📊 11 fields per record · Public Hong Kong MTR data · Real-time
The Hong Kong MTR Realtime Scraper turns the Hong Kong MTR public endpoint into a clean, structured dataset. It pulls live Hong Kong MTR train schedule and arrival times from the Hong Kong open data portal, normalizes the fields, and pushes one row per record.
Coverage is whatever Hong Kong MTR publishes on the public endpoint at the moment you run the actor. No login, no API key, no scraping tricks. Just clean data, ready for analysis.
| 🎯 Target Audience | 💡 Primary Use Cases |
|---|---|
| 📊 Analysts | Pull a fresh snapshot for dashboards |
| 🛠️ Developers | Mirror the feed into your own database |
| 📰 Journalists | Verify facts quickly without writing client code |
| 🤖 ML engineers | Build training sets from the public feed |
| 🏢 Operations teams | Monitor changes over time |
| 🎓 Researchers | Use the data for academic studies |
📋 What the Hong Kong MTR Realtime Scraper does
- Calls the public Hong Kong MTR endpoint and parses the response.
- Flattens the data into one row per record with clean field names.
- Surfaces upstream errors as a single record with the
errorfield set, so your pipeline does not crash. - Lets you cap the output with
maxItemsfor cheap previews. - Streams results to the Apify dataset for instant export.
💡 Why it matters: Public feeds change shape and field names constantly. This actor gives you a stable, documented schema your downstream tooling can rely on.
🎬 Full Demo
🚧 Coming soon.
⚙️ Input
| Field | Type | Required | Description |
|---|---|---|---|
maxItems | integer | No | Free users: 10. Paid users: up to 1,000,000. Prefill: 10. |
line | string | No | MTR line code (e.g. TML, EAL, TWL). |
station | string | No | Station code (e.g. ETS, ADM, CEN). |
Example input:
{"maxItems": 10,"line": "TML","station": "ETS"}
⚠️ Good to Know: This actor depends on the public Hong Kong MTR endpoint. If the upstream is rate-limiting or temporarily unavailable, the actor pushes a single record with the
errorfield populated. Re-run later.
📊 Output
Each record is a flat object. The error field is always last.
| Field | Type | Description |
|---|---|---|
🛤️ Line line | string | MTR line code. |
🚉 Station station | string | Station code. |
🧭 Direction direction | string | Direction (UP/DOWN). |
🔢 Train Seq trainSeq | number | Train sequence. |
🎯 Destination dest | string | Destination station code. |
🚏 Platform plat | string | Platform number. |
⏰ TTNT ttnt | string | Time to next train (minutes). |
🕒 Time time | string | Scheduled time. |
✅ Valid valid | string | Validity flag. |
🕒 scrapedAt | string | When this row was fetched. |
❌ error | string | Set if the upstream response was an error. |
Sample record:
{"line": "","station": "","direction": "","trainSeq": 0,"dest": "","plat": "","ttnt": "","time": "","valid": "","scrapedAt": "2026-06-05T12:00:00.000Z","error": null}
✨ Why choose this Actor
| 🆓 | Works on the free Apify tier with no Hong Kong MTR account required. | | 🧹 | Clean, snake-friendly field names ready for BI tools. | | 🛟 | Surfaces upstream rate-limit and error responses as a clean record instead of crashing. | | 🔌 | Zero setup. Click run, get data. | | 💾 | Push to dataset for instant spreadsheet, JSON, JSONL, XML, RSS, or HTML export. | | ⚡ | Lightweight. No browser, no heavy dependencies. |
📈 How it compares to alternatives
| Approach | Setup time | Clean fields? | Error handling? |
|---|---|---|---|
| Roll your own fetch | 30 min + | ❌ | ❌ |
| Generic RSS reader | 5 min | partial | ❌ |
| This Actor | 5 sec, no install | ✅ | ✅ |
🚀 How to use
- Click Try for free.
- Adjust any filters in the input form (defaults are fine for a first run).
- Click Start. Your dataset is ready in seconds. Download as spreadsheet, JSON, JSONL, XML, RSS, or HTML, or pipe to your warehouse.
💼 Business use cases
📊 Operational dashboards. Pull a fresh snapshot every few minutes and feed your status board.
🤖 ML feature engineering. Build a clean training set from the public feed for downstream modelling.
📰 Newsroom fact-checking. Reporters can grab a verified snapshot in seconds, no specialist tool needed.
🏢 Compliance and audit. Keep a tamper-evident log of what the upstream source said, when.
🔌 Automating Hong Kong MTR Realtime Scraper
- Make / Zapier: trigger this actor on a schedule, push results to Airtable, Google Sheets, or Slack.
- Cron schedule: native Apify scheduler.
- Webhooks: get a POST to your endpoint the moment a run finishes.
- Pipe to BigQuery / Snowflake / Postgres: native Apify integrations move datasets straight into your warehouse.
🌟 Beyond business use cases
🎓 Education. Teach a class using a real-time public feed instead of a stale textbook dataset.
🧪 Personal research. Track changes over time for whatever you find interesting.
🤝 Non-profit and open data. Build public dashboards without writing client code.
🧰 Tinkering and prototyping. Spin up a clean feed in 5 seconds to test a new tool or pipeline idea.
🤖 Ask an AI assistant about this scraper
Paste this README into ChatGPT, Claude, or any AI assistant and ask it to map your workflow to the actor's inputs. The schema, examples, and field list above contain everything an LLM needs to design a working pipeline.
❓ Frequently Asked Questions
❓ Do I need an account with Hong Kong MTR? No. This actor uses the public endpoint only.
❓ Is this scraping or API? It is a thin wrapper over the public Hong Kong MTR endpoint, normalised for downstream tools.
❓ Will the schema change? The documented fields are stable. New fields from upstream are passed through as-is.
❓ How fresh is the data? As fresh as Hong Kong MTR publishes it. The actor reads live every run.
❓ What happens during a rate-limit? The actor pushes a single record with the error field populated instead of crashing.
❓ Can I schedule runs? Yes, use the Apify scheduler or hook into Make, Zapier, or cron.
❓ How do I cap the cost of a test run? Set maxItems to a small number, such as 5 or 10.
❓ What format can I download? Spreadsheet, JSON, JSONL, XML, RSS, or HTML straight from the Apify dataset UI.
❓ Is the data accurate? It mirrors what Hong Kong MTR publishes. Any inaccuracy upstream will be mirrored downstream.
❓ Can I run it from my own code? Yes, every Apify actor exposes a REST API and SDK clients in popular languages.
🔌 Integrate with any app
Apify ships native integrations with Make, Zapier, Slack, Discord, Google Drive, Google Sheets, Gmail, Airbyte, Keboola, Telegram, GitHub, and any REST API or webhook endpoint. Trigger runs from a calendar event, a form submission, a cron job, or pipe results straight into BigQuery, Snowflake, or a Postgres warehouse.
🔗 Recommended Actors
| Actor | What it does |
|---|---|
| ParseForge OurAirports Scraper | Global airport database. |
| ParseForge Alpha Vantage Public Scraper | Stocks, FX, crypto, indicators. |
| ParseForge NBA Stats Scraper | NBA player and team stats. |
| ParseForge CurseForge Mods Scraper | Public mod metadata. |
💡 Pro Tip: browse the complete ParseForge collection for 900+ production-grade scrapers across business intelligence, real estate, e-commerce, sports, finance, and public records.
Disclaimer: This actor scrapes only publicly available data. ParseForge is not affiliated with, endorsed by, or sponsored by any of the third-party services referenced. Users are responsible for complying with the target site's terms of service and applicable law. Create a free account w/ $5 credit.