The mta.subway namespace gives you access to real-time arrival data sourced directly from the MTA’s GTFS-Realtime feeds. Use mta.subway.arrivals to retrieve the next trains arriving at any subway stop for a specific route, including trip IDs, predicted arrival timestamps, and direction of travel.
mta.subway.arrivals(params)
Returns real-time arrival predictions for a given stop and route combination. Arrival times are Unix timestamps in seconds and reflect the MTA’s latest feed update, typically refreshed every 30 seconds.
Parameters
stopIdstringrequiredThe MTA stop ID for the station you want to query (for example, 'A27' for Howard Beach–JFK Airport on the A line). You can look up stop IDs using mta.stops.near or the MTA’s static GTFS data.routestringThe route ID to filter arrivals by (for example, 'A', '1', or 'N'). Optional — when omitted, arrivals across all routes serving the stop are returned. When supplied, only arrivals for that route are returned.directionstringOptional direction filter. Accepts the feed values 'north', 'south', 'east', 'west', 'unknown', plus the rider-facing aliases 'uptown' (→ north) and 'downtown' (→ south).limitnumberMaximum number of arrivals to return, between 1 and 100. Defaults to 20.includeRawbooleanWhen true, each arrival includes the underlying GTFS-RT entity on a raw field. Defaults to false.
TypeScript signature
interface SubwayArrivalQuery { stopId: SubwayStopId route?: SubwayRoute direction?: Direction | 'uptown' | 'downtown' limit?: number includeRaw?: boolean}interface Arrival { mode: TransitMode // 'subway' | 'bus' | 'lirr' | 'metro-north' route: Route stop: Stop direction: Direction // 'north' | 'south' | 'east' | 'west' | 'unknown' destination?: string // headsign / terminal station name displayDirection?: string // e.g. "toward 8 Av" or "northbound" headsign?: string arrivalTime: string // ISO 8601 departureTime?: string // ISO 8601 minutes: number tripId?: string realtime: boolean source: 'mta-gtfs-rt' | 'mta-bustime' raw?: unknown // present when includeRaw: true}mta.subway.arrivals(params: SubwayArrivalQuery): Promise<Arrival[]>
Response fields
arrivalsArrival[]requiredAn array of upcoming arrivals, ordered by arrivalTime ascending. Returns an empty array if no arrivals are scheduled in the current feed window.Arrival propertiesmodestringrequiredTransit mode: always 'subway' for this endpoint.routeRouterequiredThe route object: id (required), plus optional shortName, longName, color, textColor, and type.stopStoprequiredThe stop object: id and name (required), plus optional displayName, lat, lon, parentStation, parentId, and mode.directionstringrequiredDirection of travel: 'north', 'south', 'east', 'west', or 'unknown'.destinationstringThe headsign / terminal station name (e.g. "Inwood-207 St"). Present when the MTA feed includes trip headsign data.displayDirectionstringA human-readable direction label (e.g. "toward 8 Av" or "northbound"). Falls back to a "<direction>bound" string when no headsign is available.arrivalTimestringrequiredThe predicted arrival time as an ISO 8601 string.minutesnumberrequiredMinutes until arrival, clamped to 0.tripIdstringThe GTFS trip ID for this train run.realtimebooleanrequiredWhether this arrival comes from a live GTFS-RT feed (true) or a scheduled estimate (false).
Code example
import { MTA } from 'mta-js'const mta = new MTA({ apiKey: process.env.MTA_API_KEY })const arrivals = await mta.subway.arrivals({ stopId: 'L08', route: 'L'})for (const arrival of arrivals) { const label = arrival.displayDirection ?? arrival.destination ?? 'unknown direction' console.log( `${arrival.route.shortName} — ${label} — ${arrival.minutes} min` )}
The MTA feed does not always include arrivals for every route at every stop. If arrivals is empty, the train may not be active in the current feed window — check during service hours and verify the stopId and route combination is valid.
mta.subway.direction(params)
The mta.subway namespace also exposes mta.subway.direction(), which resolves a rider-facing destination string (such as "Union Sq") into the north / south feed direction, the terminal the train heads toward, and a display label — handy for pre-selecting the right direction before calling arrivals. See the dedicated Direction reference for full parameters, types, and examples.
Authorizations
bearerAuthapiKeyAuth
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"MTA API","description":"Realtime NYC-area transit data — subway, bus, PATH, NJ Transit, NYC Ferry, Citi Bike, plus 22 more US transit agencies and 7 more bike shares — through one clean API.","colors":{"primary":"#004CB7","light":"#FFFFFF","dark":"#1E3A8A"},"logo":{"light":"https://mintcdn.com/humanintefacedesign/Q8YkInnS90xOtYky/images/logo2.svg?fit=max\u0026auto=format\u0026n=Q8YkInnS90xOtYky\u0026q=85\u0026s=6f8537a6423102044114a3759a1cf764","dark":"https://mintcdn.com/humanintefacedesign/Q8YkInnS90xOtYky/images/logo2.svg?fit=max\u0026auto=format\u0026n=Q8YkInnS90xOtYky\u0026q=85\u0026s=6f8537a6423102044114a3759a1cf764","href":"https://www.mtaapi.dev"},"favicon":"https://mintcdn.com/humanintefacedesign/U9SNkuqnZN8rjCjD/images/favicon-16x16.png?fit=max\u0026auto=format\u0026n=U9SNkuqnZN8rjCjD\u0026q=85\u0026s=5d1bc2d91e7baa872bfc6f9a29447863","api":{"openapi":"openapi.json","params":{"expanded":"all"},"playground":{"display":"interactive","proxy":true},"examples":{"languages":["typescript"],"prefill":true,"autogenerate":false},"url":"full","mdx":{"auth":{"method":"bearer","name":"Authorization"},"server":"https://www.mtaapi.dev"}},"appearance":{"default":"dark"},"background":{"color":{"light":"#fff","dark":"#000"}},"navbar":{"links":[{"href":"https://www.mtaapi.dev/dashboard","label":"Dashboard"},{"href":"https://www.mtaapi.dev/blog","label":"Blog"}],"primary":{"type":"github","href":"https://github.com/HumanInterfaceDesign/mta-js"}},"footer":{"socials":{"github":"https://github.com/HumanInterfaceDesign/mta-js"}},"icons":{"library":"tabler"},"integrations":{"telemetry":{"enabled":false}},"markdown":{"schema":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"humanintefacedesign","hasAudioNarration":false,"actualSubdomain":"humanintefacedesign","customDomains":["mtaapi.dev"],"gitSource":{"type":"github","owner":"humaninterfacedesign","repo":"mta-api","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6ae46ad2f259c4c964c4c6bd"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af85f7209eaf940fce85a4d","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"API Reference","count":183},{"language":"default","tag":"Regional transit REST","count":171},{"language":"default","tag":"Documentation","count":23},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"SDK Reference","count":12},{"language":"default","tag":"Get Started","count":6},{"language":"default","tag":"Core Concepts","count":3},{"language":"default","tag":"Self-Hosting","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@mtaapi.dev","showHelpButton":true}},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/subway","slug":"/api-reference/subway","pageMetadata":{"title":"mta.subway.arrivals() — real-time subway predictions","description":"Reference for mta.subway in mta-js. Fetch real-time arrival predictions for any subway stop and route, with Unix timestamps and direction of travel.","sidebarTitle":"Subway","openapi":"openapi.json GET /api/v1/subway/arrivals","href":"/api-reference/subway"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Reference for mta.subway in mta-js. Fetch real-time arrival predictions for any subway stop and route, with Unix timestamps and direction of travel.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`mta.subway`}),` namespace gives you access to real-time arrival data sourced directly from the MTA’s GTFS-Realtime feeds. Use `,_jsx(_components.code,{children:`mta.subway.arrivals`}),` to retrieve the next trains arriving at any subway stop for a specific route, including trip IDs, predicted arrival timestamps, and direction of travel.`]}),`\n`,_jsx(Heading,{level:`2`,id:`mta-subway-arrivals-params`,children:_jsx(_components.code,{children:`mta.subway.arrivals(params)`})}),`\n`,_jsx(_components.p,{children:`Returns real-time arrival predictions for a given stop and route combination. Arrival times are Unix timestamps in seconds and reflect the MTA’s latest feed update, typically refreshed every 30 seconds.`}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`stopId`}),` `,_jsx(_components.code,{children:`string`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`The MTA stop ID for the station you want to query (for example, `,_jsx(_components.code,{children:`'A27'`}),` for Howard Beach–JFK Airport on the A line). You can look up stop IDs using `,_jsx(_components.a,{href:`/api-reference/stops`,children:_jsx(_components.code,{children:`mta.stops.near`})}),` or the `,_jsx(_components.a,{href:`https://api.mta.info`,children:`MTA’s static GTFS data`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`route`}),` `,_jsx(_components.code,{children:`string`})]}),`\n`,_jsxs(_components.p,{children:[`The route ID to filter arrivals by (for example, `,_jsx(_components.code,{children:`'A'`}),`, `,_jsx(_components.code,{children:`'1'`}),`, or `,_jsx(_components.code,{children:`'N'`}),`). Optional — when omitted, arrivals across all routes serving the stop are returned. When supplied, only arrivals for that route are returned.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`direction`}),` `,_jsx(_components.code,{children:`string`})]}),`\n`,_jsxs(_components.p,{children:[`Optional direction filter. Accepts the feed values `,_jsx(_components.code,{children:`'north'`}),`, `,_jsx(_components.code,{children:`'south'`}),`, `,_jsx(_components.code,{children:`'east'`}),`, `,_jsx(_components.code,{children:`'west'`}),`, `,_jsx(_components.code,{children:`'unknown'`}),`, plus the rider-facing aliases `,_jsx(_components.code,{children:`'uptown'`}),` (→ north) and `,_jsx(_components.code,{children:`'downtown'`}),` (→ south).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`limit`}),` `,_jsx(_components.code,{children:`number`})]}),`\n`,_jsxs(_components.p,{children:[`Maximum number of arrivals to return, between `,_jsx(_components.code,{children:`1`}),` and `,_jsx(_components.code,{children:`100`}),`. Defaults to `,_jsx(_components.code,{children:`20`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`includeRaw`}),` `,_jsx(_components.code,{children:`boolean`})]}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, each arrival includes the underlying GTFS-RT entity on a `,_jsx(_components.code,{children:`raw`}),` field. Defaults to `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`typescript-signature`,children:`TypeScript signature`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`26`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`26`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` SubwayArrivalQuery`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` stopId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` SubwayStopId`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` route`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` SubwayRoute`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` direction`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Direction`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'uptown'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'downtown'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` limit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` includeRaw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` boolean`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Arrival`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` mode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` TransitMode`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // 'subway' | 'bus' | 'lirr' | 'metro-north'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` route`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Route`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` stop`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Stop`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` direction`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Direction`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // 'north' | 'south' | 'east' | 'west' | 'unknown'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` destination`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // headsign / terminal station name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` displayDirection`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // e.g. \"toward 8 Av\" or \"northbound\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headsign`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` arrivalTime`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ISO 8601`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` departureTime`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ISO 8601`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` minutes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tripId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` realtime`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` boolean`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` source`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'mta-gtfs-rt'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'mta-bustime'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` raw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` unknown`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // present when includeRaw: true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mta`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subway`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`arrivals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SubwayArrivalQuery`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Arrival`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`response-fields`,children:`Response fields`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`arrivals`}),` `,_jsx(_components.code,{children:`Arrival[]`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`An array of upcoming arrivals, ordered by `,_jsx(_components.code,{children:`arrivalTime`}),` ascending. Returns an empty array if no arrivals are scheduled in the current feed window.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Arrival properties`})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`mode`}),` `,_jsx(_components.code,{children:`string`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`Transit mode: always `,_jsx(_components.code,{children:`'subway'`}),` for this endpoint.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`route`}),` `,_jsx(_components.code,{children:`Route`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`The route object: `,_jsx(_components.code,{children:`id`}),` (required), plus optional `,_jsx(_components.code,{children:`shortName`}),`, `,_jsx(_components.code,{children:`longName`}),`, `,_jsx(_components.code,{children:`color`}),`, `,_jsx(_components.code,{children:`textColor`}),`, and `,_jsx(_components.code,{children:`type`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`stop`}),` `,_jsx(_components.code,{children:`Stop`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`The stop object: `,_jsx(_components.code,{children:`id`}),` and `,_jsx(_components.code,{children:`name`}),` (required), plus optional `,_jsx(_components.code,{children:`displayName`}),`, `,_jsx(_components.code,{children:`lat`}),`, `,_jsx(_components.code,{children:`lon`}),`, `,_jsx(_components.code,{children:`parentStation`}),`, `,_jsx(_components.code,{children:`parentId`}),`, and `,_jsx(_components.code,{children:`mode`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`direction`}),` `,_jsx(_components.code,{children:`string`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`Direction of travel: `,_jsx(_components.code,{children:`'north'`}),`, `,_jsx(_components.code,{children:`'south'`}),`, `,_jsx(_components.code,{children:`'east'`}),`, `,_jsx(_components.code,{children:`'west'`}),`, or `,_jsx(_components.code,{children:`'unknown'`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`destination`}),` `,_jsx(_components.code,{children:`string`})]}),`\n`,_jsxs(_components.p,{children:[`The headsign / terminal station name (e.g. `,_jsx(_components.code,{children:`\"Inwood-207 St\"`}),`). Present when the MTA feed includes trip headsign data.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`displayDirection`}),` `,_jsx(_components.code,{children:`string`})]}),`\n`,_jsxs(_components.p,{children:[`A human-readable direction label (e.g. `,_jsx(_components.code,{children:`\"toward 8 Av\"`}),` or `,_jsx(_components.code,{children:`\"northbound\"`}),`). Falls back to a `,_jsx(_components.code,{children:`\"\u003cdirection>bound\"`}),` string when no headsign is available.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`arrivalTime`}),` `,_jsx(_components.code,{children:`string`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsx(_components.p,{children:`The predicted arrival time as an ISO 8601 string.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`minutes`}),` `,_jsx(_components.code,{children:`number`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsx(_components.p,{children:`Minutes until arrival, clamped to 0.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`tripId`}),` `,_jsx(_components.code,{children:`string`})]}),`\n`,_jsx(_components.p,{children:`The GTFS trip ID for this train run.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`realtime`}),` `,_jsx(_components.code,{children:`boolean`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`Whether this arrival comes from a live GTFS-RT feed (`,_jsx(_components.code,{children:`true`}),`) or a scheduled estimate (`,_jsx(_components.code,{children:`false`}),`).`]}),`\n`,_jsx(Heading,{level:`3`,id:`code-example`,children:`Code example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MTA`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'mta-js'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` mta`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MTA`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`MTA_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` arrivals`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mta`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subway`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`arrivals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stopId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'L08'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` route:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'L'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` arrival`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` of`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` arrivals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` label`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` arrival`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displayDirection`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` arrival`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`destination`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'unknown direction'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`arrival`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`route`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shortName`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` — `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`label`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` — `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`arrival`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`minutes`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" min`\"})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-response`,children:`Example response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`28`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`28`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subway\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"route\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"shortName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#0039A6\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stop\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A27\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Howard Beach-JFK Airport\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"displayName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Howard Beach–JFK Airport\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"direction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"south\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"destination\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ozone Park-Lefferts Blvd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"displayDirection\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"toward Ozone Park-Lefferts Blvd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"arrivalTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-05-29T18:37:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"minutes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tripId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AFA25GEN-A078-Sunday-00_000600_A..S03R\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"realtime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mta-gtfs-rt\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subway\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"route\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"shortName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#0039A6\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stop\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A27\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Howard Beach-JFK Airport\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"displayName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Howard Beach–JFK Airport\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"direction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"north\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"destination\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Inwood-207 St\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"displayDirection\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"toward Inwood-207 St\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"arrivalTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-05-29T18:49:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"minutes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`16`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tripId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AFA25GEN-A076-Sunday-00_003600_A..N03R\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"realtime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mta-gtfs-rt\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The MTA feed does not always include arrivals for every route at every stop. If `,_jsx(_components.code,{children:`arrivals`}),` is empty, the train may not be active in the current feed window — check during service hours and verify the `,_jsx(_components.code,{children:`stopId`}),` and `,_jsx(_components.code,{children:`route`}),` combination is valid.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`mta-subway-direction-params`,children:_jsx(_components.code,{children:`mta.subway.direction(params)`})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`mta.subway`}),` namespace also exposes `,_jsx(_components.code,{children:`mta.subway.direction()`}),`, which resolves a rider-facing destination string (such as `,_jsx(_components.code,{children:`\"Union Sq\"`}),`) into the `,_jsx(_components.code,{children:`north`}),` / `,_jsx(_components.code,{children:`south`}),` feed direction, the terminal the train heads toward, and a display label — handy for pre-selecting the right direction before calling `,_jsx(_components.code,{children:`arrivals`}),`. See the dedicated `,_jsx(_components.a,{href:`/api-reference/direction`,children:`Direction reference`}),` for full parameters, types, and examples.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"mta.subway.arrivals() — real-time subway predictions","description":"Reference for mta.subway in mta-js. Fetch real-time arrival predictions for any subway stop and route, with Unix timestamps and direction of travel.","sidebarTitle":"Subway","openapi":"openapi.json GET /api/v1/subway/arrivals","href":"/api-reference/subway"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"mta.subway.arrivals(params)","slug":"mta-subway-arrivals-params","depth":2,"children":[{"title":"Parameters","slug":"parameters","depth":3,"children":[]},{"title":"TypeScript signature","slug":"typescript-signature","depth":3,"children":[]},{"title":"Response fields","slug":"response-fields","depth":3,"children":[]},{"title":"Code example","slug":"code-example","depth":3,"children":[]},{"title":"Example response","slug":"example-response","depth":3,"children":[]}]},{"title":"mta.subway.direction(params)","slug":"mta-subway-direction-params","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Get subway arrivals","tags":["subway"],"parameters":["3168263d-3b9b-4eff-9782-4afe01f73b8a","beb1e3aa-36ab-480d-b438-b194757e04cc","a7b04593-3bb5-4814-a81b-f212ba1465b6","26eaba6a-acf2-4d93-a26c-d2509a1569ca","21bd0371-4f5e-4223-9dfe-916646761850"],"responses":{"200":"b6752e0c-eca0-4495-828f-fcb8d2d1c38e"},"operationId":"getApiV1SubwayArrivals","method":"get","type":"path","servers":["0557b014-5191-4d70-bda5-11bc6a54b632"],"security":["63d21101-db75-4fd6-8ace-e7c6b309158b","4c8bf785-780f-4edb-bda9-133cf408118f"],"path":"/api/v1/subway/arrivals","baseUrlOptions":["https://www.mtaapi.dev"],"title":"Get subway arrivals","description":"Reference for mta.subway in mta-js. Fetch real-time arrival predictions for any subway stop and route, with Unix timestamps and direction of travel.","codeSamples":[],"requestExampleLanguages":["typescript"],"requiredOnlyExamples":false,"disableCodeSampleGeneration":true,"responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[],"urlDisplay":"full"},"dependencies":{"parameters":{"3168263d-3b9b-4eff-9782-4afe01f73b8a":{"name":"stopId","in":"query","required":true,"schema":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"beb1e3aa-36ab-480d-b438-b194757e04cc":{"name":"route","in":"query","required":false,"schema":{"minLength":1,"type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"a7b04593-3bb5-4814-a81b-f212ba1465b6":{"name":"direction","in":"query","required":false,"schema":{"type":"string","enum":["north","south","uptown","downtown"],"isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"26eaba6a-acf2-4d93-a26c-d2509a1569ca":{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"number","isRequired":false,"uniqueKey":"","typeLabel":"number"}},"21bd0371-4f5e-4223-9dfe-916646761850":{"name":"includeRaw","in":"query","required":false,"schema":{"type":"boolean","isRequired":false,"uniqueKey":"","typeLabel":"boolean"}}},"responses":{"b6752e0c-eca0-4495-828f-fcb8d2d1c38e":{"description":"Response for status 200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["mode","route","stop","direction","arrivalTime","minutes","realtime","source"],"properties":{"mode":{"type":"string","enum":["subway","bus","path","nj-transit-rail","lirr","metro-north"],"isRequired":true,"uniqueKey":"items.[INDEX].mode","typeLabel":"enum\u003cstring>"},"route":{"type":"object","required":["id"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"items.[INDEX].route.id","typeLabel":"string"},"gtfsId":{"type":"string","uniqueKey":"items.[INDEX].route.gtfsId","typeLabel":"string"},"shortName":{"type":"string","uniqueKey":"items.[INDEX].route.shortName","typeLabel":"string"},"longName":{"type":"string","uniqueKey":"items.[INDEX].route.longName","typeLabel":"string"},"type":{"type":"number","uniqueKey":"items.[INDEX].route.type","typeLabel":"number"},"color":{"type":"string","uniqueKey":"items.[INDEX].route.color","typeLabel":"string"},"textColor":{"type":"string","uniqueKey":"items.[INDEX].route.textColor","typeLabel":"string"}},"isRequired":true,"uniqueKey":"items.[INDEX].route","typeLabel":"object"},"stop":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"items.[INDEX].stop.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"items.[INDEX].stop.name","typeLabel":"string"},"displayName":{"type":"string","uniqueKey":"items.[INDEX].stop.displayName","typeLabel":"string"},"lat":{"type":"number","uniqueKey":"items.[INDEX].stop.lat","typeLabel":"number"},"lon":{"type":"number","uniqueKey":"items.[INDEX].stop.lon","typeLabel":"number"},"mode":{"enum":["subway","bus","path","nj-transit-rail","nyc-ferry","lirr","metro-north"],"type":"string","uniqueKey":"items.[INDEX].stop.mode","typeLabel":"enum\u003cstring>"},"parentId":{"type":"string","uniqueKey":"items.[INDEX].stop.parentId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"items.[INDEX].stop","typeLabel":"object"},"direction":{"type":"string","enum":["north","south","east","west","unknown","uptown","downtown"],"isRequired":true,"uniqueKey":"items.[INDEX].direction","typeLabel":"enum\u003cstring>"},"arrivalTime":{"type":"string","isRequired":true,"uniqueKey":"items.[INDEX].arrivalTime","typeLabel":"string"},"minutes":{"type":"number","isRequired":true,"uniqueKey":"items.[INDEX].minutes","typeLabel":"number"},"realtime":{"type":"boolean","isRequired":true,"uniqueKey":"items.[INDEX].realtime","typeLabel":"boolean"},"source":{"type":"string","isRequired":true,"uniqueKey":"items.[INDEX].source","typeLabel":"string"},"destination":{"type":"string","uniqueKey":"items.[INDEX].destination","typeLabel":"string"},"displayDirection":{"type":"string","uniqueKey":"items.[INDEX].displayDirection","typeLabel":"string"},"headsign":{"type":"string","uniqueKey":"items.[INDEX].headsign","typeLabel":"string"},"departureTime":{"type":"string","uniqueKey":"items.[INDEX].departureTime","typeLabel":"string"},"tripId":{"type":"string","uniqueKey":"items.[INDEX].tripId","typeLabel":"string"},"raw":{"oneOf":[{}],"uniqueKey":"items.[INDEX].raw","typeLabel":"any"}},"uniqueKey":"items.[INDEX]","typeLabel":"object"},"uniqueKey":"","typeLabel":"object[]"},"examples":{"Example":{"title":"Example","value":[{"mode":"subway","route":{"id":"\u003cstring>","gtfsId":"\u003cstring>","shortName":"\u003cstring>","longName":"\u003cstring>","type":123,"color":"\u003cstring>","textColor":"\u003cstring>"},"stop":{"id":"\u003cstring>","name":"\u003cstring>","displayName":"\u003cstring>","lat":123,"lon":123,"mode":"subway","parentId":"\u003cstring>"},"direction":"north","arrivalTime":"\u003cstring>","minutes":123,"realtime":true,"source":"\u003cstring>","destination":"\u003cstring>","displayDirection":"\u003cstring>","headsign":"\u003cstring>","departureTime":"\u003cstring>","tripId":"\u003cstring>","raw":"\u003cunknown>"}]}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"63d21101-db75-4fd6-8ace-e7c6b309158b":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","scopes":[],"schemeName":"bearerAuth"}},"4c8bf785-780f-4edb-bda9-133cf408118f":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"0557b014-5191-4d70-bda5-11bc6a54b632":{"url":"https://www.mtaapi.dev","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"humanintefacedesign","siteName":"MTA API","title":"mta.subway.arrivals() — real-time subway predictions - MTA API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-31T18:19:04.916Z","originalFileLocation":"api-reference/subway.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Reference for mta.subway in mta-js. Fetch real-time arrival predictions for any subway stop and route, with Unix timestamps and direction of travel.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MTA API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"mta.subway.arrivals() — real-time subway predictions - MTA API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Reference for mta.subway in mta-js. Fetch real-time arrival predictions for any subway stop and route, with Unix timestamps and direction of travel.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MTA API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://mtaapi.dev/docs/api-reference/subway\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://humanintefacedesign.mintlify.site/docs/_mintlify/api/og/v2?division=SDK+Reference\u0026amp;title=mta.subway.arrivals%28%29+%E2%80%94+real-time+subway+predictions\u0026amp;description=Reference+for+mta.subway+in+mta-js.+Fetch+real-time+arrival+predictions+for+any+subway+stop+and+route%2C+with+Unix+timestamps+and+direction+of+travel.\u0026amp;theme=0bac45188922c012362b8c6c\u0026amp;signature=6c73534ba23a16205095c5ea16ec58647f15867fc46ec708f49291ba3656a1b5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"mta.subway.arrivals() — real-time subway predictions - MTA API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Reference for mta.subway in mta-js. Fetch real-time arrival predictions for any subway stop and route, with Unix timestamps and direction of travel.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://humanintefacedesign.mintlify.site/docs/_mintlify/api/og/v2?division=SDK+Reference\u0026amp;title=mta.subway.arrivals%28%29+%E2%80%94+real-time+subway+predictions\u0026amp;description=Reference+for+mta.subway+in+mta-js.+Fetch+real-time+arrival+predictions+for+any+subway+stop+and+route%2C+with+Unix+timestamps+and+direction+of+travel.\u0026amp;theme=0bac45188922c012362b8c6c\u0026amp;signature=6c73534ba23a16205095c5ea16ec58647f15867fc46ec708f49291ba3656a1b5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MTA API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#004CB7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://mtaapi.dev/docs/api-reference/subway\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/subway.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://mtaapi.dev/#organization\",\"name\":\"MTA API\",\"url\":\"https://mtaapi.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/humanintefacedesign/Q8YkInnS90xOtYky/images/logo2.svg?fit=max\u0026auto=format\u0026n=Q8YkInnS90xOtYky\u0026q=85\u0026s=6f8537a6423102044114a3759a1cf764\"}},{\"@type\":\"WebSite\",\"@id\":\"https://mtaapi.dev/docs#website\",\"name\":\"MTA API\",\"url\":\"https://mtaapi.dev/docs\",\"publisher\":{\"@id\":\"https://mtaapi.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://mtaapi.dev/docs/api-reference/subway#webpage\",\"url\":\"https://mtaapi.dev/docs/api-reference/subway\",\"name\":\"mta.subway.arrivals() — real-time subway predictions\",\"description\":\"Reference for mta.subway in mta-js. Fetch real-time arrival predictions for any subway stop and route, with Unix timestamps and direction of travel.\",\"dateModified\":\"2026-10-31T18:19:04.916Z\",\"isPartOf\":{\"@id\":\"https://mtaapi.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://mtaapi.dev/docs/api-reference/subway#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://mtaapi.dev/docs/api-reference/subway#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SDK Reference\",\"item\":\"https://mtaapi.dev/docs/api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"mta.subway.arrivals() — real-time subway predictions\",\"item\":\"https://mtaapi.dev/docs/api-reference/subway\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://mtaapi.dev/docs/api-reference/subway#apireference\",\"headline\":\"mta.subway.arrivals() — real-time subway predictions\",\"name\":\"mta.subway.arrivals() — real-time subway predictions\",\"description\":\"Reference for mta.subway in mta-js. Fetch real-time arrival predictions for any subway stop and route, with Unix timestamps and direction of travel.\",\"url\":\"https://mtaapi.dev/docs/api-reference/subway\",\"mainEntityOfPage\":{\"@id\":\"https://mtaapi.dev/docs/api-reference/subway#webpage\"},\"dateModified\":\"2026-10-31T18:19:04.916Z\",\"publisher\":{\"@id\":\"https://mtaapi.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://mtaapi.dev/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MTA API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MTA API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/subway.md","siteName":"MTA API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"SDK Reference","pages":[{"title":"mta-js SDK reference: all namespaces and methods","description":"Explore the full mta-js SDK method surface, organized by namespace: subway arrivals, bus positions, service alerts, and nearby stop lookups.","sidebarTitle":"Overview","href":"/api-reference/overview"},{"title":"mta.subway.arrivals() — real-time subway predictions","sidebarTitle":"Subway","openapi":"openapi.json GET /api/v1/subway/arrivals","href":"/api-reference/subway"},{"title":"mta.subway.direction() — resolve a destination to a direction","description":"Reference for mta.subway.direction in mta-js. Resolve a rider-facing destination string into a typed north/south direction, terminal, and display label.","sidebarTitle":"Direction","openapi":"openapi.json GET /api/v1/subway/direction","href":"/api-reference/direction"},{"title":"mta.bus.vehicles() — live bus positions by route","sidebarTitle":"Bus","openapi":"openapi.json GET /api/v1/bus/vehicles","href":"/api-reference/bus"},{"title":"mta.alerts.current() — active MTA service alerts","sidebarTitle":"Alerts","openapi":"openapi.json GET /api/v1/alerts","href":"/api-reference/alerts"},{"title":"mta.stops.near() — find stops by geolocation","sidebarTitle":"Stops","openapi":"openapi.json GET /api/v1/stops/near","href":"/api-reference/stops"},{"title":"mta.subway.arrivalBoard() — nearby subway departure board","sidebarTitle":"Subway Arrival Board","openapi":"openapi.json GET /api/v1/subway/arrival-board","href":"/api-reference/subway-arrival-board"},{"title":"mta.subway.routeStations() — ordered stations on a route","sidebarTitle":"Subway Route Stations","openapi":"openapi.json GET /api/v1/subway/routes/{route}/stations","href":"/api-reference/subway-route-stations"},{"title":"mta.bus.arrivalBoard() — nearby bus departure board","sidebarTitle":"Bus Arrival Board","openapi":"openapi.json GET /api/v1/bus/arrival-board","href":"/api-reference/bus-arrival-board"},{"title":"mta.bus.routeStops() — ordered stops on a route","sidebarTitle":"Bus Route Stops","openapi":"openapi.json GET /api/v1/bus/routes/{route}/stops","href":"/api-reference/bus-route-stops"},{"title":"mta.routes.list() — list subway and bus routes","sidebarTitle":"Routes","openapi":"openapi.json GET /api/v1/routes","href":"/api-reference/routes"},{"title":"mta.stops.byIds() — batch stop lookup","sidebarTitle":"Stops by ID","openapi":"openapi.json GET /api/v1/stops","href":"/api-reference/stops-batch"}]},{"group":"Regional transit REST","pages":[{"title":"List NJ PATH stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/path/stations","href":"/api-reference/path/list-nj-path-stations"},{"title":"List PATH routes serving New Jersey","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/path/routes","href":"/api-reference/path/list-path-routes-serving-new-jersey"},{"title":"Get PATH arrivals for NJ stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/path/arrivals","href":"/api-reference/path/get-path-arrivals-for-nj-stations"},{"title":"Get ordered PATH stations for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/path/routes/{route}/stations","href":"/api-reference/path/get-ordered-path-stations-for-a-route"},{"title":"List NJ Transit rail stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nj-transit/rail/stations","href":"/api-reference/nj-transit-rail/list-nj-transit-rail-stations"},{"title":"Get NJ Transit rail departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nj-transit/rail/departures","href":"/api-reference/nj-transit-rail/get-nj-transit-rail-departures"},{"title":"Get NJ Transit rail vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nj-transit/rail/vehicles","href":"/api-reference/nj-transit-rail/get-nj-transit-rail-vehicles"},{"title":"Get NJ Transit rail alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nj-transit/rail/alerts","href":"/api-reference/nj-transit-rail/get-nj-transit-rail-alerts"},{"title":"Get ordered NJ Transit rail stations for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nj-transit/rail/routes/{route}/stations","href":"/api-reference/nj-transit-rail/get-ordered-nj-transit-rail-stations-for-a-route"},{"title":"List NYC Ferry stops","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/stops","href":"/api-reference/nyc-ferry/list-nyc-ferry-stops"},{"title":"List NYC Ferry routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/routes","href":"/api-reference/nyc-ferry/list-nyc-ferry-routes"},{"title":"Get NYC Ferry stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/routes/{route}/stops","href":"/api-reference/nyc-ferry/get-nyc-ferry-stops-for-a-route"},{"title":"Get NYC Ferry arrivals","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/arrivals","href":"/api-reference/nyc-ferry/get-nyc-ferry-arrivals"},{"title":"Get NYC Ferry vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/vehicles","href":"/api-reference/nyc-ferry/get-nyc-ferry-vehicles"},{"title":"Get NYC Ferry alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/alerts","href":"/api-reference/nyc-ferry/get-nyc-ferry-alerts"},{"title":"Find Citi Bike stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/citi-bike/stations","href":"/api-reference/citi-bike/find-citi-bike-stations"},{"title":"Get a Citi Bike station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/citi-bike/stations/{id}","href":"/api-reference/citi-bike/get-a-citi-bike-station"},{"title":"Get Citi Bike service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/citi-bike/alerts","href":"/api-reference/citi-bike/get-citi-bike-service-alerts"},{"title":"List LIRR stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/stops","href":"/api-reference/lirr/list-lirr-stations"},{"title":"List LIRR routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/routes","href":"/api-reference/lirr/list-lirr-routes"},{"title":"Get LIRR stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/routes/{route}/stops","href":"/api-reference/lirr/get-lirr-stops-for-a-route"},{"title":"Get LIRR departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/departures","href":"/api-reference/lirr/get-lirr-departures"},{"title":"Get LIRR vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/vehicles","href":"/api-reference/lirr/get-lirr-vehicles"},{"title":"Get LIRR alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/alerts","href":"/api-reference/lirr/get-lirr-alerts"},{"title":"List Metro-North stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/stops","href":"/api-reference/metro-north/list-metro-north-stations"},{"title":"List Metro-North routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/routes","href":"/api-reference/metro-north/list-metro-north-routes"},{"title":"Get Metro-North stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/routes/{route}/stops","href":"/api-reference/metro-north/get-metro-north-stops-for-a-route"},{"title":"Get Metro-North departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/departures","href":"/api-reference/metro-north/get-metro-north-departures"},{"title":"Get Metro-North vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/vehicles","href":"/api-reference/metro-north/get-metro-north-vehicles"},{"title":"Get Metro-North alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/alerts","href":"/api-reference/metro-north/get-metro-north-alerts"},{"title":"List MBTA stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/stops","href":"/api-reference/mbta/list-mbta-stations"},{"title":"List MBTA routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/routes","href":"/api-reference/mbta/list-mbta-routes"},{"title":"Get MBTA stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/routes/{route}/stops","href":"/api-reference/mbta/get-mbta-stops-for-a-route"},{"title":"Get MBTA departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/departures","href":"/api-reference/mbta/get-mbta-departures"},{"title":"Get MBTA vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/vehicles","href":"/api-reference/mbta/get-mbta-vehicles"},{"title":"Get MBTA alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/alerts","href":"/api-reference/mbta/get-mbta-alerts"},{"title":"List King County Metro stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/stops","href":"/api-reference/king-county-metro/list-king-county-metro-stations"},{"title":"List King County Metro routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/routes","href":"/api-reference/king-county-metro/list-king-county-metro-routes"},{"title":"Get King County Metro stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/routes/{route}/stops","href":"/api-reference/king-county-metro/get-king-county-metro-stops-for-a-route"},{"title":"Get King County Metro departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/departures","href":"/api-reference/king-county-metro/get-king-county-metro-departures"},{"title":"Get King County Metro vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/vehicles","href":"/api-reference/king-county-metro/get-king-county-metro-vehicles"},{"title":"Get King County Metro alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/alerts","href":"/api-reference/king-county-metro/get-king-county-metro-alerts"},{"title":"List CapMetro stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/stops","href":"/api-reference/capmetro/list-capmetro-stations"},{"title":"List CapMetro routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/routes","href":"/api-reference/capmetro/list-capmetro-routes"},{"title":"Get CapMetro stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/routes/{route}/stops","href":"/api-reference/capmetro/get-capmetro-stops-for-a-route"},{"title":"Get CapMetro departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/departures","href":"/api-reference/capmetro/get-capmetro-departures"},{"title":"Get CapMetro vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/vehicles","href":"/api-reference/capmetro/get-capmetro-vehicles"},{"title":"Get CapMetro alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/alerts","href":"/api-reference/capmetro/get-capmetro-alerts"},{"title":"List BART stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/stops","href":"/api-reference/bart/list-bart-stations"},{"title":"List BART routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/routes","href":"/api-reference/bart/list-bart-routes"},{"title":"Get BART stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/routes/{route}/stops","href":"/api-reference/bart/get-bart-stops-for-a-route"},{"title":"Get BART departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/departures","href":"/api-reference/bart/get-bart-departures"},{"title":"Get BART vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/vehicles","href":"/api-reference/bart/get-bart-vehicles"},{"title":"Get BART alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/alerts","href":"/api-reference/bart/get-bart-alerts"},{"title":"List Tri-Rail stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/stops","href":"/api-reference/tri-rail/list-tri-rail-stations"},{"title":"List Tri-Rail routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/routes","href":"/api-reference/tri-rail/list-tri-rail-routes"},{"title":"Get Tri-Rail stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/routes/{route}/stops","href":"/api-reference/tri-rail/get-tri-rail-stops-for-a-route"},{"title":"Get Tri-Rail departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/departures","href":"/api-reference/tri-rail/get-tri-rail-departures"},{"title":"Get Tri-Rail vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/vehicles","href":"/api-reference/tri-rail/get-tri-rail-vehicles"},{"title":"Get Tri-Rail alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/alerts","href":"/api-reference/tri-rail/get-tri-rail-alerts"},{"title":"List Brightline stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/stops","href":"/api-reference/brightline/list-brightline-stations"},{"title":"List Brightline routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/routes","href":"/api-reference/brightline/list-brightline-routes"},{"title":"Get Brightline stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/routes/{route}/stops","href":"/api-reference/brightline/get-brightline-stops-for-a-route"},{"title":"Get Brightline departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/departures","href":"/api-reference/brightline/get-brightline-departures"},{"title":"Get Brightline vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/vehicles","href":"/api-reference/brightline/get-brightline-vehicles"},{"title":"Get Brightline alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/alerts","href":"/api-reference/brightline/get-brightline-alerts"},{"title":"List Pace stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/stops","href":"/api-reference/pace/list-pace-stations"},{"title":"List Pace routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/routes","href":"/api-reference/pace/list-pace-routes"},{"title":"Get Pace stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/routes/{route}/stops","href":"/api-reference/pace/get-pace-stops-for-a-route"},{"title":"Get Pace departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/departures","href":"/api-reference/pace/get-pace-departures"},{"title":"Get Pace vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/vehicles","href":"/api-reference/pace/get-pace-vehicles"},{"title":"Get Pace alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/alerts","href":"/api-reference/pace/get-pace-alerts"},{"title":"List Denver RTD stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/stops","href":"/api-reference/rtd/list-denver-rtd-stations"},{"title":"List Denver RTD routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/routes","href":"/api-reference/rtd/list-denver-rtd-routes"},{"title":"Get Denver RTD stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/routes/{route}/stops","href":"/api-reference/rtd/get-denver-rtd-stops-for-a-route"},{"title":"Get Denver RTD departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/departures","href":"/api-reference/rtd/get-denver-rtd-departures"},{"title":"Get Denver RTD vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/vehicles","href":"/api-reference/rtd/get-denver-rtd-vehicles"},{"title":"Get Denver RTD alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/alerts","href":"/api-reference/rtd/get-denver-rtd-alerts"},{"title":"List Metro Transit stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/stops","href":"/api-reference/metro-transit/list-metro-transit-stations"},{"title":"List Metro Transit routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/routes","href":"/api-reference/metro-transit/list-metro-transit-routes"},{"title":"Get Metro Transit stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/routes/{route}/stops","href":"/api-reference/metro-transit/get-metro-transit-stops-for-a-route"},{"title":"Get Metro Transit departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/departures","href":"/api-reference/metro-transit/get-metro-transit-departures"},{"title":"Get Metro Transit vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/vehicles","href":"/api-reference/metro-transit/get-metro-transit-vehicles"},{"title":"Get Metro Transit alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/alerts","href":"/api-reference/metro-transit/get-metro-transit-alerts"},{"title":"List Pittsburgh Regional Transit stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/stops","href":"/api-reference/prt/list-pittsburgh-regional-transit-stations"},{"title":"List Pittsburgh Regional Transit routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/routes","href":"/api-reference/prt/list-pittsburgh-regional-transit-routes"},{"title":"Get Pittsburgh Regional Transit stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/routes/{route}/stops","href":"/api-reference/prt/get-pittsburgh-regional-transit-stops-for-a-route"},{"title":"Get Pittsburgh Regional Transit departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/departures","href":"/api-reference/prt/get-pittsburgh-regional-transit-departures"},{"title":"Get Pittsburgh Regional Transit vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/vehicles","href":"/api-reference/prt/get-pittsburgh-regional-transit-vehicles"},{"title":"Get Pittsburgh Regional Transit alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/alerts","href":"/api-reference/prt/get-pittsburgh-regional-transit-alerts"},{"title":"List MARTA stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/stops","href":"/api-reference/marta/list-marta-stations"},{"title":"List MARTA routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/routes","href":"/api-reference/marta/list-marta-routes"},{"title":"Get MARTA stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/routes/{route}/stops","href":"/api-reference/marta/get-marta-stops-for-a-route"},{"title":"Get MARTA departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/departures","href":"/api-reference/marta/get-marta-departures"},{"title":"Get MARTA vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/vehicles","href":"/api-reference/marta/get-marta-vehicles"},{"title":"Get MARTA alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/alerts","href":"/api-reference/marta/get-marta-alerts"},{"title":"List VIA Metropolitan Transit stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/stops","href":"/api-reference/via/list-via-metropolitan-transit-stations"},{"title":"List VIA Metropolitan Transit routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/routes","href":"/api-reference/via/list-via-metropolitan-transit-routes"},{"title":"Get VIA Metropolitan Transit stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/routes/{route}/stops","href":"/api-reference/via/get-via-metropolitan-transit-stops-for-a-route"},{"title":"Get VIA Metropolitan Transit departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/departures","href":"/api-reference/via/get-via-metropolitan-transit-departures"},{"title":"Get VIA Metropolitan Transit vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/vehicles","href":"/api-reference/via/get-via-metropolitan-transit-vehicles"},{"title":"Get VIA Metropolitan Transit alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/alerts","href":"/api-reference/via/get-via-metropolitan-transit-alerts"},{"title":"List GCRTA stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/stops","href":"/api-reference/gcrta/list-gcrta-stations"},{"title":"List GCRTA routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/routes","href":"/api-reference/gcrta/list-gcrta-routes"},{"title":"Get GCRTA stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/routes/{route}/stops","href":"/api-reference/gcrta/get-gcrta-stops-for-a-route"},{"title":"Get GCRTA departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/departures","href":"/api-reference/gcrta/get-gcrta-departures"},{"title":"Get GCRTA vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/vehicles","href":"/api-reference/gcrta/get-gcrta-vehicles"},{"title":"Get GCRTA alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/alerts","href":"/api-reference/gcrta/get-gcrta-alerts"},{"title":"List CATS stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/stops","href":"/api-reference/cats/list-cats-stations"},{"title":"List CATS routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/routes","href":"/api-reference/cats/list-cats-routes"},{"title":"Get CATS stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/routes/{route}/stops","href":"/api-reference/cats/get-cats-stops-for-a-route"},{"title":"Get CATS departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/departures","href":"/api-reference/cats/get-cats-departures"},{"title":"Get CATS vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/vehicles","href":"/api-reference/cats/get-cats-vehicles"},{"title":"Get CATS alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/alerts","href":"/api-reference/cats/get-cats-alerts"},{"title":"List SacRT stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/stops","href":"/api-reference/sacrt/list-sacrt-stations"},{"title":"List SacRT routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/routes","href":"/api-reference/sacrt/list-sacrt-routes"},{"title":"Get SacRT stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/routes/{route}/stops","href":"/api-reference/sacrt/get-sacrt-stops-for-a-route"},{"title":"Get SacRT departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/departures","href":"/api-reference/sacrt/get-sacrt-departures"},{"title":"Get SacRT vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/vehicles","href":"/api-reference/sacrt/get-sacrt-vehicles"},{"title":"Get SacRT alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/alerts","href":"/api-reference/sacrt/get-sacrt-alerts"},{"title":"List MARC stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/stops","href":"/api-reference/marc/list-marc-stations"},{"title":"List MARC routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/routes","href":"/api-reference/marc/list-marc-routes"},{"title":"Get MARC stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/routes/{route}/stops","href":"/api-reference/marc/get-marc-stops-for-a-route"},{"title":"Get MARC departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/departures","href":"/api-reference/marc/get-marc-departures"},{"title":"Get MARC vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/vehicles","href":"/api-reference/marc/get-marc-vehicles"},{"title":"Get MARC alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/alerts","href":"/api-reference/marc/get-marc-alerts"},{"title":"List UTA stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/stops","href":"/api-reference/uta/list-uta-stations"},{"title":"List UTA routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/routes","href":"/api-reference/uta/list-uta-routes"},{"title":"Get UTA stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/routes/{route}/stops","href":"/api-reference/uta/get-uta-stops-for-a-route"},{"title":"Get UTA departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/departures","href":"/api-reference/uta/get-uta-departures"},{"title":"Get UTA vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/vehicles","href":"/api-reference/uta/get-uta-vehicles"},{"title":"Get UTA alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/alerts","href":"/api-reference/uta/get-uta-alerts"},{"title":"List JTA stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/stops","href":"/api-reference/jta/list-jta-stations"},{"title":"List JTA routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/routes","href":"/api-reference/jta/list-jta-routes"},{"title":"Get JTA stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/routes/{route}/stops","href":"/api-reference/jta/get-jta-stops-for-a-route"},{"title":"Get JTA departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/departures","href":"/api-reference/jta/get-jta-departures"},{"title":"Get JTA vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/vehicles","href":"/api-reference/jta/get-jta-vehicles"},{"title":"Get JTA alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/alerts","href":"/api-reference/jta/get-jta-alerts"},{"title":"List Muni stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/stops","href":"/api-reference/muni/list-muni-stations"},{"title":"List Muni routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/routes","href":"/api-reference/muni/list-muni-routes"},{"title":"Get Muni stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/routes/{route}/stops","href":"/api-reference/muni/get-muni-stops-for-a-route"},{"title":"Get Muni departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/departures","href":"/api-reference/muni/get-muni-departures"},{"title":"Get Muni vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/vehicles","href":"/api-reference/muni/get-muni-vehicles"},{"title":"Get Muni alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/alerts","href":"/api-reference/muni/get-muni-alerts"},{"title":"List Caltrain stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/stops","href":"/api-reference/caltrain/list-caltrain-stations"},{"title":"List Caltrain routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/routes","href":"/api-reference/caltrain/list-caltrain-routes"},{"title":"Get Caltrain stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/routes/{route}/stops","href":"/api-reference/caltrain/get-caltrain-stops-for-a-route"},{"title":"Get Caltrain departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/departures","href":"/api-reference/caltrain/get-caltrain-departures"},{"title":"Get Caltrain vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/vehicles","href":"/api-reference/caltrain/get-caltrain-vehicles"},{"title":"Get Caltrain alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/alerts","href":"/api-reference/caltrain/get-caltrain-alerts"},{"title":"Find Bay Wheels stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bay-wheels/stations","href":"/api-reference/bay-wheels/find-bay-wheels-stations"},{"title":"Get a Bay Wheels station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bay-wheels/stations/{id}","href":"/api-reference/bay-wheels/get-a-bay-wheels-station"},{"title":"Get Bay Wheels service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bay-wheels/alerts","href":"/api-reference/bay-wheels/get-bay-wheels-service-alerts"},{"title":"Find Divvy stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/divvy/stations","href":"/api-reference/divvy/find-divvy-stations"},{"title":"Get a Divvy station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/divvy/stations/{id}","href":"/api-reference/divvy/get-a-divvy-station"},{"title":"Get Divvy service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/divvy/alerts","href":"/api-reference/divvy/get-divvy-service-alerts"},{"title":"Find Bluebikes stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bluebikes/stations","href":"/api-reference/bluebikes/find-bluebikes-stations"},{"title":"Get a Bluebikes station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bluebikes/stations/{id}","href":"/api-reference/bluebikes/get-a-bluebikes-station"},{"title":"Get Bluebikes service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bluebikes/alerts","href":"/api-reference/bluebikes/get-bluebikes-service-alerts"},{"title":"Find Capital Bikeshare stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capital-bikeshare/stations","href":"/api-reference/capital-bikeshare/find-capital-bikeshare-stations"},{"title":"Get a Capital Bikeshare station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capital-bikeshare/stations/{id}","href":"/api-reference/capital-bikeshare/get-a-capital-bikeshare-station"},{"title":"Get Capital Bikeshare service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capital-bikeshare/alerts","href":"/api-reference/capital-bikeshare/get-capital-bikeshare-service-alerts"},{"title":"Find Biketown stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/biketown/stations","href":"/api-reference/biketown/find-biketown-stations"},{"title":"Get a Biketown station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/biketown/stations/{id}","href":"/api-reference/biketown/get-a-biketown-station"},{"title":"Get Biketown service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/biketown/alerts","href":"/api-reference/biketown/get-biketown-service-alerts"},{"title":"Find Indego stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/indego/stations","href":"/api-reference/indego/find-indego-stations"},{"title":"Get a Indego station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/indego/stations/{id}","href":"/api-reference/indego/get-a-indego-station"},{"title":"Get Indego service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/indego/alerts","href":"/api-reference/indego/get-indego-service-alerts"},{"title":"Find Metro Bike Share stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-bike-share/stations","href":"/api-reference/metro-bike-share/find-metro-bike-share-stations"},{"title":"Get a Metro Bike Share station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-bike-share/stations/{id}","href":"/api-reference/metro-bike-share/get-a-metro-bike-share-station"},{"title":"Get Metro Bike Share service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-bike-share/alerts","href":"/api-reference/metro-bike-share/get-metro-bike-share-service-alerts"}]}]}]},"basePath":"","title":"mta.subway.arrivals() — real-time subway predictions - MTA API","deploymentId":"dpl_DPZjiNpvAcGiwobuijLfKPtJL4Ux","buildId":"dpl_DPZjiNpvAcGiwobuijLfKPtJL4Ux","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-Cn6jN7s-.js","snippetPresets-DjcjTu_l.js","utils-CgDfAybK.js","style-to-object-BY3JEAdk.js","utils-BRh9RHH1.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ekgQXnrs.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DQ8efB5G.js","_Uint8Array-DxysT0ia.js","isObject-FP1Yky1u.js","Page-tKmt1iGP.js","api-description-markdown-KtPg6U4T.js","DynamicMarkdown-Ch7bkVSN.js","CodeSnippet-NZAMx71T.js","use-playground-group-access-BeZ_TnTl.js","SectionHeading-Cj70Qp9A.js","ApiExamples-B4Dcm0cf.js","usePlaygroundInputsStore-CDeMD38v.js","shallow-BG_m8ALL.js","isEqual-DPm32SJd.js","CodeSnippets-DQz1R-UZ.js","MethodPill-BAy1jSVY.js","getPastedJson-BX84PZ05.js","Check2Icon-B6AWYcHm.js","axios-CsQoIw0U.js","Markdown-CfiTBZoc.js","AssistantPageLink-SRAvT1Bg.js","dist-CnoXsf9u.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}