GTFS GraphQL API
The GTFS GraphQL API is a general purpose API which was created for the Digitransit project and is used heavily by digitransit-ui.
otp-react-redux has also migrated to this API in 2023.
- GraphQL endpoint:
- HTML schema documentation: https://docs.opentripplanner.org/api/dev-2.x/graphql-gtfs/
- Built-in visual GraphQL client: http://localhost:8080/graphiql
Built-in API client
A browser based GraphQL API client is available at http://localhost:8080/graphiql
A complete example that fetches the list of all stops from OTP is:
The API is enabled by default.
If you want to disable it, do it in