# Website Screenshot API

> Website Screenshot renders webpage screenshots from any URL as PNG, JPEG or WebP, with ads blocked and cookie notices dismissed. It returns a signed download link with an expiration timestamp, supporting custom viewport dimensions up to 3840 pixels wide, single-element capture by CSS selector, a capture delay, a page-load wait strategy and JPEG or WebP quality.

**Endpoint:** `POST https://api.apiverve.com/v1/webscreenshots`  
**Category:** Data Scraping  
**Cost:** 40 credits per call  
**Canonical page:** https://apiverve.com/marketplace/webscreenshots

## Overview

A website screenshot and screen capture API, also searched as a site screenshot API or webpage screenshot API. Web Screenshots works by using a headless browser to load the web page and capture the viewport at the size you set, or the entire page on paid plans. Paid plans can also capture one element by CSS selector, wait up to five seconds or until the network is idle before capturing, and set JPEG or WebP quality. Ads are blocked and cookie notices dismissed on every capture. It returns a download link to the image. This runs entirely in the cloud, so you don't need to worry about setting up a browser or infrastructure.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/webscreenshots" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://ebay.com/","type":"png","width":1024,"height":600,"fullpage":false,"selector":"value","delay":1,"waituntil":"value","quality":1}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | Yes | The URL of the web page to capture the screenshot (a full URL or a bare domain such as example.com; https:// is assumed when no scheme is given) |
| `type` | string | No | The image format for the screenshot. default png. One of: png, jpeg, webp |
| `width` | number | No | The width of the screenshot in pixels (e.g., 1920). Must be between 100 and 3840. default 1920. range 100-3840 |
| `height` | number | No | The height of the screenshot in pixels (e.g., 1080). Must be between 100 and 3840. default 1080. range 100-3840 |
| `fullpage` | boolean | No | Whether to capture the full page screenshot (true or false). default false. Premium field |
| `selector` | string | No | CSS selector of a single element to capture instead of the viewport (e.g., #pricing). The first match is captured; a selector that matches nothing returns 400. length 0-200. Premium field |
| `delay` | number | No | Milliseconds to wait after the page loads before capturing, for animations or late content. Between 0 and 5000. range 0-5000. Premium field |
| `waituntil` | string | No | When navigation counts as finished before capture: domcontentloaded (default, fastest), load (all resources), or networkidle (network quiet). A page that never settles is captured as parsed. default domcontentloaded. One of: domcontentloaded, load, networkidle. Premium field |
| `quality` | number | No | Compression quality from 1 to 100. Applies only when type is jpeg or webp. range 1-100. Premium field |

## Response fields

- `width` — number · Actual width of captured screenshot in pixels · (premium)
- `height` — number · Actual height of captured screenshot in pixels · (premium)
- `scaleFactor` — number · Device pixel ratio used for screenshot capture · (premium)
- `imageName` — string · Unique identifier for the generated screenshot image file
- `expires` — number · Unix timestamp when the screenshot will expire
- `url` — string · Original URL that was screenshotted
- `downloadURL` — string · Temporary signed URL to download the screenshot image

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "width": 1024,
    "height": 600,
    "scaleFactor": 1,
    "imageName": "77072426-6af8-45c2-93dd-d7013d2c765e.png",
    "expires": 1766097105719,
    "url": "https://ebay.com/",
    "downloadURL": "https://storage.googleapis.com/apiverve-helpers.appspot.com/webscreenshots/77072426-6af8-45c2-93dd-d7013d2c765e.png?GoogleAccessId=1089020767582-compute%40developer.gserviceaccount.com&Expires=1766097105&Signature=uZKa777XpeVnlwOZG7Uhjs%2BNkPzkEuiV4Wug2%2B%2BAHcPovRZ3iVjZEX%2FZhp7gnADXI6au5q0ggPwweoOFJeMCdk9zod6aZo4hlUDe1DsJf0oao4rh3tGUl5wPeudXLp7Y%2F3zVflup9Mp255LY6%2B2JdU0auOHdPnEYLDCvf705X9C%2BflmWQZKh7QKi74gvU8pqsP6Zc7SfJJsv5kmhP8SkO7TBZKBU6pAr2mNHKpKgB5mtfCRLbyPYcxawSGlTuyIyRXffWbkfHdDl6pquPX9J%2Fp5uGYM4jTrqrrrR1MPAOfkD7d9V5juqe5A7VvWmhiAyCMGDO%2BeqUO%2BSe6t9php0vA%3D%3D"
  }
}
```

## Use cases

- **Visual Link Previews** — Bookmarking tools generate visual card thumbnails by passing target URLs and saving the returned image download link.
- **Compliance Web Archiving** — To preserve legal records, compliance teams request timestamped JPEG captures of corporate policy pages before contract renewals.
- **Competitor Landing Tracking** — Track layout changes across competitor websites by periodically storing rendered page images and comparing viewport snapshots.
- **Bug Report Attachments** — When testers submit issue tickets, QA dashboards fetch snapshot images of reported URLs to document live rendering bugs.

## SDKs

- **npm** — `npm install @apiverve/webscreenshots` (https://www.npmjs.com/package/@apiverve/webscreenshots)
- **NuGet** — `dotnet add package APIVerve.API.WebsiteScreenshot` (https://www.nuget.org/packages/APIVerve.API.WebsiteScreenshot)
- **Source** — https://github.com/apiverve/webscreenshots-api

## More

- Full reference: https://docs.apiverve.com/ref/webscreenshots
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
