Skip navigation

Web Services API

All of TriMet's web services are read-only in nature, use HTTP as the transport mechanism, with HTTP GET as the method to call the service, and XML formatted data as the response. Each web service begins with a base URL followed by parameters and arguments. The service arguments are seperated by either a forward slash ("/") as part of the URL path, or GET parameters with the standard "?/&/=" separators.

An application id (AppID) is a required parameter to all TriMet web service calls. Thus, before using the services, register for an AppID here.

Example service calls

First using slashes to separate the service parameters:
"http://developer.trimet.org/ws/V1/arrivals/locIDs/6849,6850/appID/0000000000000000000000000"

Second, using the HTTP GET parameters style:
"http://developer.trimet.org/ws/V1/arrivals?locIDs=6849,6850&appID=0000000000000000000000000"

Available web services

BETA: Vehicles Latest vehicle positions.
Arrivals Reports next arrivals at a stop identified by location ID.
Detours Retrieves a list of detours currently in effect by route.
RouteConfig Retrieves a list of routes being reported by TransitTracker from the active schedule, optionally a list of directions for those routes and stops in each of those directions.
Stop Location Returns stops that are within a geographically defined area or within a distance of a point.
Trip Planner Plan trips between two locations programmatically.