> 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/zh-hans/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 %}
