Trips are trips.txt entities imported from GTFS, and include the same basic structure and fields, plus some additional metadata.
Trip responses include their associated shape, calendar, frequency, and stop departure information; these entities do not have stand-alone endpoints.
For an overview of trips, schedules, and service calendars, see the Trips & Schedules concept page .
Trips must be accessed through a route; either a route ID or Onestop ID may be used.
Stop time information is only available when requesting a single trip by ID.
To instead see all departures from a given stop, use the stops departures endpoint .
Shapes are included when accessing a single trip, requesting geojson or geojsonl formats, or with include_geometry=true.
Trips scheduled to run on a particular date can be selected using the service_date parameter, a date in YYYY-MM-DD format.
The trip API returns "active" feed versions unless requesting a specific feed version.
Trip API results are based on this GraphQL query .
GET https://transit.land/api/v2/rest/routes/{route_key}/trips
GET https://transit.land/api/v2/rest/routes/{route_key}/trips.{format}Request trips in specified format GET https://transit.land/api/v2/rest/routes/{route_key}/trips/{id}Request a trip by ID GET https://transit.land/api/v2/rest/routes/{route_key}/trips/{id}.{format}Request a trip by ID in specified format route_key string required Route lookup key; can be an integer ID, a '<feed onestop_id>:<gtfs route_id>' key, or a Onestop ID service_date optional string (date) Search for trips active on this date trip_id optional string Search for records with this GTFS trip_id include_geometry optional string Include shape geometry Allowed: true, false
use_service_window optional string Use a fall-back service date if the requested service_date is outside the active service period of the feed version. The fall-back date is selected as the matching day-of-week in the week which provides the best level of scheduled service in the feed version. This value defaults to true. Allowed: true, false
relative_date optional string Search for departures on a relative date label, e.g. TODAY, TUESDAY, NEXT_WEDNESDAY Allowed: TODAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY, NEXT_MONDAY, NEXT_TUESDAY, NEXT_WEDNESDAY, NEXT_THURSDAY, NEXT_FRIDAY, NEXT_SATURDAY, NEXT_SUNDAY
include_alerts optional string Include alerts from GTFS Realtime feeds Allowed: true, false
id optional integer (int32) Search for a specific internal ID after optional integer (int32) Pagination cursor value. This should be treated as an opaque value created by the server and returned as the link to the next result page, which may be empty. For historical reasons, this is based on the integer record ID values, but that should not be assumed to be the case in the future. limit optional integer (int32) Maximum number of records to return feed_version_sha1 optional string Search for records in this feed version feed_onestop_id optional string Search for records in this feed lat optional number Latitude lon optional number Longitude license_commercial_use_allowed optional string Filter entities by feed license 'commercial_use_allowed' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'. Allowed: yes, no, unknown, exclude_no
license_share_alike_optional optional string Filter entities by feed license 'share_alike_optional' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'. Allowed: yes, no, unknown, exclude_no
license_create_derived_product optional string Filter entities by feed license 'create_derived_product' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'. Allowed: yes, no, unknown, exclude_no
license_redistribution_allowed optional string Filter entities by feed license 'redistribution_allowed' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'. Allowed: yes, no, unknown, exclude_no
license_use_without_attribution optional string Filter entities by feed license 'use_without_attribution' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'. Allowed: yes, no, unknown, exclude_no
trips array of Trip List or search for Trips trips. id integer Internal integer ID trips. trip_id string GTFS trips.trip_id trips. trip_headsign nullable string GTFS trips.trip_headsign; text that appears on signage identifying the trip's destination to riders trips. trip_short_name nullable string GTFS trips.trip_short_name; public-facing text used to identify the trip to riders, such as a train number trips. direction_id nullable integer GTFS trips.direction_id; binary indicator of travel direction [0=outbound, 1=inbound]; meaning depends on the agency trips. block_id nullable string GTFS trips.block_id; trips with the same block_id are operated in sequence by the same vehicle trips. wheelchair_accessible nullable integer GTFS trips.wheelchair_accessible [0=no information, 1=vehicle can accommodate at least one rider in a wheelchair, 2=no riders in wheelchairs can be accommodated] trips. bikes_allowed nullable integer GTFS trips.bikes_allowed [0=no information, 1=vehicle can accommodate at least one bicycle, 2=no bicycles allowed] trips. cars_allowed nullable integer GTFS trips.cars_allowed [0=no information, 1=vehicle can accommodate at least one car, 2=no cars allowed] trips. schedule_relationship nullable string (ScheduleRelationship) Real-time status of this trip. STATIC means no GTFS-RT data was matched; otherwise reflects the matching TripUpdate's schedule_relationship. See ScheduleRelationship for per-value semantics Allowed: SCHEDULED, ADDED, UNSCHEDULED, CANCELED, STATIC, SKIPPED, NO_DATA, REPLACEMENT, DUPLICATED, DELETED
trips. stop_pattern_id integer Calculated stop pattern ID; an integer scoped to the feed version trips. feed_version FeedVersion Feed version for this entity trips.feed_version. sha1 string SHA1 hash of the zip file Example: ab5bdc8b6cedd06792d42186a9b542504c5eef9a
trips.feed_version. fetched_at string (datetime) Time when the file was fetched from the URL Example: 2019-11-15T00:45:55.409906
trips.feed_version. feed Feed Feed associated with this feed version trips.feed_version.feed. id integer Internal integer ID trips.feed_version.feed. onestop_id string Onestop ID for this feed.
Format: f-geohash-name.
Example: f-9q9-bart. trips. shape nullable Shape Shape for this trip trips.shape. shape_id string GTFS shapes.shape_id trips.shape. geometry LineString Path geometry for this shape as a LineString trips.shape. generated boolean True if this geometry was generated from stop locations because the source feed lacks a shapes.txt trips. calendar Calendar Calendar for this trip trips.calendar. service_id string GTFS calendar.service_id trips.calendar. start_date string (date) GTFS calendar.start_date Example: 2019-11-15
trips.calendar. end_date string (date) GTFS calendar.end_date Example: 2019-11-15
trips.calendar. monday integer GTFS calendar.monday [1=service runs on Mondays, 0=service does not run] trips.calendar. tuesday integer GTFS calendar.tuesday [1=service runs on Tuesdays, 0=service does not run] trips.calendar. wednesday integer GTFS calendar.wednesday [1=service runs on Wednesdays, 0=service does not run] trips.calendar. thursday integer GTFS calendar.thursday [1=service runs on Thursdays, 0=service does not run] trips.calendar. friday integer GTFS calendar.friday [1=service runs on Fridays, 0=service does not run] trips.calendar. saturday integer GTFS calendar.saturday [1=service runs on Saturdays, 0=service does not run] trips.calendar. sunday integer GTFS calendar.sunday [1=service runs on Sundays, 0=service does not run] trips.calendar. added_dates array of string (date) Service-added dates derived from calendar_dates.txt records with exception_type=1 trips.calendar. removed_dates array of string (date) Service-removed dates derived from calendar_dates.txt records with exception_type=2 trips. frequencies array of Frequency Frequencies for this trip trips.frequencies. start_time string (hms) GTFS frequencies.start_time Example: 15:21:04
trips.frequencies. end_time string (hms) GTFS frequencies.end_time Example: 15:21:04
trips.frequencies. headway_secs integer GTFS frequencies.headway_secs; time in seconds between departures from the same stop for this trip trips.frequencies. exact_times nullable integer GTFS frequencies.exact_times [0=frequency-based, not exactly scheduled; 1=schedule-based, same headway throughout] trips. alerts nullable array of Alert GTFS-RT service alerts for this trip; pass active: true to return only currently active alerts trips.alerts. cause nullable string GTFS-RT Alert cause trips.alerts. effect nullable string GTFS-RT Alert effect trips.alerts. severity_level nullable string Alert severity: UNKNOWN_SEVERITY, INFO, WARNING, or SEVERE trips.alerts. url nullable array of RTTranslation URL for more information trips.alerts.url. language nullable string BCP 47 language tag for this translation trips.alerts.url. text string Translated text trips.alerts. description_text array of RTTranslation GTFS-RT Alert description text trips.alerts.description_text. language nullable string BCP 47 language tag for this translation trips.alerts.description_text. text string Translated text trips.alerts. tts_description_text nullable array of RTTranslation Description text optimized for text-to-speech (TTS) systems trips.alerts.tts_description_text. language nullable string BCP 47 language tag for this translation trips.alerts.tts_description_text. text string Translated text trips.alerts. active_period nullable array of RTTimeRange Time ranges during which this alert is active. See https://gtfs.org/realtime/reference/#message-timerange trips.alerts.active_period. start nullable integer Start of the range, in Unix epoch seconds trips.alerts.active_period. end nullable integer End of the range, in Unix epoch seconds trips. route Route Route for this trip trips.route. id integer Internal integer ID trips.route. onestop_id nullable string Onestop ID for this route trips.route. route_id string GTFS routes.route_id trips.route. route_short_name nullable string GTFS routes.route_short_name; short name of a route, such as a line number or abbreviation trips.route. route_long_name nullable string GTFS routes.route_long_name; full descriptive name of a route trips.route. alerts nullable array of Alert GTFS-RT service alerts for this route, including those on its mode, at its stops, or on its trips; pass active: true to return only currently active alerts trips.route.alerts. cause nullable string GTFS-RT Alert cause trips.route.alerts. effect nullable string GTFS-RT Alert effect trips.route.alerts. severity_level nullable string Alert severity: UNKNOWN_SEVERITY, INFO, WARNING, or SEVERE trips.route.alerts. url nullable array of RTTranslation URL for more information trips.route.alerts.url. language nullable string BCP 47 language tag for this translation trips.route.alerts.url. text string Translated text trips.route.alerts. description_text array of RTTranslation GTFS-RT Alert description text trips.route.alerts.description_text. language nullable string BCP 47 language tag for this translation trips.route.alerts.description_text. text string Translated text trips.route.alerts. tts_description_text nullable array of RTTranslation Description text optimized for text-to-speech (TTS) systems trips.route.alerts.tts_description_text. language nullable string BCP 47 language tag for this translation trips.route.alerts.tts_description_text. text string Translated text trips.route.alerts. active_period nullable array of RTTimeRange Time ranges during which this alert is active. See https://gtfs.org/realtime/reference/#message-timerange trips.route.alerts.active_period. start nullable integer Start of the range, in Unix epoch seconds trips.route.alerts.active_period. end nullable integer End of the range, in Unix epoch seconds trips.route. agency Agency Agency associated with this route trips.route.agency. id integer Internal integer ID trips.route.agency. agency_id string GTFS agency.agency_id trips.route.agency. agency_name string GTFS agency.agency_name trips.route.agency. onestop_id string Onestop ID for this agency (or its associated operator) trips.route.agency. alerts nullable array of Alert GTFS-RT service alerts for this agency; pass active: true to return only currently active alerts trips.route.agency.alerts. cause nullable string GTFS-RT Alert cause trips.route.agency.alerts. effect nullable string GTFS-RT Alert effect trips.route.agency.alerts. severity_level nullable string Alert severity: UNKNOWN_SEVERITY, INFO, WARNING, or SEVERE trips.route.agency.alerts. url nullable array of RTTranslation URL for more information trips.route.agency.alerts.url. language nullable string BCP 47 language tag for this translation trips.route.agency.alerts.url. text string Translated text trips.route.agency.alerts. description_text array of RTTranslation GTFS-RT Alert description text trips.route.agency.alerts.description_text. language nullable string BCP 47 language tag for this translation trips.route.agency.alerts.description_text. text string Translated text trips.route.agency.alerts. tts_description_text nullable array of RTTranslation Description text optimized for text-to-speech (TTS) systems trips.route.agency.alerts.tts_description_text. language nullable string BCP 47 language tag for this translation trips.route.agency.alerts.tts_description_text. text string Translated text trips.route.agency.alerts. active_period nullable array of RTTimeRange Time ranges during which this alert is active. See https://gtfs.org/realtime/reference/#message-timerange trips.route.agency.alerts.active_period. start nullable integer Start of the range, in Unix epoch seconds trips.route.agency.alerts.active_period. end nullable integer End of the range, in Unix epoch seconds trips. stop_times array of StopTime Stop times for this trip trips.stop_times. arrival_time nullable string (hms) GTFS stop_times.arrival_time Example: 15:21:04
trips.stop_times. departure_time nullable string (hms) GTFS stop_times.departure_time Example: 15:21:04
trips.stop_times. stop_sequence integer GTFS stop_times.stop_sequence; order of stops for this trip; values must increase along the trip but need not be consecutive trips.stop_times. stop_headsign nullable string GTFS stop_times.stop_headsign; overrides the trip-level headsign for passengers boarding at this stop trips.stop_times. pickup_type nullable integer GTFS stop_times.pickup_type [0=regular scheduled pickup, 1=no pickup available, 2=must phone agency to arrange, 3=must coordinate with driver] trips.stop_times. drop_off_type nullable integer GTFS stop_times.drop_off_type [0=regular scheduled drop-off, 1=no drop-off available, 2=must phone agency to arrange, 3=must coordinate with driver] trips.stop_times. timepoint nullable integer GTFS stop_times.timepoint [0=times are approximate, 1=times are exact] trips.stop_times. interpolated nullable integer 1 if this arrival/departure time was filled in by interpolation during import; 0 or null otherwise trips.stop_times. stop Stop Stop associated with this stop time trips.stop_times.stop. id integer Internal integer ID trips.stop_times.stop. stop_id string GTFS stops.stop_id Example: 400029
trips.stop_times.stop. stop_name nullable string GTFS stops.stop_name Example: MADISON AV/E 68 ST
trips.stop_times.stop. geometry Point Geographic location of this stop as a GeoJSON Point trips.stop_times.stop. alerts nullable array of Alert GTFS-RT service alerts for this stop; pass active: true to return only currently active alerts trips.stop_times.stop.alerts. cause nullable string GTFS-RT Alert cause trips.stop_times.stop.alerts. effect nullable string GTFS-RT Alert effect trips.stop_times.stop.alerts. severity_level nullable string Alert severity: UNKNOWN_SEVERITY, INFO, WARNING, or SEVERE trips.stop_times.stop.alerts. url nullable array of RTTranslation URL for more information trips.stop_times.stop.alerts.url. language nullable string BCP 47 language tag for this translation trips.stop_times.stop.alerts.url. text string Translated text trips.stop_times.stop.alerts. description_text array of RTTranslation GTFS-RT Alert description text trips.stop_times.stop.alerts.description_text. language nullable string BCP 47 language tag for this translation trips.stop_times.stop.alerts.description_text. text string Translated text trips.stop_times.stop.alerts. tts_description_text nullable array of RTTranslation Description text optimized for text-to-speech (TTS) systems trips.stop_times.stop.alerts.tts_description_text. language nullable string BCP 47 language tag for this translation trips.stop_times.stop.alerts.tts_description_text. text string Translated text trips.stop_times.stop.alerts. active_period nullable array of RTTimeRange Time ranges during which this alert is active. See https://gtfs.org/realtime/reference/#message-timerange trips.stop_times.stop.alerts.active_period. start nullable integer Start of the range, in Unix epoch seconds trips.stop_times.stop.alerts.active_period. end nullable integer End of the range, in Unix epoch seconds By GTFS trip_id With trip geometry Without the fall-back service date Next Monday First trip only As GeoJSON In one feed version In one feed With trip geometry By ID, as GeoJSON
Copycurl "https://transit.land/api/v2/rest/routes/r-dr5r7-statenislandferry/trips?trip_id=weekendstgeorge000000" \
-H "apikey: YOUR_API_KEY" Example response
{
"trips" : [
{
"bikes_allowed" : 1 ,
"block_id" : null ,
"calendar" : {
"added_dates" : [ ] ,
"end_date" : "2028-01-30" ,
"friday" : 0 ,
"monday" : 0 ,
"removed_dates" : [ ] ,
"saturday" : 1 ,
"service_id" : "weekend" ,
"start_date" : "2026-01-03" ,
"sunday" : 1 ,
"thursday" : 0 ,
"tuesday" : 0 ,
"wednesday" : 0
} ,
"cars_allowed" : null ,
"direction_id" : 0 ,
"feed_version" : {
"feed" : {
"id" : 13 ,
"onestop_id" : "f-dr5r7-nycdotsiferry"
} ,
"fetched_at" : "2026-01-16T02:46:14.015508Z" ,
"sha1" : "34d6bc485d02631cce789ae8a8c27d8e6551fd43"
} ,
"frequencies" : [ ] ,
"id" : 9505148953 ,
"schedule_relationship" : "STATIC" ,
"shape" : {
"generated" : false ,
"shape_id" : "stgeorge"
} ,
"stop_pattern_id" : 0 ,
"trip_headsign" : null ,
"trip_id" : "weekendstgeorge000000" ,
"trip_short_name" : null ,
"wheelchair_accessible" : 1
}
]
}