> 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/singapore-bus.md).

# SINGAPORE-BUS

## 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>" %}
