# Search Station With Line

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

This API Script is designed to retrieve station information 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 [](https://api-gitbook.kosontechnology.com/shanghai-metro-api "mention") to have `line` and `download` guideline.

## Demo

Retrieve all station information of line 1:

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

## Download

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

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