> For the complete documentation index, see [llms.txt](https://api-gitbook.kosontechnology.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-gitbook.kosontechnology.com/shanghai-metro-api/last-line-timetable.md).

# Last Line Timetable

<mark style="color:blue;">`GET`</mark> `https://api.kosontechnology.com/shanghai-get-last-line-time.php`

This API Script is designed to retrieve last line timetable from Shanghai Metro API using provided parameter

#### Path Parameters

| Name                                   | Type   | Description                     |
| -------------------------------------- | ------ | ------------------------------- |
| line<mark style="color:red;">\*</mark> | String | To specific desired line number |
| download                               | String | To download JSON file           |

## Parameter Guidelines

Refer to [SHANGHAI METRO API](/shanghai-metro-api.md) to have `line` and `download` guideline.

## Demo

Retrieve timetable of line 1:

{% embed url="<https://api.kosontechnology.com/shanghai-get-last-line-time.php?line=1>" %}
Retrieve line 1 timetable
{% endembed %}

## Download

Add download parameter at the end of link to download output in JSON format:

{% embed url="<https://api.kosontechnology.com/shanghai-get-last-line-time.php?line=1&download>" %}
Download line 1 timetable
{% endembed %}
