Find and filter train stations across Europe, including their location and local timezone.
Train Travel API (1.0.0)
API for finding and booking train trips across Europe. This API was created by Bump.sh for the entire OpenAPI community, for educational and demonstrative purposes.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi
Production
https://api.example.com
Request
Returns a list of available train trips between the specified origin and destination stations on the given date, and allows for filtering by bicycle and dog allowances.
Security
OAuth2(Required scopes:
read
)- Mock serverhttps://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi/trips
- Productionhttps://api.example.com/trips
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi/trips?origin=efdbb9d1-02c2-4bc3-afb7-6788d8782b1e&destination=b2e783e1-c824-4d63-b37a-d8d698862f1d&date=2024-02-01T09%3A00%3A00Z&bicycles=false&dogs=false' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
- application/json
- application/xml
{ "data": [ { … }, { … } ], "links": { "self": "https://api.example.com/trips?origin=efdbb9d1-02c2-4bc3-afb7-6788d8782b1e&destination=b2e783e1-c824-4d63-b37a-d8d698862f1d&date=2024-02-01", "next": "https://api.example.com/trips?origin=efdbb9d1-02c2-4bc3-afb7-6788d8782b1e&destination=b2e783e1-c824-4d63-b37a-d8d698862f1d&date=2024-02-01&page=2" } }