# COUNTRY-STATE-CITY

Country State City API Data Retrieval Script Documentation

<mark style="color:blue;">`GET`</mark> `https://api.kosontechnology.com/country-state-city.php`

#### Path Parameters

| Name     | Type   | Description                                                       |
| -------- | ------ | ----------------------------------------------------------------- |
| country  | String | To specify the desired country.                                   |
| state    | String | to specify the desired state within the selected country.         |
| city     | String | To specify the desired city within the selected country and state |
| download | -      | To download the json file                                         |

{% hint style="info" %}
This API script is designed to retrieve information from the CountryStateCity API using provided parameters. The script constructs the appropriate URL based on the parameters provided and then fetches data from the API. Please follow the instructions below to use this script effectively.
{% endhint %}

## **Usage**

1. Making an HTTP request via a web browser or API Platform etc. [Postman](https://www.postman.com/).
2. The following parameters are accepted:

<table><thead><tr><th width="154.33333333333331">Name</th><th width="269">Description</th><th>Format</th></tr></thead><tbody><tr><td>country</td><td>To specify the desired country.</td><td><ul><li>ISO2 Code of Country</li><li><strong>'ALL'</strong> or <strong>'all'</strong></li></ul></td></tr><tr><td>state</td><td>To specify the desired state within the selected country.</td><td><ul><li>ISO2 Code of State</li><li><strong>'ALL'</strong> or <strong>'all'</strong></li></ul></td></tr><tr><td>city</td><td>To specify the desired city within the selected country and state.</td><td><ul><li><strong>'ALL'</strong> or <strong>'all'</strong></li></ul></td></tr><tr><td>download</td><td>To download the JSON output</td><td><ul><li>This parameter does not require the content, <strong>Leave empty</strong> or <strong>Type anything</strong> is acceptable</li></ul></td></tr></tbody></table>

3. Depending on the parameters provided, the script will construct a URL to fetch information from the CountryStateCity API.

## **Parameter Guidelines**

* **`country` Parameter:**
  * If you provide a `country` parameter as 'all' or 'ALL', the script will retrieve information about all countries.
  * If you specify a valid country ISO2 Code as the `country` parameter, the script will retrieve information about that specific country.
* **`state` Parameter:**
  * If you provide a `state` parameter as 'all' or 'ALL' in addition to the `country` parameter, the script will retrieve information about all states within the selected country.
  * If you specify a valid state ISO2 Code as the `state` parameter, the script will retrieve information about that specific state within the selected country.
* **`city` Parameter:**
  * If you provide a `city` parameter as 'all' or 'ALL' in addition to the `country` and `state` parameters, the script will retrieve information about all cities within the selected state and country.
* **`download` Parameter:**
  * If you want to download the JSON output of these parameter, define the parameter with empty or any input will able you to auto download it. See the download sample at [here](#download).

## ISO2 Code

Refer this [wikipedia](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#QT) to find your ISO2 Code.

Below is a sample how to find Malaysia ISO2 Code:

1. Find Malaysia and you will see country code at the left column.

<figure><img src="https://3982209870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdwFjmPksROWsH7LWYXB2%2Fuploads%2Fgit-blob-a05205583f6f66bf14516567cc63bb5a07022ca3%2Fimage%20(1).png?alt=media" alt=""><figcaption><p>'MY' is Malaysia's ISO2 Code</p></figcaption></figure>

2. Onclick on the code then wikipedia with direct you to [ISO 3166-2:MY](https://en.wikipedia.org/wiki/ISO_3166-2:MY) where you can find its state code.

<figure><img src="https://3982209870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdwFjmPksROWsH7LWYXB2%2Fuploads%2Fgit-blob-a3966130c47a51c9e16ebd2e5604cba543b5f24e%2Fimage%20(2).png?alt=media" alt=""><figcaption><p>'01' is Johor's ISO2 Code</p></figcaption></figure>

## Demo

1. Retrieve information about all countries:

{% embed url="<https://api.kosontechnology.com/country-state-city.php?country=ALL>" %}
Retrieve all countries data
{% endembed %}

2. Retrieve information about a specific country:

{% embed url="<https://api.kosontechnology.com/country-state-city.php?country=MY>" %}
Retrieve Malaysia data
{% endembed %}

3. Retrieve information about all states:

{% embed url="<https://api.kosontechnology.com/country-state-city.php?state=ALL>" %}
Retrieve all states data
{% endembed %}

4. Retrieve information about all states within a specific country:

{% embed url="<https://api.kosontechnology.com/country-state-city.php?country=MY&state=ALL>" %}
Retrieve all state data from Malaysia
{% endembed %}

5. Retrieve information about a specific state within a specific country:

{% embed url="<https://api.kosontechnology.com/country-state-city.php?country=MY&state=01>" %}
Retrieve Johor state data from Malaysia
{% endembed %}

6. Retrieve information about all cities within a specific state and country:

{% embed url="<https://api.kosontechnology.com/country-state-city.php?city=ALL&country=MY&state=01>" %}
Retrieve all cities data from Malaysia's Johor
{% endembed %}

7. Retrieve information about all cities within a specific country:

{% embed url="<https://api.kosontechnology.com/country-state-city.php?city=ALL&country=MY>" %}
Retrieve all cities data from Malaysia
{% endembed %}

## Download

Add `download` parameter to download the output json, below is some example of it:

{% embed url="<https://api.kosontechnology.com/country-state-city.php?country=MY&download=>" %}
Download Malaysia's Json File
{% endembed %}

{% embed url="<https://api.kosontechnology.com/country-state-city.php?city=all&country=my&download=&state=01>" %}
Download cities Json File from Malaysia's Johor
{% endembed %}


# INDIA-RAILWAY-TRAIN

India Railway Train Retrieval Script Documentation

<mark style="color:blue;">`GET`</mark> `https://api.kosontechnology.com/india-railway-train.php`

This API script is designed to retrieve information from the Railway Trains - India API using provided parameters.

#### Path Parameters

| Name     | Type   | Description                 |
| -------- | ------ | --------------------------- |
| city     | String | To specify the desired city |
| download | -      | To download the json file.  |

{% hint style="info" %}
This API script is designed to retrieve information from the **Railway Trains - India API** using provided parameters. The script constructs the appropriate URL based on the parameters provided and then fetches data from the API. Please follow the instructions below to use this script effectively.
{% endhint %}

## **Usage**

1. Making an HTTP request via a web browser or API Platform etc. [Postman](https://www.postman.com/).
2. The following parameters are accepted:

<table><thead><tr><th width="154.33333333333331">Name</th><th width="269">Description</th><th>Format</th></tr></thead><tbody><tr><td>city</td><td>To specify the desired city</td><td><ul><li>City Name. Etc. <strong>Mumbai</strong></li></ul></td></tr><tr><td>download</td><td>To download the JSON output</td><td><ul><li>This parameter does not require the content, <strong>Leave empty</strong> or <strong>Type anything</strong> is acceptable</li></ul></td></tr></tbody></table>

3. Depending on the parameters provided, the script will construct a URL to fetch information from the Railway Trains - India API .

## **Parameter Guidelines**

* **`city` Parameter:**
  * If you provide a `city` parameter of India city name etc. '**mumbai**', the script will retrieve Railway Train from that city.
* **`download` Parameter:**
  * If you want to download the JSON output of these parameter, define the `download` parameter with empty or any input will able you to auto download it. See the download sample at [here](#download).

## List of Cities in India <a href="#firstheading" id="firstheading"></a>

Refer this [wikipedia](https://en.wikipedia.org/wiki/List_of_cities_in_India_by_area) to have India's Cities List.

## Demo

Retrieve all trains data from Delhi:

{% embed url="<https://api.kosontechnology.com/india-railway-train.php?city=Delhi>" %}
Retrieve Delhi's trains data
{% endembed %}

## Download

{% embed url="<https://api.kosontechnology.com/india-railway-train.php?city=Delhi&download=>" %}
With empty download parameter
{% endembed %}

{% embed url="<https://api.kosontechnology.com/india-railway-train.php?city=Delhi&download=something>" %}
With random input download parameter
{% endembed %}

both examples download the same thing from Delhi


# SHANGHAI METRO API

Shanghai Metro API Data Retrieval Script Documentation (上海地铁线API)

{% hint style="info" %}
This API script is designed to retrieve information from the airport info database using provided parameters. The script constructs the appropriate URL based on the parameters provided and then fetches data from the API. Please follow the instructions below to use this script effectively
{% endhint %}

## Usage

1. Making a HTTP request via a web browser or API Platform etc. Postman.
2. The following parameters are accepted:

| Name            | Description                                                | Format                                                                                                                                                                                                           |
| --------------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| departure\_id   | To specific desired departure station id                   | • Station ID. Etc. **0926**                                                                                                                                                                                      |
| destination\_id | To specific desired destination station id                 | • Station ID. Etc. **0737**                                                                                                                                                                                      |
| ticket          | To specific desired ticket type                            | <p>• ‘<strong>0</strong>’ for metro-card</p><p>• ‘<strong>1</strong>’ for one-way ticket</p>                                                                                                                     |
| day             | To specific desired day                                    | <p>•‘<strong>MONTOTHUR\_0</strong>’ for Monday to Thursday</p><p>•‘<strong>FRIDAY\_0</strong>’ for Friday</p><p>•‘<strong>SATURDAY\_0</strong>’ for Saturday</p><p>•‘<strong>WEEKEND\_0</strong>’ for Sunday</p> |
| time            | To specific desired time to enter or leave metro in second | <p>• Time to enter or leave metro in second. Etc. 22:44 = ((22\*60) +44) \*60)</p><p>= <strong>82740</strong></p>                                                                                                |
| line            | To specific desired line number                            | • Line number. Etc. **1**                                                                                                                                                                                        |
| stat\_id        | To specific desired station id                             | • Station ID. Etc. **0926**                                                                                                                                                                                      |
| stat\_name      | To specific desired station name                           | • Station Name. Etc. **JiuTing**                                                                                                                                                                                 |
| download        | To download the JSON output                                | • This parameter does not require the content, **Leave empty** or **Type anything** is acceptable                                                                                                                |

3. Depending on the parameters provided, the script will construct a URL to fetch information from Shanghai-Metro API

## Parameter Guidelines

* **`departure_id`** Parameter:
  * If you provide a valid `departure_id` parameter of departure station etc. '**0926**', the script will retrieve information of selected departure station id.
* **`destination_id`** Parameter:
  * If you provide a valid `destination_id` parameter of destination station etc. '**0737**', the script will retrieve information of selected destination station id.
* **`ticket`** Parameter:
  * If you provide a valid `ticket` parameter as '**0**' or '**1**', the script will retrieve information of selected ticket.
* **`day`** Parameter:
  * If you provide a valid `day` parameter as '**MONTOTHUR\_0**', '**FRIDAY\_0**', '**SATURDAY\_0**' or '**WEEKEND\_0’**, the script will retrieve information of selected day.
* **`time`** Parameter:
  * If you provide a valid `time`parameter of entering or arriving metro etc. '**82740**', the script will retrieve information of selected time.
* **`line`** Parameter:
  * If you provide a `line`parameter of metro line etc. '**1'**, the script will retrieve information of selected line.
* **`stat_id`** Parameter:
  * If you provide a `stat_id`parameter of station etc. '**0926**', the script will retrieve information of selected station id.
* **`stat_name`** Parameter:
  * If you provide a valid `stat_name` parameter of station etc. '**JiuTing**', the script will retrieve information of selected station name.
* **`download`** Parameter:
  * If you want to download the JSON output of these parameters, define the download parameter with empty or any input will able you to auto download it.

## Station ID

Refer this <https://api.kosontechnology.com/json/station-ID.json> to find your station ID.

Below is a sample how you will see station ID at 'key' value:

1. Find station name and you will see station ID at top column.

<figure><img src="https://3982209870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdwFjmPksROWsH7LWYXB2%2Fuploads%2Fgit-blob-4cfeb00b213cdbf5ef326cf9e9d19d96b2822bf4%2Fimage%20(6).png?alt=media" alt=""><figcaption><p>'1438' is LuJiaZui (陆家嘴) Station ID</p></figcaption></figure>

## API

1. Retrieve all metro line number information: [All Line Number](/shanghai-metro-api/all-line-number)
2. Retrieve all metro line timetable: [All Line Timetable](/shanghai-metro-api/all-line-timetable)
3. Retrieve last line timetable: [Last Line Timetable](/shanghai-metro-api/last-line-timetable)
4. Retrieve history based on metro line: [Line History](/shanghai-metro-api/line-history)
5. Retrieve metro line colour: [Line Colour](/shanghai-metro-api/line-colour)
6. Retrieve all metro station information: [All Station Information](/shanghai-metro-api/all-station-information)
7. Retrieve metro station based on metro line: [Search Station With Line](/shanghai-metro-api/search-station-with-line)
8. Retrieve metro station based on station id: [Search Station With Station ID](/shanghai-metro-api/search-station-with-station-id)
9. Retrieve metro station information based on station name: [Search Station With Station Name](/shanghai-metro-api/search-station-with-station-name)
10. Retrieve last station timetable: [Last Station Timetable](/shanghai-metro-api/last-station-timetable)
11. Estimate arrival time: [Estimate Arrival Time](/shanghai-metro-api/estimate-arrival-time)
12. Check ticket price: [Check Price](/shanghai-metro-api/check-price)
13. Check route: [Check Route](/shanghai-metro-api/check-route)


# All Line Number

Line Info Retrieval Script Documentation

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

This API Script is designed to retrieve line number 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) to have `download` guideline.

## Demo

Retrieve all line information:

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

## Download

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

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


# All Line Timetable

All Line Timetable Retrieval Script Documentation

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

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

#### Path Parameters

| Name     | Type   | Description           |
| -------- | ------ | --------------------- |
| download | String | To download JSON file |

## Parameter Guidelines

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

## Demo

Retrieve all metro line timetable:

{% embed url="<https://api.kosontechnology.com/shanghai-get-all-timetable.php>" %}
Retrieve all line 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-all-timetable.php?download>" %}
Download all line timetable
{% endembed %}


# Last Line Timetable

Last Line Timetable Retrieval Script Documentation

<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) 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 %}


# Line History

Line History Retrieval Script Documentation

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

This API Script is designed to retrieve line history 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 the json file.      |

## Parameter Guidelines

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

## Demo

Retrieve metro line history of line 1:

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

## Download

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

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


# Line Colour

Line Colour Info Retrieval Script Documentation

<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) 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 %}


# All Station Information

All Station Info Retrieval Script Documentation

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

This API Script is designed to retrieve all station information from Shanghai Metro API using provided parameter

#### Path Parameters

| Name     | Type   | Description                 |
| -------- | ------ | --------------------------- |
| download | String | To download the JSON output |

## Parameter Guidelines

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

## Demo

Retrieve information of all metro station:

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

## Download

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

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


# Search Station With Line

Station Info Retrieval Based Metro Line Script Documentation

<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 [SHANGHAI METRO API](/shanghai-metro-api) 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 %}


# Search Station With Station ID

Station Info Retrieval Based Station ID Script Documentation

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

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

#### Path Parameters

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

## Parameter Guidelines

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

## Demo

Retrieve all station information for station id 0926:

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


# Search Station With Station Name

All Station Info Retrieval Based Station Name Script Documentation

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

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

#### Path Parameters

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

##

## Parameter Guidelines

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

## Demo

Retrieve all station information for station name JiuTing:

{% embed url="<https://api.kosontechnology.com/shanghai-search-station.php?stat_name=JiuTing>" %}
Retrieve station Jiuting data
{% endembed %}

## Download

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

{% embed url="<https://api.kosontechnology.com/shanghai-search-station.php?stat_name=JiuTing&download>" %}
Download station Jiuting data
{% endembed %}


# Last Station Timetable

Last Station Timetable Retrieval Script Documentation

<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 [SHANGHAI METRO API](/shanghai-metro-api) 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 %}


# Estimate Arrival Time

Estimated Arrival Time Information Retrieval Script Documentation

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

This API Script is designed to estimate arrival time 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                 |
| day <mark style="color:red;">\*</mark>            | String | To specific desired day                                    |
| time<mark style="color:red;">\*</mark>            | String | To specific desired time to enter or leave metro in second |
| download                                          | String | To download json file                                      |

## Parameter Guidelines

Refer to [SHANGHAI METRO API](/shanghai-metro-api) to have `departure_id`, `destination_id`, `day` , `time` and `download` guideline.

## Demo

Estimate arrival time of departure\_id 0926 , destination\_id 0737, day MONTOTHUR\_0, and time 82740:

{% embed url="<https://api.kosontechnology.com/shanghai-estimate-arrival.php?departure_id=0926&destination_id=0737&day=MONTOTHUR_0&time=82740>" %}
Estimate arrival time
{% endembed %}

## Download

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

{% embed url="<https://api.kosontechnology.com/shanghai-estimate-arrival.php?departure_id=0926&destination_id=0737&day=MONTOTHUR_0&time=82740&download>" %}
Download arrival time
{% endembed %}


# Check Price

Price Info Retrieval Script Documentation

<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 [SHANGHAI METRO API](/shanghai-metro-api) 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 %}


# Check Route

Route Info Retrieval Script Documentation

<mark style="color:blue;">`GET`</mark> `https://api.kosontechnology.com/shanghai-check-route.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 [SHANGHAI METRO API](/shanghai-metro-api) to have `destination_id`, `departure_id`, `ticket` and `download` guideline.

## Demo

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

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

## Download

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

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


# AIRPORT-INFO

Airport Info Retrieval Script Documentation

<mark style="color:blue;">`GET`</mark> `https://api.kosontechnology.com/airport.php`

This API script is designed to retrieve information from the airport info database using provided parameters.

#### Path Parameters

| Name         | Type   | Description                                                |
| ------------ | ------ | ---------------------------------------------------------- |
| type         | String | To specify the desired airport type.                       |
| iso\_country | String | To specify the desired country.                            |
| iso\_region  | String | To specify the desired region within the selected country. |
| iata\_code   | String | To specify the desire iata\_code.                          |
| gps\_code    | String | To specify the desire icao\_code.                          |
| download     | -      | To download the json file.                                 |

{% hint style="info" %}
This API script is designed to retrieve information from the airport info database using provided parameters. The script constructs the appropriate URL based on the parameters provided and then fetches data from the API. Please follow the instructions below to use this script effectively.
{% endhint %}

## Usage

1. Making an HTTP request via a web browser or API Platform etc. [Postman](https://www.postman.com/).
2. The following parameters are accepted:

<table><thead><tr><th width="158.20000000000002">Name</th><th width="269">Description</th><th>Format</th></tr></thead><tbody><tr><td>type</td><td>To specify the desired airport type.</td><td><ul><li>Airport type. Etc. <strong>large_airport</strong></li></ul></td></tr><tr><td>iso_country</td><td>To specify the desired country.</td><td><ul><li>Country ISO2 code. Etc. <strong>MY</strong></li></ul></td></tr><tr><td>iso_region</td><td>To specify the desired region within the selected country.</td><td><ul><li>ISO2 Code of Country + ISO2 Code of State. Etc. <strong>MY_01</strong></li></ul></td></tr><tr><td>iata_code</td><td>To specify the desire iata_code.</td><td><ul><li>Airport IATA code. Etc. <strong>KUL</strong></li></ul></td></tr><tr><td>gps_code</td><td>To specify the desire icao_code.</td><td><ul><li>Airport ICAO code. Etc. <strong>WMKK</strong></li></ul></td></tr><tr><td>download</td><td>To download the JSON output</td><td><ul><li>This parameter does not require the content, <strong>Leave empty</strong> or <strong>Type anything</strong> is acceptable</li></ul></td></tr></tbody></table>

3. Depending on the parameters provided, the script will construct a URL to fetch information from the Railway Trains - India API.

## **Parameter Guidelines**

* **type Parameter:**
  * If you provide a `type` parameter of airport type etc. '**large\_airport**', the script will retrieve the airport type.
  * There are 5 airport type in this parameter, which are **Small\_airport**, **Medium\_airport**, **Large\_airport**, **Closed** and **Heliport**.
* **`iso_country`** Parameter:
  * If you provide an`iso_country` parameter of country iso2 code etc. '**MY**', the script will retrieve country iso2 code.
* **`iso_region`** Parameter:
  * If you provide an `iso_region` parameter of region iso2 code etc. '**MY\_01**', the script will retrieve region iso2 code.
* **`iata_code`** Parameter:
  * If you provide an `iata_code` parameter of iata\_code etc. '**KUL**', the script will retrieve airport IATA code.
* **`gps_code`** Parameter:
  * If you provide a `gps_code` parameter of icao\_code etc. '**WMKK**', the script will retrieve airport ICAO code.
* **`download` Parameter:**
  * If you want to download the JSON output of these parameter, define the parameter with empty or any input will able you to auto download it. See the download sample at [here](#download).

## ISO2 Code

Refer this [wikipedia](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#QT) to find your ISO2 Code.

Below is a sample how to find Malaysia ISO2 Code:

1. Find Malaysia and you will see country code at the left column.

<figure><img src="https://3982209870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdwFjmPksROWsH7LWYXB2%2Fuploads%2Fgit-blob-a05205583f6f66bf14516567cc63bb5a07022ca3%2Fimage%20(3).png?alt=media" alt=""><figcaption><p>'MY' is Malaysia's ISO2 Country Code</p></figcaption></figure>

2. Onclick on the code then Wikipedia with direct you to [ISO 3166-2:MY](https://en.wikipedia.org/wiki/ISO_3166-2:MY) where you can find its state code.

<figure><img src="https://3982209870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdwFjmPksROWsH7LWYXB2%2Fuploads%2Fgit-blob-da84e94066c253ce146f76bdb13dc92bda05f797%2Fimage%20(4).png?alt=media" alt=""><figcaption><p>'MY-01' is Johor's ISO2 Region Code</p></figcaption></figure>

## IATA & ICAO(GPS) Code

Refer this [Wikipedia](https://en.wikipedia.org/wiki/Category:Lists_of_airports_by_country) to find your IATA & ICAO(GPS) Code.

Below is a sample how to find Malaysia Airport IATA & ICAO(GPS) Code:

1. Find Malaysia from the list of airports by country.

<figure><img src="https://3982209870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdwFjmPksROWsH7LWYXB2%2Fuploads%2Fgit-blob-ae7267368be91f67fea6f5ea9561a685680a1ccc%2Fimage%20(9).png?alt=media" alt=""><figcaption><p>List of airports by country</p></figcaption></figure>

2. Onclick on the code then Wikipedia with direct you to [List of airports in Malaysia](https://en.wikipedia.org/wiki/List_of_airports_in_Malaysia) where you can find its IATA and ICAO(GPS) code.

<figure><img src="https://3982209870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdwFjmPksROWsH7LWYXB2%2Fuploads%2Fgit-blob-6259e6ab047d080a07c4e632ce13fb50425bb1cc%2Fimage%20(5).png?alt=media" alt=""><figcaption><p>'AOR" is the IATA Code and 'WMKA' is the GPS code.</p></figcaption></figure>

## Demo

Retrieve all airports data from Malaysia:

{% embed url="<https://api.kosontechnology.com/airport.php?iso_country=MY>" %}
all Malaysia airport data
{% endembed %}

Retrieve all airports data from Malaysia and Johor State:

{% embed url="<https://api.kosontechnology.com/airport.php?iso_country=MY&iso_region=MY-01>" %}
all Johor airport data in Malaysia
{% endembed %}

Retrieve airport data based on IATA code:

{% embed url="<https://api.kosontechnology.com/airport.php?iata_code=KUL>" %}
Kuala Lumpur International Airport data
{% endembed %}

Retrieve airport data based on IATA(GPS) code:

{% embed url="<https://api.kosontechnology.com/airport.php?gps_code=ZBBB>" %}
Beijing Xijiao Airport
{% endembed %}

## Download

Add download at the back of the link to download the database in json format.

{% embed url="<https://api.kosontechnology.com/airport.php?iso_country=MY&download>" %}
download Malaysia airport data
{% endembed %}


# INDIA-HOTEL

India Hotel Info Retrieval Script Documentation

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

This API script is designed to retrieve information from the India Hotel info database using provided parameters.

#### Path Parameters

| Name     | Type   | Description                                |
| -------- | ------ | ------------------------------------------ |
| State    | String | To specify the desired state within India. |
| City     | String | To specify the desired city within India.  |
| Category | String | To specify the desired hotel category.     |
| download | -      | To download the json file                  |

{% hint style="info" %}
This API script is designed to retrieve information from the India hotel info database using provided parameters. The script constructs the appropriate URL based on the parameters provided and then fetches data from the API. Please follow the instructions below to use this script effectively.
{% endhint %}

## **Usage**

1. Making an HTTP request via a web browser or API Platform etc. [Postman](https://www.postman.com/).
2. The following parameters are accepted:

<table><thead><tr><th width="139.20000000000002">Name</th><th width="269">Description</th><th>Format</th></tr></thead><tbody><tr><td>State</td><td>To specify the desired state within India.</td><td><ul><li>State Name. Etc. <strong>Delhi</strong></li></ul></td></tr><tr><td>City</td><td>To specify the desired city within India.</td><td><ul><li>City Name. Etc. <strong>New Delhi</strong></li></ul></td></tr><tr><td>Category</td><td>To specify the desired hotel category.</td><td><ul><li>Hotel Category. Etc. <strong>5 Star</strong></li></ul></td></tr><tr><td>download</td><td>To download the JSON output</td><td><ul><li>This parameter does not require the content, <strong>Leave empty</strong> or <strong>Type anything</strong> is acceptable.</li></ul></td></tr></tbody></table>

3. Depending on the parameters provided, the script will construct a URL to fetch information from the India hotel database.

## **Parameter Guidelines**.

* **`State` Parameter:**
  * If you provide a state parameter of India state name etc. '**Delhi**', the script will retrieve all hotel information within the selected state.
* **`City` Parameter:**
  * If you provide a `city` parameter of India city name etc. '**New Delhi**', the script will retrieve all hotel information within the selected city.
* **`Category` Parameter:**
  * If you provide a `Category` parameter of hotel category etc. '5 **Star**', the script will retrieve all hotel information that matches the selected category.
* **`download` Parameter:**
  * If you want to `download` the JSON output of these parameter, define the parameter with empty or any input will able you to auto download it. See the download sample at [here](#download).

## List of India States and Cities

Refer this [wikipedia](https://en.wikipedia.org/wiki/List_of_cities_in_India_by_area) to have India's States and Cities List.

## List of Hotel Category

* 1 to 5 Star

## Demo

{% embed url="<https://api.kosontechnology.com/india-hotel.php>" %}
Retrieve all hotel data from database.
{% endembed %}

{% embed url="<https://api.kosontechnology.com/india-hotel.php?State=Delhi>" %}
all hotel data from Delhi State
{% endembed %}

{% embed url="<https://api.kosontechnology.com/india-hotel.php?City=Delhi>" %}
all hotel data from Delhi City
{% endembed %}

{% embed url="<https://api.kosontechnology.com/india-hotel.php?Category=1%20Star>" %}
all hotel data with 1 Star Category
{% endembed %}

## Download

Add download at the back of the link to download the database in json format.

{% embed url="<https://api.kosontechnology.com/india-hotel.php?Category=1%20Star&download>" %}
download all hotel data with 1 Star Category
{% endembed %}


# HK-FERRY-ROUTE

Hong Kong Ferry route Info Retrieval Script Documentation

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

This API script is designed to retrieve information from the Hong Kong Ferry Route info database using provided parameters.

#### Path Parameters

| Name        | Type    | Description                                 |
| ----------- | ------- | ------------------------------------------- |
| district    | String  | To specify the district type                |
| routeNameE  | String  | To specify the desire route name in English |
| serviceMode | String  | To specify the desire service mode          |
| specialType | Integer | To specify the desire fare type             |
| routeSeq    | Integer | To specify the desire route sequence        |
| stopNameE   | String  | To specify the desire stop name in English  |
| download    | -       | To download the json file                   |

{% hint style="info" %}
This API script is designed to retrieve information from the Hong Kong Ferry Route Information database using provided parameters. The script constructs the appropriate URL based on the parameters provided and then fetches data from the API. Please follow the instructions below to use this script effectively.
{% endhint %}

### Usage

1\. Making an HTTP request via a web browser or API Platform etc.[ ](https://www.postman.com/)[Postman](https://www.postman.com/).

2\. The following parameters are accepted:

<table data-header-hidden><thead><tr><th width="170.33333333333331">Name</th><th>Description</th><th>Format</th></tr></thead><tbody><tr><td>district</td><td>To specify the district type</td><td><ul><li>District type. Etc. <strong>KAITO</strong></li></ul></td></tr><tr><td>routeNameE</td><td>To specify the desire route name in English</td><td><p>Route Name. Etc.</p><p><strong>Po Toi Island - Aberdeen</strong></p></td></tr><tr><td>ServiceMode</td><td>To specify the desire service mode</td><td>Ferry service mode. Etc. <strong>T</strong></td></tr><tr><td>specialType</td><td>To specify the desire fare type</td><td>Fare type. Etc. <strong>1</strong></td></tr><tr><td>routeSeq</td><td>To specify the desire route sequence</td><td>Route sequence. Etc. <strong>1</strong></td></tr><tr><td>stopNameE</td><td>To specify the desire stop name in English</td><td>Stop name. Etc. <strong>Po Toi Island</strong></td></tr><tr><td>download</td><td>To download the JSON output</td><td>This parameter does not require the content, <strong>Leave empty</strong> or <strong>Type anything</strong> is acceptable.</td></tr></tbody></table>

3. Depending on the parameters provided, the script will construct a URL to fetch information from the hk-ferry-route database.

### Parameter Guidelines <a href="#d668o0dowp30" id="d668o0dowp30"></a>

* **`district` Parameter**:
  * If you provide a `district` parameter of district type etc. '**KAITO**', the script will retrieve the district type.
* **`routeNameE` Parameter:**
  * If you provide a `routeNameE` parameter of route name etc. '**Po Toi Island - Aberdeen**', the script will retrieve route name.
* **`serviceMode` Parameter:**
  * If you provide a `serviceMode` parameter of service mode type etc. '**T**', the script will all information for selected service mode.
* **`specialType` Parameter:**
  * If you provide a `specialType` parameter of fare type etc. '**1**', the script will retrieve selected route information of the fare type.
* **`routeSeq` Parameter:**
  * If you provide a `routeSeq` parameter of route sequence etc. '**1**', the script will retrieve selected route sequence information.
* **`stopNameE` Parameter:**
  * If you provide a `stopNameE` parameter of stop name etc. '**Po Toi Island**', the script will retrieve information that is matches the selected stop name.
* **download Parameter:**
  * If you want to download the JSON output of these parameters, define the download parameter with empty or any input will enable you to auto download it. See the download sample here.

## List of District

* KAITO
* INNER
* OUTLYING

## List of Route Name and Stop Name

can refer link below to get the detail of the route name and stop name.

{% embed url="<https://www.td.gov.hk/en/transport_in_hong_kong/public_transport/ferries/service_details/index.html>" %}
Inner Harbour and Outlying Island Ferry Services
{% endembed %}

{% embed url="<https://www.td.gov.hk/en/transport_in_hong_kong/public_transport/ferries/kaito_services_map/service_details/index.html>" %}
Kaito Ferry Services
{% endembed %}

## List of Service Mode

* A=whole
* N=night
* NT=night & specific time
* R=regular/day
* T=regular & specific time

## List of Special Type

* 0=Not applicable
* 1=Time or day specific services
* 2=Separate fare for weekend and Public Holidays
* 3=Time or day specific and separate fare for weekend and PHs

## List of Route Sequence

* 1 = outbound or circular route
* 2 = inbound

## Demo

{% embed url="<https://api.kosontechnology.com/hk-ferry.php?district=OUTLYING>" %}
All data about the outlying district
{% endembed %}

{% embed url="<https://api.kosontechnology.com/hk-ferry.php?routeNameE=Central%20-%20Discovery%20Bay>" %}
Data about Central - Discovery Bay route
{% endembed %}

{% embed url="<https://api.kosontechnology.com/hk-ferry.php?stopNameE=Po%20Toi%20Island>" %}
Data of Po Toi Island
{% endembed %}

{% embed url="<https://api.kosontechnology.com/hk-ferry.php?serviceMode=T>" %}
Ferry route information with regular & specific time
{% endembed %}

{% embed url="<https://api.kosontechnology.com/hk-ferry.php?routeSeq=1>" %}
Data for outbound or circular route
{% endembed %}

{% embed url="<https://api.kosontechnology.com/hk-ferry.php?specialType=3>" %}
Route data for Time or day specific and separate fare for weekend and PHs
{% endembed %}

## Download

Add download at the back of the link to download the database in json format.

{% embed url="<https://api.kosontechnology.com/hk-ferry.php?download>" %}
download whole json data
{% endembed %}

{% embed url="<https://api.kosontechnology.com/hk-ferry.php?district=OUTLYING&download>" %}
download all data for outlying district
{% endembed %}


# FLIGHT-TRACK

Get real-time flight data all around the world

## AirLabs documentation

{% embed url="<https://airlabs.co/docs/flights>" %}

## Usage

1\. Making an HTTP request via a web browser or API platform etc.[ ](https://www.postman.com/)[Postman](https://www.postman.com/).

2\. The following parameters are accepted:

<table data-header-hidden><thead><tr><th width="170.33333333333331">Name</th><th>Description</th><th>Format</th></tr></thead><tbody><tr><td>flag</td><td>ISO 2 country code</td><td>E.g. MY</td></tr><tr><td>airline_iata</td><td>Airline IATA code</td><td>E.g. MH</td></tr><tr><td>flight_iata</td><td>Flight IATA code-number</td><td>E.g. MH102</td></tr><tr><td>dep_iata</td><td>Departure Airport IATA code</td><td>E.g. KUL</td></tr><tr><td>arr_iata</td><td>Arrival Airport IATA code</td><td>E.g. DAC</td></tr><tr><td>status</td><td>Current flight status</td><td>E.g. scheduled/en-route/landed</td></tr><tr><td>download</td><td>To download the JSON output</td><td>Empty or any value is fine</td></tr></tbody></table>

3. Depending on the parameters, the script will construct a URL to fetch information from the AirLabs API accordingly.

## **Parameter Guidelines**

* `flag` **parameter:**
  * The script will retrieve all flight data that belongs to the selected country.
* `airline_iata` **parameter:**
  * The script will retrieve all flight data that are relating to the airline code (IATA).
* `flight_iata` **parameter:**
  * The script will retrieve all flight data that are relating to the flight code-number (IATA).
* `dep_iata` **parameter:**
  * The script will retrieve all flight data where the flights depart from the airport which is specified using its airport code (IATA).
* `arr_iata` **parameter**
  * The script will retrieve all flight data where the flights arrive at the airport which is specified using its airport code (IATA).
* `status` **parameter**
  * The script will retrieve all flight data according to the status that is specified.
* `download` **parameter**
  * The JSON output will be automatically downloaded from the web browser. See the download sample at [here](#download).

## References

### List of country codes (IATA)

{% embed url="<https://www.iban.com/country-codes>" %}

### List of airline codes (IATA)

{% embed url="<https://azcargo.cz/en/services/support/iata-airline-codes/>" %}

### List of airport codes (IATA)

{% embed url="<https://en.wikipedia.org/wiki/List_of_airports_by_IATA_airport_code:_A>" %}

## Demo

{% embed url="<https://api.kosontechnology.com/flight-track.php?flag=MY&status=landed>" %}
Retrieves all flight data in Malaysia where the flights has landed.
{% endembed %}

{% embed url="<https://api.kosontechnology.com/flight-track.php?dep_iata=HKG&flag=HK&status=en-route>" %}
Retrieves all flight data in Hong Kong where the flights departed from Hong Kong and are currently flying
{% endembed %}

## Download

{% embed url="<https://api.kosontechnology.com/flight-track.php?download=&flag=MY&status=landed>" %}


# MALAYSIA-STATES

Get general information of all the states in Malaysia

## GitHub documentation

{% embed url="<https://github.com/JianLoong/malaysia-api>" %}

## Usage

1\. Making an HTTP request via a web browser or API platform etc.[ ](https://www.postman.com/)[Postman](https://www.postman.com/).

2\. The following parameters are accepted:

<table data-header-hidden><thead><tr><th width="170.33333333333331">Name</th><th>Description</th><th>Format</th></tr></thead><tbody><tr><td>code</td><td>State or federal territory code</td><td>E.g. 08 (Perak)</td></tr><tr><td>download</td><td>To download the JSON output</td><td>Empty or any value is fine</td></tr></tbody></table>

3. Depending on the parameters, the script will construct a URL to fetch information from the GitHub owner's API accordingly.

## **Parameter Guidelines**

* `code` **parameter:**
  * The script will retrieve information of a state according to its code.
* `download` **parameter**
  * The JSON output will be automatically downloaded from the web browser. See the download sample at [here](#download).

## References

### List of state codes in Malaysia

{% embed url="<https://en.wikipedia.org/wiki/ISO_3166-2:MY>" %}

## Demo

{% embed url="<https://api.kosontechnology.com/malaysia-states.php?code=08>" %}
Retrieves information of Perak state
{% endembed %}

{% embed url="<https://api.kosontechnology.com/malaysia-states.php?code=07>" %}
Retrieves information of Pulau Pinang state
{% endembed %}

## Download

{% embed url="<https://api.kosontechnology.com/malaysia-states.php?code=08&download=>" %}


# SINGAPORE-BUS

Get information of all the bus-stops in Singapore

## GitHub documentation

{% embed url="<https://github.com/cheeaun/arrivelah>" %}

## Usage

1\. Making an HTTP request via a web browser or API platform etc.[ ](https://www.postman.com/)[Postman](https://www.postman.com/).

2\. The following parameters are accepted:

<table data-header-hidden><thead><tr><th width="170.33333333333331">Name</th><th>Description</th><th>Format</th></tr></thead><tbody><tr><td>id</td><td>Bus stop code</td><td>E.g. 01119 (Bugis Junction)</td></tr><tr><td>download</td><td>To download the JSON output</td><td>Empty or any value is fine</td></tr></tbody></table>

3. Depending on the parameters, the script will construct a URL to fetch information from the GitHub owner's API accordingly.

## **Parameter Guidelines**

* `id` **parameter:**
  * The script will retrieve information of a bus-stop according to its ID.
* `download` **parameter**
  * The JSON output will be automatically downloaded from the web browser. See the download sample at [here](#download).

## References

### Browse all bus-stops' ID in Singapore

{% embed url="<https://www.transitlink.com.sg/eservice/eguide/bscode_idx.php>" %}

## Demo

{% embed url="<https://api.kosontechnology.com/singapore-bus.php?id=01119>" %}
Retrieves information of Bugis Junction bus-stop
{% endembed %}

{% embed url="<https://api.kosontechnology.com/singapore-bus.php?id=04111>" %}
Retrieves information of Capitol Building bus-stop
{% endembed %}

## Download

{% embed url="<https://api.kosontechnology.com/singapore-bus.php?download=&id=01119>" %}


