Skip to content

REST endpoint for the FlixBus (Meinfernbus) / FlixTrain API.

License

Notifications You must be signed in to change notification settings

juliuste/flix-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

REST endpoint for the FlixBus (Meinfernbus) / FlixTrain API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published