Thetrainline: Get Booking Url

Thetrainline via Parse · travel

Generate a pre-filled Trainline booking URL that takes the user directly to search results for a specific journey, ready to select a fare and checkout. Does not make any network request to Trainline — constructs the URL locally from the provided parameters. Search UK train stations, find cheapest fares across date ranges, search journeys, and generate booking URLs for Trainline.com Fulfilled by Parse from www.thetrainline.com.

  • ecommerce
  • maps-geo
  • parse
  • platform-key
  • thetrainline
  • travel
  • www-thetrainline-com
Verified

Price and execution

Price
$0.02 USD credits / call
Trust tier
Verified
Execution
Managed call
Capability group
travel

Interface snapshot

Protocol
HTTP operation
Operation
GET /scraper/6ece94aa-46a7-4f0f-916f-e4855ba2a3fd/get_booking_url
Interface artifact
sha256:67020b15c88130ee64242e238a3c1f951193b55ecddeff2def14ff909d23a11b
Manifest digest
sha256:50674f610b8e8b413a58c1fcb5cbeb684c543c678ffedb91d7ffd08beec1b390

Request fields

  • date (string): Departure date/time in YYYY-MM-DD or YYYY-MM-DDTHH:MM format. Defaults to tomorrow 09:00
  • origin (string, required): Origin station URN code from search_stations (e.g. urn:trainline:generic:loc:MAN2968gb)
  • passengers (integer): Number of adult passengers: Allowed values: 1
  • destination (string, required): Destination station URN code from search_stations (e.g. urn:trainline:generic:loc:EUS1444gb)
  • return_date (string): Return date in YYYY-MM-DD or YYYY-MM-DDTHH:MM format. Used when journey_type is return
  • journey_type (string): Journey type: single or return: Allowed values: single, return
  • passenger_ages (string): Comma-separated ages of passengers (e.g. '30,25'). Defaults to 30 for each passenger

Example queries

  • {"origin":"urn:trainline:generic:loc:MAN2968gb","passengers":"2","destination":"urn:trainline:generic:loc:EUS1444gb","journey_type":"single"}

Similar offerings

Capability / providerTierPriceProtocolCapability groupInspect

Skyscanner: Get Price Calendar Monthly

Skyscanner via Parse

Tier: Verified. Protocol: http. Group: travel.
Verified$0.02 / callhttptravel

Nationalrail: Get Live Departures

Nationalrail via Parse

Tier: Verified. Protocol: http. Group: travel.
Verified$0.02 / callhttptravel

Pitchup: Get Campsite Reviews

Pitchup via Parse

Tier: Verified. Protocol: http. Group: travel.
Verified$0.02 / callhttptravel