---
title: "Search for lines or routes matching the query string"
method: GET
path: "/Line/Search/{query}"
tags: ["Line"]
---

# Search for lines or routes matching the query string

`GET /Line/Search/{query}`

## Path parameters

- `query` string, required

## Query parameters

- `modes` string[]
- `serviceTypes` string[]

## Response `200`

OK

- TflApiPresentationEntitiesRouteSearchResponse
  - `input` string
  - `searchMatches` TflApiPresentationEntitiesRouteSearchMatch[]
    - `lineId` string
    - `mode` string
    - `lineName` string
    - `lineRouteSection` TflApiPresentationEntitiesLineRouteSection[]
      - `routeId` integer
      - `direction` string
      - `destination` string
      - `fromStation` string
      - `toStation` string
      - `serviceType` string
      - `vehicleDestinationText` string
    - `matchedRouteSections` TflApiPresentationEntitiesMatchedRouteSections[]
      - `id` integer
    - `matchedStops` TflApiPresentationEntitiesMatchedStop[]
      - `routeId` integer
      - `parentId` string
      - `stationId` string
      - `icsId` string
      - `topMostParentId` string
      - `direction` string
      - `towards` string
      - `modes` string[]
      - `stopType` string
      - `stopLetter` string
      - `zone` string
      - `accessibilitySummary` string
      - `hasDisruption` boolean
      - `lines` TflApiPresentationEntitiesIdentifier[]
        - `id` string
        - `name` string
        - `uri` string
        - `fullName` string
        - `type` string
        - `crowding` TflApiPresentationEntitiesCrowding
          - `passengerFlows` TflApiPresentationEntitiesPassengerFlow[] — Busiest times at a station (static information)
            - `timeSlice` string — Time in 24hr format with 15 minute intervals e.g. 0500-0515, 0515-0530 etc.
            - `value` integer — Count of passenger flow towards a platform
          - `trainLoadings` TflApiPresentationEntitiesTrainLoading[] — Train Loading on a scale 1-6, 1 being "Very quiet" and 6 being "Exceptionally busy" (static information)
            - `line` string — The Line Name e.g. "Victoria"
            - `lineDirection` string — Direction of the Line e.g. NB, SB, WB etc.
            - `platformDirection` string — Direction displayed on the platform e.g. NB, SB, WB etc.
            - `direction` string — Direction in regards to Journey Planner i.e. inbound or outbound
            - `naptanTo` string — Naptan of the adjacent station
            - `timeSlice` string — Time in 24hr format with 15 minute intervals e.g. 0500-0515, 0515-0530 etc.
            - `value` integer — Scale between 1-6, 1 = Very quiet, 2 = Quiet, 3 = Fairly busy, 4 = Busy, 5 = Very busy, 6 = Exceptionally busy
        - `routeType` 'Unknown' | 'All' | 'Cycle Superhighways' | 'Quietways' | 'Cycleways' | 'Mini-Hollands' | 'Central London Grid' | 'Streetspace Route'
        - `status` 'Unknown' | 'All' | 'Open' | 'In Progress' | 'Planned' | 'Planned - Subject to feasibility and consultation.' | 'Not Open'
        - `motType` string
        - `network` string
      - `status` boolean
      - `id` string
      - `url` string
      - `name` string
      - `lat` number, double
      - `lon` number, double
    - `id` string
    - `url` string
    - `name` string
    - `lat` number, double
    - `lon` number, double

---

[API](https://skmtc.net/tfl/apis/transport-for-london-unified-api.md) · [All operations](https://skmtc.net/tfl/apis/transport-for-london-unified-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tfl/transport-for-london-unified-api/revisions/266abe0486b0/schema)
