# 未來板天文台API KittenBlock編程教學

在Kittenblock上，未來板已經有積木讓大家能夠輕易取得香港天文台API的開放數據。(需要網絡連線)

![](https://kittenbothk.readthedocs.io/en/latest/_images/kbbanner10.png)

### 天文台API積木塊：

![](https://kittenbothk.readthedocs.io/en/latest/_images/hko.png)

#### 範例程式：顯示當前天氣

![](https://kittenbothk.readthedocs.io/en/latest/_images/hko_code1.png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub.kittenbot.hk/mcu/futureboard/kittenblock/hko.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
