# JCJC 网页截图 API - LLMs 文档

> JCJC 在线网页截图工具提供了一个高效稳定的 API，将任何 HTTPS 网址渲染为高清截图。

## 相关链接
- [可视化网页截图工具主页](https://www.cuobiezi.net/tools/image/website/snapshot/index)
- [API 详细使用文档](https://www.cuobiezi.net/tools/image/website/snapshot/docs/api-doc)

## 鉴权 (Authentication)
所有 API 接口均需在 HTTP Header 中携带 Bearer Token:
- 格式: `Authorization: Bearer <your_api_key>`
- 获取 Token: https://www.cuobiezi.net/user/api_keys/list

## API 端点 (Endpoint)
**POST** `https://www.cuobiezi.net/api/v4/tools/image/website/snapshot`
返回格式：直接返回二进制图片流 (Content-Type: image/png)。支持 application/json 或 application/x-www-form-urlencoded 提交参数。

## 请求参数 (Parameters)
- `url` (String, Required): 目标网址，必须以 https:// 开头。
- `screenshot_mode` (String, Optional): 截图方式。
  - `viewport` (默认): 仅截取首屏可见区域
  - `fullpage`: 截取整个网页长图
- `device_type` (String, Optional): 模拟设备类型。
  - `desktop` (默认): 桌面端，1920x1080
  - `tablet`: 平板端，768x1024
  - `mobile`: 手机端，375x812
  - `custom`: 自定义尺寸
- `custom_x` (Integer, Optional): 自定义视口宽度（仅当 device_type=custom 时有效，最小 100）
- `custom_y` (Integer, Optional): 自定义视口高度（仅当 device_type=custom 时有效，最小 100）
