GET trips

mbta.com:boston-mbta-transit

Summary:
Operation ID: ApiWeb.TripController.index
Auth: unknown

Parameters (12)

fields[trip] (string, query, optional)

Fields to include with the response. Multiple fields **MUST** be a comma-separated (U+002C COMMA, ",") list. Note that fields can also be selected for included data types: see the [V3 API Best Practices](https://www.mbta.com/developers/v3-api/best-practices) for an example.

filter[date] (string, query, optional)

Filter by trips on a particular date The active date is the service date. Trips that begin between midnight and 3am are considered part of the previous service day. The format is ISO8601 with the template of YYYY-MM-DD.

filter[direction_id] (string, query, optional)

Filter by direction of travel along the route. Must be used in conjuction with `filter[route]` to apply. The meaning of `direction_id` varies based on the route. You can programmatically get the direction names from `/routes` `/data/{index}/attributes/direction_names` or `/routes/{id}` `/data/attri...

Constraints: {'enum': ['0', '1']}

filter[id] (string, query, optional)

Filter by multiple IDs. **MUST** be a comma-separated (U+002C COMMA, ",") list.

filter[name] (string, query, optional)

Filter by multiple names. **MUST** be a comma-separated (U+002C COMMA, ",") list.

filter[revenue] (string, query, optional)

Filter trips by revenue status. Revenue status indicates whether or not the vehicle is accepting passengers. When filter is not included, the default behavior is to filter by `revenue=REVENUE`. Multiple `revenue` types **MUST** be a comma-separated (U+002C COMMA, ",") list.

Constraints: {'enum': ['NON_REVENUE', 'REVENUE', 'NON_REVENUE,REVENUE']}

filter[route] (string, query, optional)

Filter by `/data/{index}/relationships/route/data/id`. Multiple IDs **MUST** be a comma-separated (U+002C COMMA, ",") list.

filter[route_pattern] (string, query, optional)

Filter by route pattern IDs **MUST** be a comma-separated (U+002C COMMA, ",") list.

include (string, query, optional)

Relationships to include. * `route` * `vehicle` * `service` * `shape` * `predictions` * `route_pattern` * `stops` * `occupancies` The value of the include parameter **MUST** be a comma-separated (U+002C COMMA, ",") list of relationship paths. A relationship path is a dot-separated (U+002E FULL-STO...

page[limit] (integer, query, optional)

Max number of elements to return

page[offset] (integer, query, optional)

Offset (0-based) of first element in the page

sort (string, query, optional)

Results can be [sorted](http://jsonapi.org/format/#fetching-sorting) by the id or any `/data/{index}/attributes` key. Assumes ascending; may be prefixed with '-' for descending | JSON pointer | Direction | `sort` | |--------------|-----------|------------| | `/data/{index}/attributes/bikes_allo...

Constraints: {'enum': ['bikes_allowed', '-bikes_allowed', 'block_id', '-block_id', 'direction_id', '-direction_id', 'headsign', '-headsign', 'name', '-name', 'revenue_status', '-revenue_status', 'wheelchair_accessible', '-wheelchair_accessible', 'percentage', '-percentage', 'status', '-status']}

No probe data for this endpoint yet.