Docs
WebShot

WebShot

Web page screenshot and PDF generation API. Capture full-page screenshots, generate PDFs from URLs, and process multiple pages in batch.

Overview

WebShot renders web pages in a headless browser and returns screenshots or PDFs. Supports custom viewports, full-page capture, and batch processing.

Base URL: https://api.apivult.com/v1/dev/screenshot

Authentication

Include your API key in every request header: X-API-Key: YOUR_API_KEY

Endpoints

MethodEndpointDescription
POST/v1/dev/screenshot/screenshotCapture a screenshot of a URL
POST/v1/dev/screenshot/pdfGenerate a PDF from a URL
POST/v1/dev/screenshot/batchProcess multiple URLs in one request (up to 10)

Screenshot Options

ParameterTypeDefaultDescription
urlstringrequiredTarget URL
widthinteger1280Viewport width in pixels
heightinteger800Viewport height in pixels
full_pagebooleanfalseCapture full scrollable page
formatstringpngOutput format: png or jpeg
delayinteger0Wait time in ms before capture

Quick Start

curl -X POST "https://api.apivult.com/v1/dev/screenshot/screenshot" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "width": 1280,
    "height": 800,
    "full_page": true,
    "format": "png"
  }'

Response:

{
  "screenshot_id": "shot_xyz789",
  "format": "png",
  "width": 1280,
  "height": 3200,
  "download_url": "https://api.apivult.com/v1/dev/screenshot/download/shot_xyz789",
  "expires_at": "2024-03-16T10:30:00Z",
  "size_bytes": 182400
}

Rate Limits

PlanRequests/Month
Free500
Basic1,000
Pro10,000