---
title: "Screenshot Webpage"
method: POST
path: "/v1/tools/screenshot"
tags: ["Tools"]
---

# Screenshot Webpage

`POST /v1/tools/screenshot`

This endpoint captures a screenshot of the specified webpage using Chromium. Users can customize the viewport dimensions and capture options.

## Query parameters

- `sessionId` string

## Request body

- ScreenshotRequestSchema
  - `url` string — The URL of the webpage to capture.
  - `width` integer — The width of the browser viewport in pixels.
  - `height` integer — The height of the browser viewport in pixels.
  - `image_quality` integer — Quality of the output image, on the range 1-100. 100 will not perform any compression.
  - `wait` integer — Duration in milliseconds to wait after page has loaded, mainly used for sites with JS animations.
  - `scroll_all_content` boolean — If true, scrolls the page and captures all visible content.
  - `capture_full_height` boolean — If true, captures the entire height of the page, ignoring the viewport height.
  - `s3_target_address` string — Presigned S3 url target to upload the image to.

## Response `200`

Screenshot successfully captured.

## Other responses

- `400` — Invalid input parameters.
- `500` — Failed to take screenshot.

---

[API](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api.md) · [All operations](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anchorbrowser/anchorbrowser-api/revisions/d0f5aa64f9f4/schema)
