Transitfeeds

TransitFeeds API

API to view feed information and download feeds from TransitFeeds.com

Maps & location#openapi#location

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

API to view feed information and download feeds from TransitFeeds.com

Endpoints 4

  • GETRetrieve a list of versions of specified (or all) feeds./getFeedVersions?key=YOUR_API_KEY&feed=string&page=1&limit=10&err=1&warn=1This API call allows you to easily see every single feed update in the TranstiFeeds.com system. Since this can be quite long, it's also possible to filter…
  • GETRetrieve a list of feeds./getFeeds?key=YOUR_API_KEY&location=0&descendants=1&page=1&limit=10&type=gtfsUsed this API to retrieve a list of feeds in the system. Doing so can be usedful to discover feed IDs that can be used in other API calls.
  • GETRetrieve the download URL for the latest version of a feed./getLatestFeedVersion?key=YOUR_API_KEY&feed=stringOnce you have used /getFeeds to discover a feed's URL, you can use this endpoint to download its latest version from TranstiFeeds. It will be unmodified in…
  • GETRetrieve a list of locations./getLocations?key=YOUR_API_KEYRetrieve a list of locations. Each location (except for the root) has a parent location, and each location has zero or more child locations. This hierarchy is…

API details

Base URL
https://api.transitfeeds.com/v1
Authentication
None declared in the description
Operations
4 operations on 4 pathsGET 4
Response formats
application/json
Description format
Swagger 2.0, API version 1.0.0
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the TransitFeeds 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 TransitFeeds 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 “Retrieve a list of versions of specified (or all) feeds.” (GET /getFeedVersions?key=YOUR_API_KEY&feed=string&page=1&limit=10&err=1&warn=1), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the TransitFeeds API?

API to view feed information and download feeds from TransitFeeds.com It is listed under Maps & location and has 4 endpoints.

Who publishes the TransitFeeds API?

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

What is the base URL of the TransitFeeds API?

Requests go to https://api.transitfeeds.com/v1. Endpoint paths are added to this base URL.

How do I authenticate with the TransitFeeds 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 TransitFeeds API have?

4 operations on 4 paths (4 GET).

Is forking the TransitFeeds 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.