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

# Get GCRTA vehicles

> Get current GCRTA vehicle locations from GTFS-Realtime.



## OpenAPI

````yaml /openapi.json get /api/v1/gcrta/vehicles
openapi: 3.1.2
info:
  title: MTA API
  description: Managed, API-key protected access to MTA realtime and static data.
  version: 0.1.0
servers:
  - url: https://www.mtaapi.dev
    description: Production
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: subway
    description: Subway realtime data
  - name: bus
    description: BusTime realtime data
  - name: path
    description: PATH realtime arrivals for New Jersey stations
  - name: nj-transit-rail
    description: NJ Transit RailData realtime data
  - name: nyc-ferry
    description: NYC Ferry GTFS and GTFS-Realtime data
  - name: citi-bike
    description: Citi Bike GBFS station and service data
  - name: bay-wheels
    description: Bay Wheels GBFS station and service data
  - name: divvy
    description: Divvy GBFS station and service data
  - name: bluebikes
    description: Bluebikes GBFS station and service data
  - name: capital-bikeshare
    description: Capital Bikeshare GBFS station and service data
  - name: biketown
    description: Biketown GBFS station and service data
  - name: indego
    description: Indego GBFS station and service data
  - name: metro-bike-share
    description: Metro Bike Share GBFS station and service data
  - name: lirr
    description: Long Island Rail Road GTFS and GTFS-Realtime data
  - name: metro-north
    description: Metro-North Railroad GTFS and GTFS-Realtime data
  - name: mbta
    description: MBTA subway, bus, commuter rail, and ferry GTFS and GTFS-Realtime data
  - name: king-county-metro
    description: King County Metro GTFS and GTFS-Realtime data
  - name: capmetro
    description: CapMetro GTFS and GTFS-Realtime data
  - name: bart
    description: BART GTFS and GTFS-Realtime data
  - name: tri-rail
    description: Tri-Rail GTFS and GTFS-Realtime data
  - name: brightline
    description: Brightline GTFS and GTFS-Realtime data
  - name: pace
    description: Pace GTFS and GTFS-Realtime data
  - name: rtd
    description: Denver RTD GTFS and GTFS-Realtime data
  - name: metro-transit
    description: Metro Transit GTFS and GTFS-Realtime data
  - name: prt
    description: Pittsburgh Regional Transit GTFS and GTFS-Realtime bus data
  - name: marta
    description: MARTA GTFS and GTFS-Realtime data
  - name: via
    description: VIA Metropolitan Transit GTFS and GTFS-Realtime data
  - name: gcrta
    description: GCRTA GTFS and GTFS-Realtime data
  - name: cats
    description: CATS GTFS and GTFS-Realtime data
  - name: sacrt
    description: SacRT GTFS and GTFS-Realtime data
  - name: marc
    description: MARC GTFS and GTFS-Realtime data
  - name: uta
    description: UTA GTFS and GTFS-Realtime data
  - name: jta
    description: JTA GTFS and GTFS-Realtime data
  - name: muni
    description: Muni GTFS and GTFS-Realtime data
  - name: caltrain
    description: Caltrain GTFS and GTFS-Realtime data
  - name: alerts
    description: Service alerts
  - name: stops
    description: Route-aware static GTFS stop lookup
  - name: system
    description: Health and database status
paths:
  /api/v1/gcrta/vehicles:
    get:
      tags:
        - gcrta
      summary: Get GCRTA vehicles
      description: Get current GCRTA vehicle locations from GTFS-Realtime.
      operationId: getApiV1GcrtaVehicles
      parameters:
        - name: route
          in: query
          required: false
          schema:
            minLength: 1
            type: string
      responses:
        '200':
          description: Response for status 200
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  required:
                    - route
                    - lat
                    - lon
                    - source
                  properties:
                    route:
                      type: object
                      required:
                        - id
                        - name
                        - mode
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        shortName:
                          type: string
                        color:
                          type: string
                        type:
                          type: number
                        mode:
                          type: string
                          enum:
                            - lirr
                            - metro-north
                            - mbta
                            - king-county-metro
                            - capmetro
                            - bart
                            - tri-rail
                            - brightline
                            - pace
                            - rtd
                            - metro-transit
                            - prt
                            - marta
                            - via
                            - gcrta
                            - cats
                            - sacrt
                            - marc
                            - uta
                            - jta
                            - muni
                            - caltrain
                    vehicleId:
                      type: string
                    tripId:
                      type: string
                    trainNumber:
                      type: string
                    stop:
                      type: object
                      required:
                        - id
                        - name
                        - lat
                        - lon
                        - mode
                      properties:
                        id:
                          type: string
                        code:
                          type: string
                        name:
                          type: string
                        lat:
                          type: number
                        lon:
                          type: number
                        parentStation:
                          type: string
                        mode:
                          type: string
                          enum:
                            - lirr
                            - metro-north
                            - mbta
                            - king-county-metro
                            - capmetro
                            - bart
                            - tri-rail
                            - brightline
                            - pace
                            - rtd
                            - metro-transit
                            - prt
                            - marta
                            - via
                            - gcrta
                            - cats
                            - sacrt
                            - marc
                            - uta
                            - jta
                            - muni
                            - caltrain
                    lat:
                      type: number
                    lon:
                      type: number
                    bearing:
                      type: number
                    destination:
                      type: string
                    recordedAt:
                      type: string
                    source:
                      type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.