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| Parameter | Type | Default | Description |
|---|---|---|---|
url | string | — | URL to capture (required) |
width | number | 1280 | Viewport width (100-3840) |
height | number | 720 | Viewport height (100-2160) |
fullPage | boolean | false | Capture full scrollable page |
selector | string | — | CSS selector to capture |
format | string | png | png, jpeg, or webp |
quality | number | — | JPEG/WebP quality (1-100) |
delay | number | 0 | Wait ms before capture (max 10000) |
darkMode | boolean | false | Force dark color scheme |
blockAds | boolean | false | Block ads & trackers |
waitForSelector | string | — | Wait for element before capture |
clip | object | — | {x, y, width, height} crop area |
timeout | number | 30000 | Page load timeout ms |
| Parameter | Type | Default | Description |
|---|---|---|---|
url | string | — | URL to capture (required) |
format | string | A4 | Page size: A4, Letter, Legal, Tabloid |
landscape | boolean | false | Landscape orientation |
printBackground | boolean | true | Include background graphics |
| Parameter | Type | Default | Description |
|---|---|---|---|
url | string | — | URL to extract metadata from (required) |
timeout | number | 15000 | Page load timeout ms |
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"}'
Authentication: Include X-Api-Key header with all requests.
© 2026 HubAI Asia — Screenshot API v3.0