分享我写的一些自用 Api
本文最后更新于:2022年2月1日 下午
获取 IP 信息
请求 URL:
https://api.dov.moe/ip/<ip_or_domain>
说明:获取 IP 信息,如果是域名,则解析成 IP 并获取其信息。
生成虚假个人资料
请求 URL:
https://api.dov.moe/faker/<country>
说明 :生成指定国家的虚假个人资料,包括姓名、性别、生日、地址、公司名。<country>
为国家缩写,例如 US、GB。
货币汇率计算
请求 URL:
https://api.dov.moe/exchange?src=<SOURCE_CURRENCY>&dst=<DESTINAION_CURRENCY>
说明:计算实时汇率。
<SOURCE_CURRENCY>
和<DESTINAION_CURRENCY>
为货币名称,例如 USD、GBP。计算
<SOURCE_CURRENCY>
/<DESTINAION_CURRENCY>
获取 Github 项目 release
请求 URL:
https://api.dov.moe/github/<user>/<repo>/<name_re>
说明:跳转到 Github 项目最新 release 中的指定链接。
<user>
和<repo>
分别为用户名和仓库名。<name_re>
可选参数有如下三种:tar
:跳转到tarball url
。zip
:跳转到zipball url
。- 正则表达式:跳转到 release 中下载项名称匹配的链接。
此外你也可以这样使用来指定tag
:
https://api.dov.moe/<user>/<repo>@<tag|semver>/<file_name_regex>
获取 Github Action 最新 Artifact
请求 URL:
https://api.dov.moe/action/<user>/<repo>/<workflow_re>/<name_re>
说明:跳转到 Github 项目的 Action 中的指定 Artifact 链接。
<user>
和<repo>
分别为用户名和仓库名。<workflow_re>
为匹配 Workflow 名的正则表达式。<name_re>
为匹配 Artifact 名的正则表达式。
❗注意:请求需要带Cookie!!
Surge 规则集转 Clash Rule Provider
请求 URL:
https://api.dov.moe/rule/toclash/<url>
说明 :<url>
为base64
编码后的 Surge 规则集链接。
❗注意 :由于Clash Rule Provider
的特性,本 Api 会自动在 IP-CIDR
规则后面加no-resolve
,减少 DNS 解析。
分享我写的一些自用 Api
https://blog.dov.moe/posts/59334/