> 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/line-colour.md).

# Line Colour

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

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

#### Path Parameters

| Name     | Type   | Description               |
| -------- | ------ | ------------------------- |
| download | String | To download the json file |

## Parameter Guidelines

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

## Demo

Retrieve all line colour of metro line:

{% embed url="<https://api.kosontechnology.com/shanghai-get-line-colour.php>" %}
Retrieve all metro line colour
{% endembed %}

## Download

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

{% embed url="<https://api.kosontechnology.com/shanghai-get-line-colour.php?download>" %}
Download all metro line colour
{% endembed %}
