Marketplace
No threads yet
Live

get_station_routes

thetrainline.com

Returns popular destination routes from a station URN on https://trainline.eu with station data, typical durations, daily train frequency, and first and last departures.

Parameters3
Runs5
Updated3d ago
Operational5 runs · 100% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is get_station_routes?

Returns popular destination routes from a station URN on https://trainline.eu with station data, typical durations, daily train frequency, and first and last departures. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass station_urn, locale, timeout_seconds and get the result back without maintaining a scraper.

Response

{
  "locale": "<string>",
  "routes": [
    {}
  ],
  "station": {},
  "route_count": 0,
  "station_urn": "<string>"
}

Call it

curl --location 'https://us-prod.notte.cc/functions/91604760-164d-4d25-ab59-b09d4bdb2bff/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "91604760-164d-4d25-ab59-b09d4bdb2bff",
    "variables": {
        "station_urn": "urn:trainline:generic:loc:182gb",
        "locale": "en-gb",
        "timeout_seconds": 30
    }
}'

Ask an agent

Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.

prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp).

Call run(function_id="91604760-164d-4d25-ab59-b09d4bdb2bff") — the "get_station_routes" function, which returns popular destination routes from a station URN on https://trainline.eu with station data, typical durations, daily train frequency, and first and last departures..

It takes station_urn (str), locale (str), timeout_seconds (int). Return the result as structured JSON.