trainline.station.search
View connectorSearch Trainline stations by name
POST /v1/operations/trainline.station.searchRestricted access · live-read. Examples are illustrative and do not execute requests.
Inputs
| Parameter | Example type | Example value |
|---|---|---|
| term | string | "Manchester Piccadilly" |
| limit | number | 3 |
Example input
{
"term": "Manchester Piccadilly",
"limit": 3
}Input schema
{
"$id": "https://priv-platform.local/connectors/trainline/station-search.input.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"limit": {
"maximum": 20,
"minimum": 1,
"type": "integer"
},
"term": {
"maxLength": 120,
"minLength": 1,
"type": "string"
}
},
"required": [
"term"
],
"title": "Trainline station-search input",
"type": "object"
}