Transitland

Transitland REST API

Transitland REST API - Access transit data including feeds, agencies, routes, stops, operators, and real-time departures

Logistics & shipping#transportation

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Transitland REST API - Access transit data including feeds, agencies, routes, stops, operators, and real-time departures

Endpoints 21

  • GETSearch for agencies/agencies
  • GETAgencies/agencies/:agency_key
  • GETSearch for feed versions/feed_versions
  • POSTExport feed versions with transformations/feed_versions/exportExport one or more feed versions as a GTFS zip file with optional transformations (ID prefixing, timezone normalization, shape simplification, etc.). Feed…
  • GETFeed Versions/feed_versions/:feed_version_key
  • GETDownload feed version/feed_versions/:feed_version_key/downloadDownload this feed version GTFS zip for this feed, if redistribution is allowed by the source feed's license. Available only using Transitland professional or…
  • GETSearch for feeds/feeds
  • GETFeeds/feeds/:feed_key
  • GETDownload latest feed version/feeds/:feed_key/download_latest_feed_versionDownload the latest feed version GTFS zip for this feed, if redistribution is allowed by the source feed's license
  • GETDownload latest GTFS Realtime feed data/feeds/:feed_key/download_latest_rt/:rt_type.:formatDownload the latest snapshot of the specified GTFS Realtime feed, if redistribution is allowed by the source feed's license. Returns 404 if feed or message…
  • GETOnestop ID Entity Redirect/onestop_id/:onestop_id
  • GETSearch for operators/operators
  • GETOperators/operators/:operator_key
  • GETSearch for routes/routes
  • GETSearch for routes/routes/:route_key
  • GETStop patterns for a route, with their timetables and shapes/routes/:route_key/patterns
  • GETSearch for trips/routes/:route_key/trips
  • GETSearch for trips/routes/:route_key/trips/:id
  • GETSearch for stops/stops
  • GETSearch for stops/stops/:stop_key
  • GETDepartures from a given stop based on static and real-time data/stops/:stop_key/departures

API details

Base URL
https://transit.land/api/v2/rest
Authentication
None declared in the description
Operations
21 operations on 21 pathsGET 20POST 1
Response formats
application/json application/octet-stream application/zip
Description format
OpenAPI 3.0.0, API version 2.0.0

How to test the Transitland REST API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Transitland REST API collection, without the publisher's secrets.
  3. Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
  4. Send a requestPick an endpoint, for example “Search for agencies” (GET /agencies), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Transitland REST API?

Transitland REST API - Access transit data including feeds, agencies, routes, stops, operators, and real-time departures It is listed under Logistics & shipping and has 21 endpoints.

Who publishes the Transitland REST API?

It is listed from Transitland's public API description (an OpenAPI document), not published by Transitland on Swastik Codes. Anyone who controls transit.land can claim the profile by adding a DNS TXT record.

What is the base URL of the Transitland REST API?

Requests go to https://transit.land/api/v2/rest. Endpoint paths are added to this base URL.

How do I authenticate with the Transitland REST API?

Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.

How many endpoints does the Transitland REST API have?

21 operations on 21 paths (20 GET, 1 POST).

Is forking the Transitland REST API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.