> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# MTA

> NYC Metropolitan Transportation Authority real-time transit data.

NYC Metropolitan Transportation Authority real-time transit data. Use mta-subway-times to get arrival/departure times at any subway station by name — no GTFS knowledge needed. Also provides commuter rail feeds (LIRR, Metro-North), service alerts, and elevator/escalator status.

16 endpoints available through Lava's AI Gateway.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Endpoints

### Get real-time subway arrival/departure times for any NYC station. Pass a station name and optionally filter by route. Returns filtered, formatted times — no raw GTFS parsing needed.

**GET** `https://api-endpoint.mta.info/subway-times?station=times+sq-42+st` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api-endpoint.mta.info/subway-times?station=times+sq-42+st', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi-endpoint.mta.info%2Fsubway-times%3Fstation%3Dtimes%2Bsq-42%2Bst" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### LIRR GTFS-RT feed

**GET** `https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/lirr/gtfs-lirr` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/lirr/gtfs-lirr', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi-endpoint.mta.info%2FDataservice%2Fmtagtfsfeeds%2Flirr%2Fgtfs-lirr" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Metro-North GTFS-RT feed

**GET** `https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/mnr/gtfs-mnr` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/mnr/gtfs-mnr', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi-endpoint.mta.info%2FDataservice%2Fmtagtfsfeeds%2Fmnr%2Fgtfs-mnr" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Service alerts (all)

**GET** `https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/all-alerts.json` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/all-alerts.json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi-endpoint.mta.info%2FDataservice%2Fmtagtfsfeeds%2Fcamsys%2Fall-alerts.json" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Service alerts (subway)

**GET** `https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/subway-alerts.json` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/subway-alerts.json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi-endpoint.mta.info%2FDataservice%2Fmtagtfsfeeds%2Fcamsys%2Fsubway-alerts.json" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Service alerts (bus)

**GET** `https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/bus-alerts.json` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/bus-alerts.json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi-endpoint.mta.info%2FDataservice%2Fmtagtfsfeeds%2Fcamsys%2Fbus-alerts.json" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Service alerts (lirr)

**GET** `https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/lirr-alerts.json` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/lirr-alerts.json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi-endpoint.mta.info%2FDataservice%2Fmtagtfsfeeds%2Fcamsys%2Flirr-alerts.json" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Service alerts (mnr)

**GET** `https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/mnr-alerts.json` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/mnr-alerts.json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi-endpoint.mta.info%2FDataservice%2Fmtagtfsfeeds%2Fcamsys%2Fmnr-alerts.json" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Elevator/escalator status (current)

**GET** `https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/nyct_ene.json` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/nyct_ene.json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi-endpoint.mta.info%2FDataservice%2Fmtagtfsfeeds%2Fnyct%2Fnyct_ene.json" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Elevator/escalator status (upcoming)

**GET** `https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/nyct_ene_upcoming.json` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/nyct_ene_upcoming.json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi-endpoint.mta.info%2FDataservice%2Fmtagtfsfeeds%2Fnyct%2Fnyct_ene_upcoming.json" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Elevator/escalator status (equipments)

**GET** `https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/nyct_ene_equipments.json` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/nyct_ene_equipments.json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi-endpoint.mta.info%2FDataservice%2Fmtagtfsfeeds%2Fnyct%2Fnyct_ene_equipments.json" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Bus GTFS-RT trip-updates

**GET** `https://gtfsrt.prod.obanyc.com/tripUpdates` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://gtfsrt.prod.obanyc.com/tripUpdates', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fgtfsrt.prod.obanyc.com%2FtripUpdates" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Bus GTFS-RT vehicle-positions

**GET** `https://gtfsrt.prod.obanyc.com/vehiclePositions` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://gtfsrt.prod.obanyc.com/vehiclePositions', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fgtfsrt.prod.obanyc.com%2FvehiclePositions" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Bus GTFS-RT alerts

**GET** `https://gtfsrt.prod.obanyc.com/alerts` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://gtfsrt.prod.obanyc.com/alerts', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fgtfsrt.prod.obanyc.com%2Falerts" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Bus SIRI vehicle-monitoring

**GET** `https://bustime.mta.info/api/siri/vehicle-monitoring.json` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://bustime.mta.info/api/siri/vehicle-monitoring.json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fbustime.mta.info%2Fapi%2Fsiri%2Fvehicle-monitoring.json" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Bus SIRI stop-monitoring

**GET** `https://bustime.mta.info/api/siri/stop-monitoring.json` — \$0.0005 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://bustime.mta.info/api/siri/stop-monitoring.json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fbustime.mta.info%2Fapi%2Fsiri%2Fstop-monitoring.json" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
