Transport for London API
Returns London line status, routes, stops, stations and line and stop searches from TfL.
View as Markdown| GET | /tfl/lineStatus | The current service status of every line of one transport mode, such as the tube. |
| GET | /tfl/lineRoute | The route of one line: its stations in order and the route variants (each as its stop ids). |
| GET | /tfl/lineStops | Every stop point a line serves, with its modes, zone and position. |
| GET | /tfl/lineSearch | Lines whose name matches the text, such as the lines a place name is served by. |
| GET | /tfl/stops | Stops and stations whose name matches the text, with their modes, zone and position. |
| GET | /tfl/stop | One stop point by id: its name, modes, zone, address, position and the lines that call there. |
| GET | /tfl/arrivals | The live predictions of the next vehicles to arrive at a stop, soonest first. |
| GET | /tfl/disruptions | The current disruptions of one transport mode, such as planned works and line information. |
| GET | /tfl/journey | Journey planner: the suggested journeys between two places, each with its legs. |
| GET | /tfl/bikePoints | Santander Cycles docking stations whose name matches the text, with their id and position. |
| GET | /tfl/bikePoint | The live status of one docking station: bikes and empty docks now, and whether it is installed and locked. |
| GET | /tfl/stopsNear | Bus, tram, tube, rail and ferry stops within a radius of a position, nearest first, with their distance in metres. |
| GET | /tfl/roadStatus | The current traffic status of the TfL road corridors, such as the A2: all of them, or the one named by road. |
lineStatus
/v1/tfl/lineStatusThe current service status of every line of one transport mode, such as the tube.
Parameters
modestring | Transport mode: tube, dlr, overground, elizabeth-line, tram, river-bus or cable-car.tubedlrovergroundelizabeth-linetramriver-buscable-cardefault tubee.g. tube |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
id | string |
mode | string |
name | string |
reason | string |
status | string |
curl "https://api.hoshime.com/v1/tfl/lineStatus?mode=tube" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/lineStatus?mode=tube", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/lineStatus?mode=tube", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "bakerloo", "mode": "tube", "name": "Bakerloo", "reason": "Bakerloo Line: No service between Queen's Park and Harrow & Wealdstone due to infrastructure damage at Harlesden. Tickets will be accepted o…", "status": "Minor Delays" }, { "id": "central", "mode": "tube", "name": "Central", "reason": "Central Line: Minor delays between White City and Ealing Broadway/West Ruislip and between Leytonstone and Epping/Hainault via Newbury Park …", "status": "Minor Delays" } ], "meta": { "cached": false, "endpoint": "lineStatus", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
lineRoute
/v1/tfl/lineRouteThe route of one line: its stations in order and the route variants (each as its stop ids).
Parameters
idstring required | Line id, such as victoria or elizabeth. e.g. victoria |
directionstring | inbound, outbound or all.inboundoutboundalldefault all |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
direction | string |
id | string |
mode | string |
name | string |
routes | RouteVariant[] |
name | string |
serviceType | string |
stopIds | string[] |
stops | Stop[] |
id | string |
latitude | number (double) |
longitude | number (double) |
modes | ModeName[] |
name | string |
name | string |
zone | string |
curl "https://api.hoshime.com/v1/tfl/lineRoute?id=victoria" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/lineRoute?id=victoria", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/lineRoute?id=victoria", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "direction": "all", "id": "victoria", "mode": "tube", "name": "Victoria", "routes": [ { "name": "Brixton ↔ Walthamstow Central", "serviceType": "Regular", "stopIds": [ "940GZZLUBXN", "940GZZLUSKW" ] }, { "name": "Walthamstow Central ↔ Brixton", "serviceType": "Regular", "stopIds": [ "940GZZLUWWL", "940GZZLUBLR" ] } ], "stops": [ { "id": "940GZZLUGPK", "latitude": 51.506947, "longitude": -0.142787, "modes": [ { "name": "tube" } ], "name": "Green Park Underground Station", "zone": "1" }, { "id": "940GZZLUOXC", "latitude": 51.515224, "longitude": -0.141903, "modes": [ { "name": "tube" } ], "name": "Oxford Circus Underground Station", "zone": "1" } ] }, "meta": { "cached": false, "endpoint": "lineRoute", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
lineStops
/v1/tfl/lineStopsEvery stop point a line serves, with its modes, zone and position.
Parameters
idstring required | Line id, such as victoria. e.g. victoria |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
id | string |
latitude | number (double) |
longitude | number (double) |
modes | ModeName[] |
name | string |
name | string |
zone | string |
curl "https://api.hoshime.com/v1/tfl/lineStops?id=victoria" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/lineStops?id=victoria", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/lineStops?id=victoria", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "940GZZLUBLR", "latitude": 51.586919, "longitude": -0.04115, "modes": [ { "name": "tube" } ], "name": "Blackhorse Road Underground Station", "zone": "3" }, { "id": "940GZZLUBXN", "latitude": 51.462618, "longitude": -0.114888, "modes": [ { "name": "tube" } ], "name": "Brixton Underground Station", "zone": "2" } ], "meta": { "cached": false, "endpoint": "lineStops", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
lineSearch
/v1/tfl/lineSearchLines whose name matches the text, such as the lines a place name is served by.
Parameters
querystring required | Text in the line name, such as victoria. e.g. victoria |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
id | string |
mode | string |
name | string |
curl "https://api.hoshime.com/v1/tfl/lineSearch?query=victoria" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/lineSearch?query=victoria", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/lineSearch?query=victoria", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "victoria", "mode": "tube", "name": "Victoria" } ], "meta": { "cached": false, "endpoint": "lineSearch", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
stops
/v1/tfl/stopsStops and stations whose name matches the text, with their modes, zone and position.
Parameters
querystring required | Text in the stop name, such as victoria. e.g. victoria |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
id | string |
latitude | number (double) |
longitude | number (double) |
modes | ModeName[] |
name | string |
name | string |
zone | string |
curl "https://api.hoshime.com/v1/tfl/stops?query=victoria" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/stops?query=victoria", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/stops?query=victoria", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "HUBVIC", "latitude": 51.495812, "longitude": -0.143826, "modes": [ { "name": "bus" }, { "name": "tube" } ], "name": "Victoria", "zone": "1" }, { "id": "HUBRVC", "latitude": 51.50934, "longitude": 0.018505, "modes": [ { "name": "cable-car" }, { "name": "bus" } ], "name": "Royal Victoria", "zone": "3" } ], "meta": { "cached": false, "endpoint": "stops", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
stop
/v1/tfl/stopOne stop point by id: its name, modes, zone, address, position and the lines that call there.
Parameters
idstring required | Stop id (NaPTAN code), such as 940GZZLUVIC. e.g. 940GZZLUVIC |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
address | string |
id | string |
latitude | number (double) |
lines | LineRef[] |
id | string |
name | string |
longitude | number (double) |
modes | ModeName[] |
name | string |
name | string |
stopType | string |
zone | string |
curl "https://api.hoshime.com/v1/tfl/stop?id=940GZZLUVIC" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/stop?id=940GZZLUVIC", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/stop?id=940GZZLUVIC", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "address": "Victoria Underground Station,London Underground Ltd.,Victoria St,London,SW1E 5ND", "id": "HUBVIC", "latitude": 51.495812, "lines": [ { "id": "3", "name": "3" }, { "id": "38", "name": "38" } ], "longitude": -0.143826, "modes": [ { "name": "bus" }, { "name": "national-rail" } ], "name": "Victoria", "stopType": "TransportInterchange", "zone": "1" }, "meta": { "cached": false, "endpoint": "stop", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
arrivals
/v1/tfl/arrivalsThe live predictions of the next vehicles to arrive at a stop, soonest first.
Parameters
idstring required | Stop id (NaPTAN code), such as 940GZZLUVIC. e.g. 940GZZLUVIC |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
destination | string |
expectedAt | string |
id | string |
lineId | string |
lineName | string |
mode | string |
platform | string |
timeToStation | integer (int64) |
towards | string |
vehicle | string |
curl "https://api.hoshime.com/v1/tfl/arrivals?id=940GZZLUVIC" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/arrivals?id=940GZZLUVIC", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/arrivals?id=940GZZLUVIC", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "destination": "Walthamstow Central Underground Station", "expectedAt": "2026-11-06T18:01:31Z", "id": "-2021654746", "lineId": "victoria", "lineName": "Victoria", "mode": "tube", "platform": "Northbound - Platform 3", "timeToStation": 9, "towards": "Walthamstow Central", "vehicle": "210" }, { "destination": "Brixton Underground Station", "expectedAt": "2026-11-06T18:01:31Z", "id": "-1223640380", "lineId": "victoria", "lineName": "Victoria", "mode": "tube", "platform": "Southbound - Platform 4", "timeToStation": 9, "towards": "Brixton", "vehicle": "236" } ], "meta": { "cached": false, "endpoint": "arrivals", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
disruptions
/v1/tfl/disruptionsThe current disruptions of one transport mode, such as planned works and line information.
Parameters
modestring | Transport mode: tube, dlr, overground, elizabeth-line, tram, river-bus or cable-car.tubedlrovergroundelizabeth-linetramriver-buscable-cardefault tubee.g. tube |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
category | string |
description | string |
type | string |
curl "https://api.hoshime.com/v1/tfl/disruptions?mode=tube" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/disruptions?mode=tube", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/disruptions?mode=tube", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "category": "RealTime", "description": "Central Line: Minor delays between White City and Ealing Broadway/West Ruislip and between Leytonstone and Epping/Hainault via Newbury Park …", "type": "routeInfo" }, { "category": "RealTime", "description": "Central Line: Minor delays between White City and Ealing Broadway/West Ruislip and between Leytonstone and Epping/Hainault via Newbury Park …", "type": "routeInfo" } ], "meta": { "cached": false, "endpoint": "disruptions", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
journey
/v1/tfl/journeyJourney planner: the suggested journeys between two places, each with its legs.
Parameters
fromstring required | Stop id, such as 940GZZLUVIC, or a position as lat,lon. e.g. 940GZZLUVIC |
tostring required | Stop id, such as 940GZZLUOXC, or a position as lat,lon. e.g. 940GZZLUOXC |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
arrivalAt | string |
departureAt | string |
durationMinutes | integer (int64) |
legs | Leg[] |
arrivalAt | string |
departureAt | string |
durationMinutes | integer (int64) |
from | string |
instruction | string |
mode | string |
to | string |
curl "https://api.hoshime.com/v1/tfl/journey?from=940GZZLUVIC&to=940GZZLUOXC" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/journey?from=940GZZLUVIC&to=940GZZLUOXC", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/journey?from=940GZZLUVIC&to=940GZZLUOXC", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "arrivalAt": "2026-11-06T18:05:00Z", "departureAt": "2026-11-06T18:01:00Z", "durationMinutes": 4, "legs": [ { "arrivalAt": "2026-11-06T18:05:00Z", "departureAt": "2026-11-06T18:01:00Z", "durationMinutes": 4, "from": "Victoria Underground Station", "instruction": "Victoria line to Oxford Circus", "mode": "tube", "to": "Oxford Circus Underground Station" } ] }, { "arrivalAt": "2026-11-06T18:06:00Z", "departureAt": "2026-11-06T18:02:00Z", "durationMinutes": 4, "legs": [ { "arrivalAt": "2026-11-06T18:06:00Z", "departureAt": "2026-11-06T18:02:00Z", "durationMinutes": 4, "from": "Victoria Underground Station", "instruction": "Victoria line to Oxford Circus", "mode": "tube", "to": "Oxford Circus Underground Station" } ] } ], "meta": { "cached": false, "endpoint": "journey", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
bikePoints
/v1/tfl/bikePointsSantander Cycles docking stations whose name matches the text, with their id and position.
Parameters
querystring required | Text in the station name, such as waterloo. e.g. waterloo |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
curl "https://api.hoshime.com/v1/tfl/bikePoints?query=waterloo" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/bikePoints?query=waterloo", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/bikePoints?query=waterloo", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "BikePoints_154", "latitude": 51.503791, "longitude": -0.112824, "name": "Waterloo Station 3, Waterloo" }, { "id": "BikePoints_160", "latitude": 51.506633, "longitude": -0.131773, "name": "Waterloo Place, St. James's" } ], "meta": { "cached": false, "endpoint": "bikePoints", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
bikePoint
/v1/tfl/bikePointThe live status of one docking station: bikes and empty docks now, and whether it is installed and locked.
Parameters
idstring required | Bike point id, such as BikePoints_154. e.g. BikePoints_154 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
bikes | integer (int64) |
docks | integer (int64) |
eBikes | integer (int64) |
emptyDocks | integer (int64) |
id | string |
installed | boolean |
latitude | number (double) |
locked | boolean |
longitude | number (double) |
name | string |
standardBikes | integer (int64) |
curl "https://api.hoshime.com/v1/tfl/bikePoint?id=BikePoints_154" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/bikePoint?id=BikePoints_154", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/bikePoint?id=BikePoints_154", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "bikes": 24, "docks": 35, "eBikes": 16, "emptyDocks": 5, "id": "BikePoints_154", "installed": true, "latitude": 51.503791, "locked": false, "longitude": -0.112824, "name": "Waterloo Station 3, Waterloo", "standardBikes": 8 }, "meta": { "cached": false, "endpoint": "bikePoint", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
stopsNear
/v1/tfl/stopsNearBus, tram, tube, rail and ferry stops within a radius of a position, nearest first, with their distance in metres.
Parameters
latitudestring required | Latitude, from -90 to 90, such as 51.5033. e.g. 51.5033 |
longitudestring required | Longitude, from -180 to 180, such as -0.1276. e.g. -0.1276 |
radiusinteger | Search radius in metres, from 1 to 1000. default 500e.g. 500 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
distanceMeters | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
modes | ModeName[] |
name | string |
name | string |
stopType | string |
curl "https://api.hoshime.com/v1/tfl/stopsNear?latitude=51.5033&longitude=-0.1276&radius=500" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/stopsNear?latitude=51.5033&longitude=-0.1276&radius=500", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/stopsNear?latitude=51.5033&longitude=-0.1276&radius=500", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "distanceMeters": 0, "id": "abc123", "latitude": 0, "longitude": 0, "modes": [ { "name": null } ], "name": "…", "stopType": "…" } ], "meta": { "cached": false, "endpoint": "stopsNear", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }
roadStatus
/v1/tfl/roadStatusThe current traffic status of the TfL road corridors, such as the A2: all of them, or the one named by road.
Parameters
roadstring | Road corridor, such as a2 or a406. Leave it out for all the corridors. e.g. a2 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
id | string |
name | string |
severity | string |
status | string |
statusFrom | string |
statusUntil | string |
curl "https://api.hoshime.com/v1/tfl/roadStatus?road=a2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tfl/roadStatus?road=a2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tfl/roadStatus?road=a2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "abc123", "name": "…", "severity": "…", "status": "…", "statusFrom": "…", "statusUntil": "…" } ], "meta": { "cached": false, "endpoint": "roadStatus", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "tfl", "requestId": "req_2Xb9kQ…", "units": 1 } }