返回 | 接口 / 图片壁纸 / 网页快照
GET 图片壁纸

网页快照

对网页实施截图,图片分辨率为2560*1440。尽量携带http://或https://。本接口缓存时间为12小时

累计调用 17 今日调用 0

更新于 2026-10-16

调用地址

GET
https://itapi.top/api/ScreenShot

请求参数

参数名类型必填说明示例
url string 可选 网站链接 oiapi.net
markdown string 可选 markdown截图时参数必须填写 # 你好\n哈哈哈哈
html string 可选 html截图时参数必须填写 <h1>你好</h1>
full string 可选 是否全屏,基本上没啥用 1
bottom string 可选 是否滚动到底部 1
clip string 可选 筛选器,#app .aaa或者#app > .aaa,不懂得问ai不多解释,只有url截图与html转图可用 #app
device string 可选 设备窗口,可选pc,mobile,tablet,默认pc pc
cache string 可选 是否开启缓存命中,开启会大幅度提升响应速度 1
selector string 可选 等待元素出现,默认等待所有元素 无
wait number 可选 等待超时时间,默认无限制 暂无
method string 可选 可选,html/markdown/其他,html时是html截图,以此类推,默认是url截图 url
0 string 可选 路由参数,非请求参数,参考method /

响应示例

200 OK
/?url=oiapi
/markdown?markdown=哈哈哈
/html?html=<h1>你好</h1>

在线测试

代码示例

cURL · GET
curl "https://itapi.top/api/ScreenShot?url=oiapi.net&markdown=%23%20%E4%BD%A0%E5%A5%BD%5Cn%E5%93%88%E5%93%88%E5%93%88%E5%93%88&html=%3Ch1%3E%E4%BD%A0%E5%A5%BD%3C%2Fh1%3E&full=1&bottom=1&clip=%23app&device=pc&cache=1&selector=%E6%97%A0&wait=%E6%9A%82%E6%97%A0&method=url&0=%2F"
PHP
<?php
$res  = file_get_contents("https://itapi.top/api/ScreenShot?url=oiapi.net&markdown=%23%20%E4%BD%A0%E5%A5%BD%5Cn%E5%93%88%E5%93%88%E5%93%88%E5%93%88&html=%3Ch1%3E%E4%BD%A0%E5%A5%BD%3C%2Fh1%3E&full=1&bottom=1&clip=%23app&device=pc&cache=1&selector=%E6%97%A0&wait=%E6%9A%82%E6%97%A0&method=url&0=%2F");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res  = await fetch("https://itapi.top/api/ScreenShot?url=oiapi.net&markdown=%23%20%E4%BD%A0%E5%A5%BD%5Cn%E5%93%88%E5%93%88%E5%93%88%E5%93%88&html=%3Ch1%3E%E4%BD%A0%E5%A5%BD%3C%2Fh1%3E&full=1&bottom=1&clip=%23app&device=pc&cache=1&selector=%E6%97%A0&wait=%E6%9A%82%E6%97%A0&method=url&0=%2F");
const json = await res.json();
console.log(json);
Python
import requests

r = requests.get("https://itapi.top/api/ScreenShot?url=oiapi.net&markdown=%23%20%E4%BD%A0%E5%A5%BD%5Cn%E5%93%88%E5%93%88%E5%93%88%E5%93%88&html=%3Ch1%3E%E4%BD%A0%E5%A5%BD%3C%2Fh1%3E&full=1&bottom=1&clip=%23app&device=pc&cache=1&selector=%E6%97%A0&wait=%E6%9A%82%E6%97%A0&method=url&0=%2F", timeout=10)
print(r.json())
返回接口列表