TransportAPI · Example Payload
Transportapi Plan Journey Example
Public TransitTransportUKReal-TimeJourney PlanningBusRail
Transportapi Plan Journey Example is an example object payload from TransportAPI, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
requestresponse
Example Payload
{
"request": {
"method": "GET",
"url": "https://transportapi.com/v3/uk/journey/from/51.5074,-0.1278/to/51.5033,-0.1195.json?date=2026-05-03&time=10:00&time_is=Departing&app_id=YOUR_APP_ID&app_key=YOUR_APP_KEY"
},
"response": {
"status": 200,
"body": {
"request_time": "2026-05-03T10:00:00+01:00",
"source": "TransportAPI",
"acknowledgements": "Powered by TransportAPI",
"routes": [
{
"duration": 1020,
"departure_datetime": "2026-05-03T10:05:00+01:00",
"arrival_datetime": "2026-05-03T10:22:00+01:00",
"route_parts": [
{
"mode": "walk",
"from_point_name": "Trafalgar Square",
"to_point_name": "Charing Cross Station",
"departure_datetime": "2026-05-03T10:05:00+01:00",
"arrival_datetime": "2026-05-03T10:09:00+01:00",
"line_name": null,
"operator_name": null,
"coordinates": [
[-0.1278, 51.5074],
[-0.1241, 51.5068]
]
},
{
"mode": "train",
"from_point_name": "Charing Cross",
"to_point_name": "London Bridge",
"departure_datetime": "2026-05-03T10:10:00+01:00",
"arrival_datetime": "2026-05-03T10:19:00+01:00",
"line_name": "South Eastern",
"operator_name": "South Eastern",
"coordinates": [
[-0.1241, 51.5068],
[-0.0873, 51.5054]
]
},
{
"mode": "walk",
"from_point_name": "London Bridge Station",
"to_point_name": "Borough Market",
"departure_datetime": "2026-05-03T10:19:00+01:00",
"arrival_datetime": "2026-05-03T10:22:00+01:00",
"line_name": null,
"operator_name": null,
"coordinates": [
[-0.0873, 51.5054],
[-0.0901, 51.5050]
]
}
]
}
]
}
}
}
Work with this as data
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This example
curl "https://apis.io/api/v1/examples/transportapi-plan-journey-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.