---
title: Generate Webpage Screenshot API
slug: capture-webpage-screenshot
url: https://apyhub.com/apyhub/service/capture-webpage-screenshot
provider: ApyHub
categories: [Ingestion Kit, Output Kit, Media Kit]
tags: [website-screenshot, url-to-image, screenshot, webpage-capture]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 2
atoms: 75
mcp: true
alias: generate-webpage-screenshot
---

# Generate Webpage Screenshot API

Capture any webpage from its URL and get a PNG download or signed link back. Useful for QA, visual regression testing, and archiving page states.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| GET | `https://api.eu.apyhub.com/apyhub/capture-webpage-screenshot/download` | What it does Captures a screenshot of the webpage at the provided URL and returns it as a streamed… | 75 |
| GET | `https://api.eu.apyhub.com/apyhub/capture-webpage-screenshot/link` | What it does Generates a screenshot of the webpage at the given URL and returns a signed upload lin… | 75 |

## Endpoint reference

### Capture webpage screenshot and stream PNG download

`GET https://api.eu.apyhub.com/apyhub/capture-webpage-screenshot/download` · 75 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | query | string (uri) | yes |  |
| `delay` | query | integer | no | Default: `3`. |
| `output` | query | string | no | Default: `output.png`. |
| `quality` | query | integer | no | Default: `5`. |

#### Quickstart

Download a screenshot of a webpage by passing the page URL as a query parameter.

```bash
curl -X GET "https://api.eu.apyhub.com/apyhub/capture-webpage-screenshot/download?url=https://apyhub.com" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a binary file containing the screenshot image.

### Capture webpage screenshot and return signed upload link

`GET https://api.eu.apyhub.com/apyhub/capture-webpage-screenshot/link` · 75 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | query | string (uri) | yes |  |
| `delay` | query | integer | no | Default: `3`. |
| `quality` | query | integer | no | Default: `5`. |

#### Quickstart

Capture a screenshot of a webpage by passing its URL as a query parameter.

```bash
curl -X GET "https://api.eu.apyhub.com/apyhub/capture-webpage-screenshot/link?url=https://apyhub.com" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with a `data` string field containing a signed cloud storage URL for the PNG screenshot.

```json
{
  "data": "https://storage.example.com/web-screenshot/output.png?sig=abc"
}
```

## About

## What it does
Capture Webpage Screenshot turns a URL into a PNG screenshot. Send a page URL, optionally add a delay, and get back either a binary PNG download or a signed storage link for the captured image.

Use the `/download` endpoint when you want the screenshot streamed directly as a file. It accepts `url`, `delay`, `output`, and `quality`, with `delay` capped at 10 and `quality` ranging from 1 to 5. Use `/link` when your workflow prefers a shareable upload URL; it accepts `url`, `delay`, and `quality`, and returns a `data` field containing the signed PNG URL.

Capture Webpage Screenshot is a fit for QA checks, visual regression pipelines, archiving page states, or grabbing screenshots for reports and support tickets. It works from a single page URL, so you can automate browser captures without building your own screenshot service.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/capture-webpage-screenshot
