抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

假定您的 Worker 路由是 https://example.workers.dev/

浏览器访问 https://example.workers.dev/
API

这里列举了几个 开放 API 接口,实际上不止这几个,详见源码

笔者在这里简单列举一下。

必应图片

API 路径: https://example.workers.dev/bing

参数:?day=<Number>
0-6,0 表示今天,1 表示明天,依次类推。

https://example.workers.dev/bing?day=3 获取图片
https://example.workers.dev/bing/info?day=3 获取图片详细信息
https://example.workers.dev/bing/copyright?day=3 获取图片版权信息

Sitich

API 路径: https://example.workers.dev/sitich

毒鸡汤

API 路径: https://example.workers.dev/soul

一言

API 路径: https://example.workers.dev/hitokoto

Unsplash 图片

API 路径: https://example.workers.dev/unsplash

参数:?keywords=<S>,<S>,<S>

https://example.workers.dev/unsplash?keywords=cat,dog,bird

ACG 图片

API 路径: https://example.workers.dev/acg

访问 IP 信息

API 路径: https://example.workers.dev/ipinfo

IPFS

API 路径: https://example.workers.dev/ipfs

OPEN CDN

API 路径:

https://example.workers.dev/npm/ :unpkg.com
https://example.workers.dev/gh/ :fastly.jsdelivr.net
https://example.workers.dev/wp/ :fastly.jsdelivr.net
https://example.workers.dev/twemoji/ :twemoji.maxcdn.com
https://example.workers.dev/gitraw/ :raw.githubusercontent.com
https://example.workers.dev/gist/ :gist.github.com
https://example.workers.dev/ajax/libs/ :cdnjs.cloudflare.com

Github Event

API 路径: https://example.workers.dev/github-event

调色板

API 路径: https://example.workers.dev/color

DNS 查询

API 路径: https://example.workers.dev/dns/ali/get/host?name=github.com

/dns/:upstream:/:way:/:host:?name=xxx&type=xxx&edns_client_subnet=x.x.x.x
/dns
/dns/get
/dns/ali/get/host

参数参数用途
name 需要解析的域名
type 解析形式,A or AAAA or CNAME 等等
edns_client_subnetEDNS 的 ip, 默认开启为本机 ip, 开启此项功能可提高解析精准度.
way 获取方式,默认 doh 方式,可使用以下参数: doh get
host 是否转化为 host 格式 [仅在 type 为 A 或 AAAA 格式下生效]
upstream 上游 DNS 解析,默认为 CloudFlare 回源 < 1ms 可使用以下参数: google ali dnspod

注:DoH 推荐直接选用 https://dns.alidns.com/dns-query ,而不是用本 API 的反代接口

留言区

Are You A Robot?