Search for feeds

get/feeds

Request

  • Base URL: https://transit.land/api/v2/rest
  • URL: https://transit.land/api/v2/rest/feeds
  • Auth: none declared

Query parameters

feed_keystring

Feed lookup key; can be a Onestop ID or an internal database integer ID

spec'gtfs' | 'gtfs-rt' | 'gbfs' | 'mds'

Type of data contained in this feed

fetch_error'true' | 'false'

Search for feeds with or without a fetch error

tag_keystring

Search for feeds with a tag. Combine with tag_value also query for the value of the tag.

tag_valuestring

Search for feeds tagged with a given value. Must be combined with tag_key.

idinteger

Search for a specific internal ID

afterinteger

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.

limitinteger

Maximum number of records to return

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

Response format

searchstring

Full text search

onestop_idstring

Search for a specific Onestop ID

lonnumber

Longitude

latnumber

Latitude

radiusnumber

Search radius (meters); requires lat and lon

bboxstring

Geographic search using a bounding box, with coordinates in (min_lon, min_lat, max_lon, max_lat) order as a comma separated string

license_commercial_use_allowed'yes' | 'no' | 'unknown' | 'exclude_no'

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'.

license_share_alike_optional'yes' | 'no' | 'unknown' | 'exclude_no'

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'.

license_create_derived_product'yes' | 'no' | 'unknown' | 'exclude_no'

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'.

license_redistribution_allowed'yes' | 'no' | 'unknown' | 'exclude_no'

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'.

license_use_without_attribution'yes' | 'no' | 'unknown' | 'exclude_no'

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'.

Response

ok

Example response

{
  "feeds": [
    {
      "feed_state": {
        "feed_version": {
          "fetched_at": "2019-11-15T00:45:55.409906",
          "sha1": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a"
        }
      },
      "feed_versions": [
        {
          "earliest_calendar_date": "2020-01-01",
          "fetched_at": "2019-11-15T00:45:55.409906",
          "latest_calendar_date": "2020-12-31",
          "sha1": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a"
        }
      ]
    }
  ]
}

Changes

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