Screenshot API

Capture any webpage as an image or PDF. Extract Open Graph metadata. Fast, reliable, and easy to use.

v3.0 Powered by Playwright +PDF +OG Extract

Live Demo

Features

Full page or viewport capture
Element selector targeting
PNG, JPEG, WebP formats
Custom viewport sizes
Dark mode support
Ad/tracker blocking
Async queue processing
Wait for selector/delay
PDF export (A4/Letter/Legal)
Open Graph metadata extraction

Endpoints

POST/screenshotSync — returns image directly
POST/screenshot/asyncAsync — returns job ID
POST/screenshot/pdfCapture as PDFNEW
POST/screenshot/ogExtract OG metadataNEW
GET/screenshot/job/:idGet async result
GET/usageCheck API usage
GET/healthHealth check

Request Parameters

POST /screenshot

ParameterTypeDefaultDescription
urlstringURL to capture (required)
widthnumber1280Viewport width (100-3840)
heightnumber720Viewport height (100-2160)
fullPagebooleanfalseCapture full scrollable page
selectorstringCSS selector to capture
formatstringpngpng, jpeg, or webp
qualitynumberJPEG/WebP quality (1-100)
delaynumber0Wait ms before capture (max 10000)
darkModebooleanfalseForce dark color scheme
blockAdsbooleanfalseBlock ads & trackers
waitForSelectorstringWait for element before capture
clipobject{x, y, width, height} crop area
timeoutnumber30000Page load timeout ms

POST /screenshot/pdf NEW

ParameterTypeDefaultDescription
urlstringURL to capture (required)
formatstringA4Page size: A4, Letter, Legal, Tabloid
landscapebooleanfalseLandscape orientation
printBackgroundbooleantrueInclude background graphics

POST /screenshot/og NEW

ParameterTypeDefaultDescription
urlstringURL to extract metadata from (required)
timeoutnumber15000Page load timeout ms

Quick Start

Screenshot (image)

curl -X POST https://hubaiasia.com/screenshot-api/screenshot \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: demo-key-screenshot-api" \
  -d '{"url": "https://example.com", "format": "jpeg", "quality": 85}' \
  -o screenshot.jpg

PDF capture

curl -X POST https://hubaiasia.com/screenshot-api/screenshot/pdf \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: demo-key-screenshot-api" \
  -d '{"url": "https://example.com"}' \
  -o page.pdf

Extract Open Graph metadata

curl -X POST https://hubaiasia.com/screenshot-api/screenshot/og \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: demo-key-screenshot-api" \
  -d '{"url": "https://github.com"}'

Pricing

Free

$0/mo
100 requests/day
5 req/min

Basic

$9.99/mo
1,000 requests/day
20 req/min

Pro

$24.99/mo
5,000 requests/day
60 req/min

Ultra

$49.99/mo
20,000 requests/day
120 req/min

Get Started for Free

100 free requests per day. No credit card required.

Try Live Demo

Authentication: Include X-Api-Key header with all requests.

© 2026 HubAI Asia — Screenshot API v3.0