Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (47 sloc) 3.13 KB

meinfernbus-rest

A public HTTP REST API, exposing a clean interface to query the Meinfernbus/FlixBus API. Complies with the friendly public transport format. Inofficial, using endpoints by Flixbus/MFB. Ask them for permission before using this endpoint in production.

The public endpoint is available at https://1.flixbus.transport.rest.

dependency status dev dependency status license chat on gitter

GET /regions

Output from search-meinfernbus-locations (regions only).

  • query: Required. Search query
curl 'https://1.flixbus.transport.rest/regions/?query=Frankfurt'

GET /regions/all

List of all operated regions, output from require('meinfernbus').regions.

curl 'https://1.flixbus.transport.rest/regions/all'

GET /stations

Output from search-meinfernbus-locations (stations only).

  • query: Required. Search query
curl 'https://1.flixbus.transport.rest/stations/?query=Frankfurt'

GET /stations/all

List of all operated stations, output from require('meinfernbus').stations.

curl 'https://1.flixbus.transport.rest/stations/all'

GET /journeys

Output from require('meinfernbus').journeys

  • origin: Region id or origin.id: Region/station id and origin.type: Region/station - Required.
  • destination: Region id or destination.id: Region/station id and destination.type: Region/station - Required.
  • date: When? UNIX timestamp or JS-parsable date string. Default: now.
  • adults: Number of adults. Default: 1
  • children: Number of children. Default: 0
  • bikes: Number of bikes. Default: 0
curl 'https://1.flixbus.transport.rest/journeys/?origin=88&destination=1394&date=2018-04-13T10:30:00'

Similar Projects

Contributing

If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.

You can’t perform that action at this time.