# Check Price

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

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

#### Path Parameters

| Name                                              | Type   | Description                                |
| ------------------------------------------------- | ------ | ------------------------------------------ |
| departure\_id<mark style="color:red;">\*</mark>   | String | To specific desired departure station id   |
| destination\_id<mark style="color:red;">\*</mark> | String | To specific desired destination station id |
| ticket<mark style="color:red;">\*</mark>          | String | To specific desired ticket type            |
| download                                          | String | To download json file                      |

## Parameter Guidelines

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

## Demo

Retrieve price information of departure\_id 0926, destination\_id 0737 and ticket 0:

{% embed url="<https://api.kosontechnology.com/shanghai-check-price.php?departure_id=0926&destination_id=0737&ticket=0>" %}
Check ticket price
{% endembed %}

## Download

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

{% embed url="<https://api.kosontechnology.com/shanghai-check-price.php?departure_id=0926&destination_id=0737&ticket=0&download>" %}
Download ticket price
{% endembed %}
