Skip Navigation

GTFS Realtime Access

Need a key?

Please use the form below to request a key for our API. Your key will be delivered to you by email and unique to you. Please store your key somewhere secure as you will be prompted to use it when communicating with the API.

Provide your name and email address.
*Name
*Email
By checking this box, you are agreeing to our terms of service.

 

Triggering Rate Limits?

If you are triggering 429 errors and reaching your rate limit, a rate limit increase may be needed to ensure your application can continue making API requests.
Please fill out the information below to request an increase to your rate limit.

 

Provide your API key and associated email address.
*API Key
*Email

Lost your API key?

No Problem! Just enter your email address below, and we'll email it to you.

Provide your email address.
*Email
Reset API key (note: this will generate a new API Key).
 
 

API Key Usage

After signing up, you’ll be given your own, unique API key. The key:
    • Uniquely identifies you.
    • Gives you access to all APIs in regards to GTFSRt services.
    • Should be kept private and should not be shared.


API Conventions

Feed Type Feed URL Refresh Rate API Key Required
Trips Trips Feed: https://metrolink-gtfsrt.gbsdigital.us/feed/gtfsrt-trips 30 seconds Yes
Vehicles Vehicles Feed: https://metrolink-gtfsrt.gbsdigital.us/feed/gtfsrt-vehicles 30 seconds Yes
Alerts Vehicles Feed: https://metrolink-gtfsrt.gbsdigital.us/feed/gtfsrt-alerts  30 seconds Yes

Note: feed formats (MIME Types) are returned in application/x-google-protobuf.

Google's GTFSRt documentation can be viewed here


Extended REST API



HTTP Header

Pass the API key into the X-Api-Key request header:

curl -H 'X-Api-Key: YOUR_KEY' ' API_URL '


Terms of Use

  • All web service requests require an API key to identify requests.
  • Developers should request a distinct API key for each application they build.
  • All users of an application shall use their own API key.

The GTFS data is provided on an “as is” basis. Metrolink specifically disclaims any warranty, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular use. The entire risk as to the quality and performance is with the requestor. In no event will Metrolink or its staff be liable for any direct, indirect, incidental, special, consequential, or other damages, including loss of profit, arising out of the use of this data, even if Metrolink has been advised of the possibility of such damages. The requestor acknowledges and accepts the limitations of the data, including the fact that the data is dynamic and is in a constant state of maintenance, correction, and update.