REST API for developers and AI agents

A city-to-city route API for air, rail and road

Find direct train and flight connections and see when services usually run. Search on a date to see how trains, airport buses and flights fit into one journey.

Cologne to Tokyo

Köln Hbf to Tokyo Haneda International AirportKöln Hbf to Frankfurt Main Airport by train. Frankfurt Main Airport to Tokyo Haneda International Airport by flight.Köln HbfFrankfurt Main AirportTokyo HanedaInternationalAirport
  • Train
  • Flight
Explore the network map

What you can query

Use the same city and place IDs to look up direct services or plan a journey with transfers.

Cities

Find city IDs and the airports and stations associated with each city.

GET /v1/cities

Places

Look up an airport or station by name or code, or find places in a map area.

GET /v1/places

Direct connections

See which places connect without changing vehicles, and when services usually run.

GET /v1/connections

Operators

Look up airlines, ground operators and transport networks.

GET /v1/operators

Dated journeys

Search for options on a date and compare legs, transfers and local ride times.

GET /v1/journeys

Cologne to Tokyo in one request

No direct flight appears in the network snapshot. On 3 December 2026, the API found ICE 225 from Köln Hbf to Frankfurt Airport and flight LH716 to Tokyo Haneda in one dated search.

Request
curl --get 'https://api.triptopology.com/v1/journeys' \
  -H "Authorization: Bearer $TRIP_TOPOLOGY_KEY" \
  --data-urlencode 'from=geonames:2886242' \
  --data-urlencode 'to=geonames:1850147' \
  --data-urlencode 'date=2026-12-03' \
  --data-urlencode 'depart_after=11:00' \
  --data-urlencode 'depart_before=11:30' \
  --data-urlencode 'limit=1'
JSON response excerpt
{
  "data": [
    {
      "departure": "2026-12-03T11:18:00+01:00",
      "arrival": "2026-12-04T10:45:00+09:00",
      "change_count": 1,
      "legs": [
        {
          "mode": "rail",
          "label": "ICE 225"
        },
        {
          "mode": "air",
          "label": "LH716"
        }
      ]
    }
  ]
}

The train arrives at the airport's long-distance station. The flight lands at Haneda the next morning, and the result doesn't include a ride into Tokyo.

Read the full captured response

Integration guides

Schedules, not live status

Trip Topology doesn't provide fares, booking, seat availability or live status. A dated journey is a best-effort route from known schedules. Verify schedule and availability before booking. An empty result doesn't prove there is no service.

Check coverage or read how schedules work.

For AI agents

Start with llms.txt for usage rules and OpenAPI 3.1 for operation and response schemas. An agent can register for a Free key over HTTP and use it with REST or MCP. Keep the key out of prompts.

Read the AI agent guide

Pricing

Accounts start on Free. Contact us if you need service guarantees or support.

Plan Access USD per month Get started
Free Free, no usage cap today $0 Get an API key
Starter Higher service guarantees and support by agreement $19 Contact us
Growth Higher service guarantees and support by agreement $99 Contact us
Scale Higher service guarantees and support by agreement $499 Contact us

We may introduce fair-use rules and usage limits later with notice.

How we count API calls