{"uid":"cap_N8-koQjt_oAomcN5MVrSA","slug":"hong-kong-mtr-realtime-next-train-arrivals-691049c1","name":"Hong Kong MTR Realtime Next-Train Arrivals","description":"Hong Kong MTR realtime next-train arrivals at one station on one line, from the Hong Kong government open data feed: direction, destination platform, minutes to next train (ttnt) and scheduled time. Times are the feed's; the feed can be delayed or empty late at night.","url":"https://api.healthtravel-api.workers.dev/api/travel/hk-mtr-realtime?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["line","sta"],"properties":{"sta":{"type":"string","description":"Station code on that line, e.g. TUM, HUH (2 to 4 letters)"},"line":{"type":"string","description":"MTR line code, e.g. TML, TCL, ISL, KTL, TKL (2 to 4 letters)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-L0cXdIaxQYGVt1n8kyT_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time next-train arrival times for a specific Hong Kong MTR station and line, including direction, destination platform, minutes to next train, and scheduled time.","exampleAgentPrompt":"How many minutes until the next train at Tung Chung station on the TCL line, and what's its destination?","exampleUseCases":[{"title":"Commuter departure timing check","prompt":"I'm at Kowloon Tong station on the KTL line — how many minutes until the next train and which direction is it headed?"},{"title":"Tourist transit planning","prompt":"What's the next train on the Tung Chung Line from Tung Chung station right now, including the scheduled departure time?"},{"title":"Agent transit alert workflow","prompt":"Keep checking the next train at Hong Kong station on the Airport Express line and tell me when there's one leaving in 5 minutes or less."}],"resultDescription":"Returns structured data for upcoming MTR trains at the requested station and line: direction code, destination platform name, minutes to next train (ttnt), and the scheduled time of arrival/departure. Data is sourced from the Hong Kong government open data feed and may be delayed or empty during late-night hours when service is reduced.","failureModes":["Empty or missing data during late-night off-service hours","Incorrect or unsupported line code returns an error or empty result","Incorrect or unsupported station code for the given line returns an error or empty result","Feed delays may cause stale or outdated timing data","Rate limiting or payment failure at $0.002 USDC per call"],"whenToPreferThis":"Use this endpoint when you need real-time, live next-train data specifically for the Hong Kong MTR network, keyed by official MTR line and station codes. Prefer this over static timetable lookups when you need live countdowns (ttnt) rather than scheduled times, and over generic transit APIs when you need structured, low-latency data from the official Hong Kong government open data feed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:43:05.158Z","isFirstParty":false,"canonicalSlug":"hong-kong-mtr-realtime-next-train-arrivals-691049c1"}