# Last Station Timetable

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

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

#### Path Parameters

| Name                                       | Type   | Description                   |
| ------------------------------------------ | ------ | ----------------------------- |
| stat\_id<mark style="color:red;">\*</mark> | String | To specify desired station id |
| download                                   | String | To download JSON file         |

## Parameter Guidelines

Refer to [](https://api-gitbook.kosontechnology.com/shanghai-metro-api "mention") to have `stat_id` and `download` guideline.

## Demo

Retrieve station last timetable for station id 0926:

{% embed url="<https://api.kosontechnology.com/shanghai-get-last-station.php?stat_id=0926>" %}
Retrieve last timetable of 0926 station
{% 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-station.php?stat_id=0926&download>" %}
Download last timetable of 0926 station
{% endembed %}
