GET underground-line

A lookup call to get all available underground lines, including their ID and description.

When accessed via a GET request this API method will return a list of all underground lines.

INPUT

As this method is accessed via a GET request there is no HTTP body so options can be specified via the URL.

parameter type description
This method has no input parameters.

OUTPUT - JSON sample

If accessing GET /api/underground-line the following JSON would be returned:

{
    "data": [
        "Bakerloo",
        "Central",
        "Circle or Hammersmith and City",
        "District",
        "Glasgow Subway",
        "Jubilee",
        "Metropolitan",
        "Northern",
        "Piccadilly",
        "Victoria",
        "Waterloo and City"
    ]
}
        

A "data" element that contains an array of underground lines represented as strings.