使用下方地址发起请求,支持一键复制。
根据传入位置,将参数放入 Query、Body 或 Header。
| 参数名 | 可传值说明 | 传入位置 | 是否必填 | 示例值 | 默认值 | 参数说明 |
|---|---|---|---|---|---|---|
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+尺寸命中缓存) |
选择开发语言,复制示例并替换为实际参数。
curl --request GET 'https://api.hk0.cc/api/screenshot?url=&width=&height=&full=&output=&cache='以下为接口配置的示例,实际内容以调用结果为准。
{
"code": 200,
"url": "图片链接",
"expires": "22.5h",
"time": "1.23s",
"cache": "hit"
}