🖼️ 网页截图服务

📖 API 使用说明

这个服务提供了 RESTful API 接口,你可以通过 HTTP 请求来获取网页截图:

单个截图接口:

POST /api/screenshot
Content-Type: application/json

{
  "url": "https://www.example.com",
  "viewport": {"width": 1920, "height": 1080},
  "fullPage": true,
  "format": "png"
}

批量截图接口:

POST /api/screenshots/batch
Content-Type: application/json

{
  "urls": [
    {"url": "https://www.example1.com", "name": "example1.png"},
    {"url": "https://www.example2.com", "name": "example2.png"}
  ],
  "globalOptions": {
    "viewport": {"width": 1366, "height": 768},
    "format": "png"
  }
}

其他接口:
GET /api/screenshots - 获取所有截图列表
GET /api/docs - 查看完整 API 文档
GET /health - 服务健康检查