小小API是一个稳定 快速 的 API 接口服务   点击加入QQ群

获取网页快照

GEThttps://v2.xxapi.cn/api/screenshot

接口描述

免费API提供网页截图功能,用户只需传入网页URL,系统将自动获取该页面在浏览器中的截图,适用于网站监控、网页内容分析和视觉化展示。

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://v2.xxapi.cn/api/screenshot?url=https://www.xxhzm.cn'
}

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })

返回示例

{
    "code": 200,
    "msg": "数据请求成功",
    "data": "https://cdn.xxhzm.cn/v2api/cache/tmp/9eb4782d345de37c895306e32177604f52a777c0.png"
}