> For the complete documentation index, see [llms.txt](https://bothelp.hktrpg.com/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bothelp.hktrpg.com/guide/kai-shi-shi-yong/yao-qing-hktrpg/api.md).

# API

回覆格式為JSON，請求方式為GET\
請求的位置: <https://api.hktrpg.com/>

示範: <https://api.hktrpg.com/?msg=1d100>

![實際使用例子](https://github.com/hktrpg/TG.line.Discord.Roll.Bot/blob/master/views/image/api.png?raw=true)

{% hint style="info" %}
和網頁版一樣，這種方式不能輸入ID，所以不能使用個人的資料庫功能，如.ra .db 個人角色卡
{% endhint %}
