Travel
Citymapper logo

Citymapper API

citymapper.com

Citymapper - multi-modal transit routing, live line status, and station search.

Actions
5
Category
Travel
Login
Not required
Output
JSON

Call the Citymapper API

Submit a task, then poll the job until it settles. This example runs act_citymapper_journey_live_departure_times.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_citymapper_journey_live_departure_times",
    "params": {
      "region_id": "uk-london",
      "signatures": ["{\"car\": 2880, \"duration\": 944, \"end\": {\"coords\": \"51.511585,-0.103767\", \"name\": \"Blackfriars\"}, \"jr_index\": 0, \"legs\": [{\"distance\": 506, \"duration\": 392, \"ec\": \"51.53121,-0.12531\", \"in_station\": \"0/210\", \"mode\": \"walk\", \"sc\": \"51.53068,-0.12335\", \"to_exit\": \"StPancrasInternational_E2_PancrasRd\"}, {\"duration\": 480, \"end\": \"Blackfriars\", \"headway\": 218, \"mode\": \"transit\", \"route_ids\": [\"NationalRailTL\"], \"start\": \"StPancrasInternational\", \"stop_count\": 4, \"stop_ids\": [\"Platform_StPancrasInternational_T_dS\", \"Platform_Blackfriars_NationalRail_dS\"]}, {\"distance\": 0, \"duration\": 0, \"ec\": \"51.50989,-0.1033\", \"mode\": \"walk\", \"sc\": \"51.50989,-0.1033\"}], \"price_pence\": 300, \"region\": \"uk-london\", \"routing_request_id\": \"ab08cc13-9709-47ce-983c-621b0d5f86e5\", \"start\": {\"address\": \"Euston Road, London N1 9AL, UK\", \"coords\": \"51.530686,-0.123355\", \"name\": \"King's Cross\"}, \"time\": \"2026-05-21T15:28:25+01:00/NOWISH\", \"version\": 5}","{\"car\": 2880, \"duration\": 1491, \"end\": {\"coords\": \"51.511585,-0.103767\", \"name\": \"Blackfriars\"}, \"jr_index\": 1, \"legs\": [{\"distance\": 78, \"duration\": 140, \"ec\": \"51.53037,-0.12383\", \"in_station\": \"0/90\", \"mode\": \"walk\", \"sc\": \"51.53068,-0.12335\", \"to_exit\": \"KingsCrossStPancras_E06_Euston_N\"}, {\"duration\": 1140, \"end\": \"Blackfriars\", \"headway\": 634, \"mode\": \"transit\", \"route_ids\": [\"Circle\"], \"start\": \"KingsCrossStPancras\", \"stop_count\": 11, \"stop_ids\": [\"Platform_KingsCrossStPancras_CHcM_dSE\", \"Platform_Blackfriars_CD_dW\"]}, {\"distance\": 0, \"duration\": 0, \"ec\": \"51.51159,-0.10377\", \"mode\": \"walk\", \"sc\": \"51.51159,-0.10377\"}], \"price_pence\": 300, \"region\": \"uk-london\", \"routing_request_id\": \"ab08cc13-9709-47ce-983c-621b0d5f86e5\", \"start\": {\"address\": \"Euston Road, London N1 9AL, UK\", \"coords\": \"51.530686,-0.123355\", \"name\": \"King's Cross\"}, \"time\": \"2026-05-21T15:28:25+01:00/NOWISH\", \"version\": 5}","{\"car\": 2880, \"duration\": 1634, \"end\": {\"coords\": \"51.511585,-0.103767\", \"name\": \"Blackfriars\"}, \"jr_index\": 2, \"legs\": [{\"distance\": 554, \"duration\": 393, \"ec\": \"51.53052,-0.11767\", \"mode\": \"walk\", \"sc\": \"51.53068,-0.12335\"}, {\"duration\": 1095, \"end\": \"490013934S\", \"headway\": 438, \"mode\": \"transit\", \"route_ids\": [\"LondonBus63\"], \"start\": \"490010929L\", \"stop_count\": 11}, {\"ec\": \"51.511585,-0.103767\", \"mode\": \"onyourown\", \"sc\": \"51.50821,-0.1043\"}], \"price_pence\": 175, \"region\": \"uk-london\", \"routing_request_id\": \"ab08cc13-9709-47ce-983c-621b0d5f86e5\", \"start\": {\"address\": \"Euston Road, London N1 9AL, UK\", \"coords\": \"51.530686,-0.123355\", \"name\": \"King's Cross\"}, \"time\": \"2026-05-21T15:28:25+01:00/NOWISH\", \"version\": 5}","{\"car\": 2880, \"duration\": 1247, \"end\": {\"coords\": \"51.511585,-0.103767\", \"name\": \"Blackfriars\"}, \"jr_index\": 3, \"legs\": [{\"distance\": 78, \"duration\": 140, \"ec\": \"51.53037,-0.12383\", \"in_station\": \"0/90\", \"mode\": \"walk\", \"sc\": \"51.53068,-0.12335\", \"to_exit\": \"KingsCrossStPancras_E06_Euston_N\"}, {\"duration\": 180, \"end\": \"Farringdon\", \"headway\": 137, \"mode\": \"transit\", \"route_ids\": [\"Circle\", \"HammersmithAndCity\", \"Metropolitan\"], \"start\": \"KingsCrossStPancras\", \"stop_count\": 2, \"stop_ids\": [\"Platform_KingsCrossStPancras_CHcM_dSE\", \"Platform_Farringdon_CHcM_dE\"]}, {\"distance\": 1082, \"duration\": 882, \"ec\": \"51.51163,-0.10393\", \"from_exit\": \"Farringdon_E1a_Cowcross_tube\", \"in_station\": \"2/75\", \"mode\": \"walk\", \"sc\": \"51.52017,-0.10474\", \"to_exit\": \"Blackfriars_E1_City\"}], \"price_pence\": 300, \"region\": \"uk-london\", \"routing_request_id\": \"ab08cc13-9709-47ce-983c-621b0d5f86e5\", \"start\": {\"address\": \"Euston Road, London N1 9AL, UK\", \"coords\": \"51.530686,-0.123355\", \"name\": \"King's Cross\"}, \"time\": \"2026-05-21T15:28:25+01:00/NOWISH\", \"version\": 5}","{\"car\": 2880, \"duration\": 1364, \"end\": {\"coords\": \"51.511585,-0.103767\", \"name\": \"Blackfriars\"}, \"jr_index\": 4, \"legs\": [{\"distance\": 78, \"duration\": 155, \"ec\": \"51.53037,-0.12383\", \"in_station\": \"0/105\", \"mode\": \"walk\", \"sc\": \"51.53068,-0.12335\", \"to_exit\": \"KingsCrossStPancras_E06_Euston_N\"}, {\"duration\": 540, \"end\": \"Victoria\", \"headway\": 104, \"mode\": \"transit\", \"route_ids\": [\"Victoria\"], \"start\": \"KingsCrossStPancras\", \"stop_count\": 6, \"stop_ids\": [\"Platform_KingsCrossStPancras_V_dW\", \"Platform_Victoria_V_dSE\"]}, {\"distance\": 260, \"duration\": 90, \"ec\": \"51.49634,-0.14384\", \"in_station\": \"1/90\", \"mode\": \"walk\", \"sc\": \"51.49634,-0.14384\"}, {\"duration\": 480, \"end\": \"Blackfriars\", \"headway\": 131, \"mode\": \"transit\", \"route_ids\": [\"Circle\", \"District\"], \"start\": \"Victoria\", \"stop_count\": 6, \"stop_ids\": [\"Platform_Victoria_CD_dNE\", \"Platform_Blackfriars_CD_dE\"]}, {\"distance\": 0, \"duration\": 0, \"ec\": \"51.51159,-0.10377\", \"mode\": \"walk\", \"sc\": \"51.51159,-0.10377\"}], \"price_pence\": 300, \"region\": \"uk-london\", \"routing_request_id\": \"ab08cc13-9709-47ce-983c-621b0d5f86e5\", \"start\": {\"address\": \"Euston Road, London N1 9AL, UK\", \"coords\": \"51.530686,-0.123355\", \"name\": \"King's Cross\"}, \"time\": \"2026-05-21T15:28:25+01:00/NOWISH\", \"version\": 5}"]
    }
  }'

5 actions on citymapper.com

Read

  • Multimodal Transit Journeys

    act_citymapper_multimodal_transit_journeysread2 credits / call

    Returns ranked multi-modal transit routes between two points with legs, durations, and prices.

    start
    string · required
    end
    string · required
    saddr
    string · required
    sname
    string · required
    ename
    string · required
    region_id
    string · required
  • Transit Line Route Details

    act_citymapper_transit_line_route_detailread2 credits / call

    Returns route geometry, stop patterns, colors, and status for given transit lines.

    route_ids
    string · required
    region_id
    string · required
    weekend
    string
  • Transit Line Status

    act_citymapper_transit_line_statusread1 credit / call

    Returns live disruption and service-status summaries for all transit lines in a region.

    region_id
    string · required

Write

Write actions change state on citymapper.com and run as the account you connect.

  • Journey Live Departure Times

    act_citymapper_journey_live_departure_timeswrite2 credits / call

    Resolves live departure times, platforms, and per-leg timing for selected journeys.

    region_id
    string · required
    signatures
    array · required
  • Place Search Autocomplete

    act_citymapper_place_search_autocompletewrite2 credits / call

    Searches places and stations by query, returning ids, coordinates, and names.

    query
    string · required
    region_id
    string · required

Citymapper API questions

Is there an API for Citymapper?
Citymapper does not offer a public data API for this, but Anakin Wire provides 5 maintained endpoints for citymapper.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Citymapper data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when citymapper.com changes its markup, Anakin updates the action.
Do I need a Citymapper account?
No. Every Citymapper action listed here runs anonymously — no account and no credentials required.
What does the Citymapper API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Travel APIs

All Travel sites