API 文档

用于网页和 favicon 提取的服务端接口。

所有 API 端点限制为每个 IP 每分钟 60 次请求。

POST /api/extract-url

从网页中提取图片 URL。

POST /api/extract-url
Content-Type: application/json

{
  "url": "https://example.com",
  "options": {
    "cssBackgrounds": true,
    "svgs": true
  }
}

POST /api/extract-favicon

发现域名的 favicon URL。

POST /api/extract-favicon
Content-Type: application/json

{ "url": "https://example.com" }

GET /api/proxy-image

通过服务器代理下载图片(需要同源 referer)。

GET /api/proxy-image?url=https%3A%2F%2Fexample.com%2Fimage.png