API

Sections

Theme switcher

GTFS

Distribusion allows partners to retrieve carrier schedules in GTFS format for all carriers in the platform via the Retailer API. Retrieval intervals can be freely defined to suit your schedule data refreshment needs. This data is made available within the /marketing_carriers/{marketing_carrier_id}/gtfs endpoint.

Please note that this is an enterprise API feature. Reach out to your Partnership Manager for more information about unlocking this and other advanced features.

File Content

GTFS files are a powerful solution to import carrier schedules in bulk and provide users on your site with relevant travel data, such as:

  • Route information
  • Stop sequences
  • Departure frequencies
  • Dates & days of service
  • Starting prices

File Structure

The files are available in zip format and the structure of the files follows official GFTS documentation as displayed on gtfs.org. Some key characteristics of Distribusion GTFS include:

  • Intermediate stop routing (within stops file)
  • Coverage of prices (cheapest_total_adult_price)
  • Full coverage of single-segment trips available in the Distribusion database

Download our sample GTFS file for Megabus (MEGB).

Update Frequency

Distribusion’s GTFS files are generated every two days to enable you to present accurate and fresh travel data to users.

API Examples

Sample Request to /marketing_carriers/{marketing_carrier_id}/gtfs

HTTP
https://api.demo.distribusion.com/retailers/v4/marketing_carriers/MEGB/gtfs

Sample Response from /marketing_carriers/{marketing_carrier_id}/gtfs

Sample file (MEGB) (zip format)

For more sample responses, check the /marketing_carriers/{marketing_carrier_id}/gtfs endpoint page.

Was this section helpful?

What made this section unhelpful for you?

On this page
  • GTFS
View as Markdown

Ask an AI

Open in ChatGPTOpen in ClaudeOpen in Perplexity

Code with AI

Open in Copilot