← 返回
开发者工具 Key 中文

Website Capture - AllScreenshots

Take website screenshots, capture full pages, generate PDFs. Handles desktop, mobile, dark mode, stealth mode, cookie banner blocking, and batch URLs via the...
截取网站屏幕截图、捕获整页并生成PDF。支持桌面端、移动端、深色模式、隐身模式、Cookie横幅拦截及批量URL处理。
panilya
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 1
Stars
📥 513
下载
💾 7
安装
1
版本
#latest

概述

Allscreenshots – Website Screenshot Capture

Capture pixel-perfect website screenshots via the Allscreenshots cloud API. No local browser needed.

Setup

  1. Get an API key at https://dashboard.allscreenshots.com
  2. Add to ~/.openclaw/workspace/.env:

```

ALLSCREENSHOTS_API_KEY=your_api_key_here

```

API Base

Endpoint: https://api.allscreenshots.com/v1/screenshots

Auth header: Bearer $ALLSCREENSHOTS_API_KEY

Operations

Desktop screenshot (default)

curl -s -X POST \
  -H "Authorization: Bearer $ALLSCREENSHOTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"TARGET_URL","fullPage":true,"viewport":{"width":1280,"height":800},"blockAds":true,"blockCookieBanners":true,"stealth":true,"responseType":"url"}' \
  "https://api.allscreenshots.com/v1/screenshots" | jq

Mobile screenshot

curl -s -X POST \
  -H "Authorization: Bearer $ALLSCREENSHOTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"TARGET_URL","fullPage":true,"viewport":{"width":375,"height":812},"deviceScaleFactor":3,"blockAds":true,"blockCookieBanners":true,"stealth":true,"responseType":"url"}' \
  "https://api.allscreenshots.com/v1/screenshots" | jq

Dark mode

Add "darkMode": true to any request body above.

PDF export

Add "format": "pdf" to any request body above.

Viewport-only screenshot

Set "fullPage": false to capture only the visible viewport.

Parameter Reference

  • fullPage: true captures the entire scrollable page
  • blockAds: true removes ads and trackers
  • blockCookieBanners: true hides cookie consent popups
  • stealth: true uses anti-detection mode for bot-protected sites
  • darkMode: true injects prefers-color-scheme: dark
  • format: "pdf" returns a PDF instead of PNG
  • responseType: controls what the API returns
  • "binary" (default) – raw image bytes
  • "base64" – JSON with base64-encoded image data
  • "url" – JSON with a CDN link to the stored image

Response

When responseType is "url" (recommended for OpenClaw):

{ "storageUrl": "https://storage.allscreenshots.com/abc.png" }

Send the storageUrl back to the user as an image.

When responseType is "binary" (default):

Raw image bytes. Pipe to a file with curl -o output.png.

When responseType is "base64":

{ "data": "iVBORw0KGgo..." }

Base64 payload, useful for embedding in HTML or emails.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 02:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,807
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,210
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,217