Quickstart
Copy link

Get a key and make your first two requests: the places near a point, then what the API has for a country.

1. Get an API key
Copy link

Sign up for a TravelTime account. Your application id and API key are on your account dashboard, and the same pair works for the TravelTime API and the Data API. The rate limits are in the limits table.

Lost or leaked key

Create a new key on your account dashboard, switch your requests to it, then delete the old one.

2. Set your key
Copy link

Every request sends your application id and key in two headers. Log in and the examples in these docs fill them in for you.

Headers

X-Application-Id: YOUR_APP_ID
X-Api-Key: YOUR_APP_KEY

3. Find places near a point
Copy link

GET /v1/places returns places within a radius of a coordinate, nearest first. This request returns the places listed as cafés within 300 m of King's Cross; category on each row is its main category.

Request

curl -H "X-Application-Id: YOUR_APP_ID" -H "X-Api-Key: YOUR_APP_KEY" \
  "https://data.traveltimeapp.com/v1/places?near=51.5307,-0.1238&radius_m=300&category=cafe"
200 · 42 places, one page

42 pins inside the 300 m circle; a pin opens its row.Drawn from the response on this page; the playground runs it live.

How to read it:

  • name, category and brand say what the place is. verified is true when a government register confirms it.
  • cell is the resolution-9 hexagon the place is in. Every dataset uses the same grid, so one cell id works across all of them.
  • distance_m is the distance from your coordinate in metres; results are nearest first. Pass next_cursor back as cursor for the next 100; null means you have everything.
  • A 401 means the application id or key is missing or wrong. Check the X-Application-Id and X-Api-Key headers.

4. See what the API has
Copy link

GET /v1/catalog/{country} is the menu for one country: every dataset, its routes and fields, how many records it has and when it was updated, and the boundary types, transport modes and operators.

Request

curl -H "X-Application-Id: YOUR_APP_ID" -H "X-Api-Key: YOUR_APP_KEY" \
  "https://data.traveltimeapp.com/v1/catalog/gb"
200 · 10 results, one page
RoutesroutesResolutionsresolutionsFieldsfieldsCountries gb availablecountries.gb.available
/places, /places/{id}, /places/cells6, 7, 8 +2id, name, category +21available
/transport/transit/stations, /transport/transit/stations/{id}, /transport/transit/stations/cells6, 7, 8 +2id, name, modes +11available
/transport/transit/lines, /transport/transit/lines/{id}, /transport/transit/lines/cells6, 7, 8 +2id, name, operator.id +9available
/transport/roads, /transport/roads/{id}—id, name, ref +3available
/transport/roads/access, /transport/roads/access/{id}—id, type, road.id +7available

5 of 10 shown · the other 5 are in the response

Where next
Copy link