Search for routes

get/routes/{route_key}

Request

  • Base URL: https://transit.land/api/v2/rest
  • URL: https://transit.land/api/v2/rest/routes/{route_key}
  • Auth: none declared

Path parameters

route_keystring required

Route lookup key; can be an integer ID, a '<feed onestop_id>:<gtfs route_id>' key, or a Onestop ID

Query parameters

limitinteger

Maximum number of records to return

format'json' | 'geojson' | 'geojsonl'

Response format

include_alerts'true' | 'false'

Include alerts from GTFS Realtime feeds

Response

ok

Example response

{
  "routes": [
    {
      "agency": {
        "alerts": [
          {
            "informed_entity": [
              {
                "trip": {
                  "start_date": "2019-11-15",
                  "start_time": "15:21:04"
                }
              }
            ]
          }
        ]
      },
      "alerts": [
        {
          "informed_entity": [
            {
              "trip": {
                "start_date": "2019-11-15",
                "start_time": "15:21:04"
              }
            }
          ]
        }
      ],
      "feed_version": {
        "fetched_at": "2019-11-15T00:45:55.409906",
        "sha1": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a"
      },
      "route_stops": [
        {
          "stop": {
            "alerts": [
              {
                "informed_entity": [
                  {
                    "trip": {
                      "start_date": "2019-11-15",
                      "start_time": "15:21:04"
                    }
                  }
                ]
              }
            ],
            "stop_id": "400029",
            "stop_name": "MADISON AV/E 68 ST"
          }
        }
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.