Examples

Welcome to the TransportAPI usage examples. These show how our endpoints can be used, as opposed to our API documentation, which describes what the endpoints do.

These are intended for a technical audience, to provide inspiration for what can be built, and tutorials to get started, with code that can be reused in applications.

The examples are mini web applications, written in HTML and javascript. They focus on processing data from the API, rather than style: we don't want functional code getting lost in a sea of styling.

The code is rendered by CodeSandbox where the example can be opened, and edited. If you have an API key for TransportAPI - you can sign up for a free trial - you can add this to the code and start retrieving live data, rather than the cached files.