# 网页快照

**请求方式:** GET

**接口地址:** https://api.hk0.cc/api/screenshot

**接口描述:** 网页快照截图高性能

## 请求参数

| 参数名 | 可传值说明 | 传入位置 | 是否必填 | 示例值 | 默认值 | 参数说明 |
|--------|----------|----------|----------|--------|--------|----------|
| url | string | query | 必传 | — | — | 网址(需带 http:// 或 https://) |
| width | int | query | 可选 | — | — | 宽度,默认1920 |
| height | int | query | 可选 | — | — | 高度 |
| full | bool | query | 可选 | — | — | 是否整页截图(true=滚动截取全页) |
| output | string | query | 可选 | — | — | 默认image,输出格式:image / url / json |
| cache | bool | query | 可选 | — | — | 默认true,是否使用缓存(相同URL+尺寸命中缓存) |

## 返回示例

```json
{
  "code": 200,
  "url": "图片链接",
  "expires": "22.5h",
  "time": "1.23s",
  "cache": "hit"
}
```