🔄 CORSAPI

API 中转代理服务正在运行

基于 Cloudflare Workers 的通用 API 中转代理服务,用于加速和转发 API 请求。

📖 基本用法

在 API 请求前添加代理地址和 ?url= 参数:

https://xxapi.pages.dev/?url=https://api.example.com/endpoint
示例:代理一个 API 请求

原始请求:https://api.example.com/data?id=123
通过代理:https://xxapi.pages.dev/?url=https://api.example.com/data&id=123

🚀 高级用法

使用专属路径避免缓存冲突(推荐):

https://xxapi.pages.dev/p/source1?url=https://api1.example.com/endpoint

为不同 API 源使用不同路径标识符(如 /p/source1/p/source2),可以:

🔧 参数转发

所有额外的 query 参数都会自动转发到目标 API:

参数自动转发示例

请求:https://xxapi.pages.dev/?url=https://api.example.com/list&page=1&limit=10
转发:https://api.example.com/list?page=1&limit=10

✨ 功能特性

🏥 健康检查

访问 /health 端点检查服务状态:

https://xxapi.pages.dev/health