APIs / Trip.com / Trains Search

Trip.com: Trains Search

Trains Search from Trip.com as JSON. 3 credits per successful call.

GET /v1/trip-com/trains-search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
fromstringRequiredAny
tostringRequiredAny
datestringRequiredAny
adultsintegerOptionalAny
currencystringOptionalUSD, EUR, GBP, JPY, KRW
localestringOptionalen, en-gb, de, fr, ja, ko, zh-hk

Example request

cURLshell
curl "https://api.perceptlayer.com/v1/trip-com/trains-search?from=JP04454&to=JP04472&date=2026-12-03&adults=1&currency=JPY" \
  -H "X-API-Key: $API_KEY"

Run this endpoint in the playground with your own parameters. 3 credits per successful call; failed calls are free.