Random-Api/index.md
wood chen 782adaf8eb # Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch main
#
# Initial commit
#
# Changes to be committed:
#	new file:   README.md
#	new file:   index.html
#	new file:   index.md
#	new file:   url.json
#	new file:   url/pic/all.csv
#	new file:   url/pic/fjht.csv
#	new file:   url/pic/whitebackground.csv
#	new file:   url/video/all.csv
#	new file:   "worker 302\350\267\263\350\275\254.js"
#	new file:   "worker \344\270\215\350\267\263\350\275\254.js"
#
2024-01-16 21:49:13 +08:00

1.7 KiB
Raw Blame History

Random-Api 随机文件API

github地址 https://github.com/woodchen-ink/Random-Api

我的博客说明:https://woodchen.ink/archives/1705367469203

使用cloudflare worker配合github网页发布功能实现获取path与csv_path关系url.csv 文件中给出的链接来实现一个随机文件

不仅可以放图片,还能放文本文件,视频,等等

接口

类型 种类 请求地址
图片 所有 https://random-api.woodchen.ink/pic/all
图片 白底 https://random-api.woodchen.ink/pic/whitebackground
图片 风景横图 https://random-api.woodchen.ink/pic/fjht
视频 所有 https://random-api.woodchen.ink/video/all

感谢

大部分图片来自网络分享的API

以下不分先后:

自行部署

  1. cloudflare 新建一个worker把 worker.js文件的代码粘贴进去保存可以修改为自己的链接
  2. 访问即可

赞赏

如果对这个项目对你有帮助,欢迎打赏,支持微信和支付宝,请留言和备注项目,我会在我的博客上写出,感谢。

微信

1705312445316.png

支付宝

1705312348956.png