API to get a list of all the tube lines

Hello,

This is my first question on this forum. I’m a junior developer creating a basic Android transit app. I’ve already registered on https://api.tfl.gov.uk/. I have the API key. I would like to download a list of all the lines, and then have users click on them to view info for a specific subway stop. First, I’d like to test it in Postman. What would be the structure of the Url?

Thank you in advance.

P.S. Please note that at this point I’m not using lat and long.

Hi @Kupod5uR

I would advise looking at the Line endpoint documentation for more information, but you can do a call for each mode you require. e.g. https://api.tfl.gov.uk/Line/Mode/tube/Route

Thanks,
James Evans
Service Performance Manager - Digital

1 Like

Hi,

I hope this doesn’t sound redundant but this is one of my first projects. I’d like to display a list of all the London Tube Lines(11 in total). I’m familiar with JSON parsing. In this case, what would the Url request structure be?

Thank you again.

P.S. Solved.