Make your first Trip Topology API request

Create an API key and look up an airport with curl.

Create a key

Sign in to the console, create an API key and copy it. The key is shown once. Set your API origin and store the key outside source code:

export TRIP_TOPOLOGY_URL='https://api.triptopology.com'
export TRIP_TOPOLOGY_KEY='replace-with-your-key'

Look up Frankfurt Airport

curl -fsS "$TRIP_TOPOLOGY_URL/v1/places/FRA" \
  -H "Authorization: Bearer $TRIP_TOPOLOGY_KEY" |
  jq '.data | {id, name, country, cities}'

The command uses jq to print selected fields from the response:

{
  "id": "FRA",
  "name": "Frankfurt Main Airport",
  "country": "DE",
  "cities": [
    {
      "id": "geonames:2925533",
      "name": "Frankfurt am Main"
    }
  ]
}

Remove the pipe to jq to see the full {data, meta} envelope. Use the airport ID FRA as a route endpoint to reach the airport. Use city ID geonames:2925533 to search across its places. For other airports, search by name with /v1/places?q=....

About the examples

The outputs in these guides were captured from the 29 November 2026 network snapshot. The hosted API serves a changing network, so the same requests can return different results. Use your intended travel date for a dated search.

Next, find direct services between two cities or plan a dated train and flight journey.