Capture (Screenshot)
captureTake webpage screenshots or PDFs in PNG, JPEG, or WebP with full-page, viewport, delay, and element options for previews, QA, reporting, monitoring, and archiving.
Instructions
Capture (Screenshot). Browser-like Screenshot API that captures webpages as PNG/JPEG/WebP or PDF for previews, QA, reporting, monitoring, and archiving no headless setup. Credit cost: 1 credit per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the webpage to capture. Examples: https://www.amazon.com/s?k=pokemon | |
| cache | No | Cache the response. Default: false. | |
| delay | No | Delay in seconds before capturing the screenshot. Default: 0. | |
| proxy | No | Specify a proxy server to route your request through. | |
| device | No | The device type to emulate for the screenshot. Allowed values: galaxy_fold4, galaxy_s23, galaxy_s23_ultra, galaxy_s8, huawei_mate_50_pro, huawei_p60_pro, ipad, iphone_12, iphone_13_mini, iphone_13_pro_max, iphone_14_pro, iphone_14_pro_max, iphone_x, pixel_5, pixel_6a, pixel_7_pro, redmi_note_11, redmi_note_12_pro. | |
| fields | No | Comma-separated list of fields to keep in the response, with dot notation for nested fields (e.g. name,location.city). Does not change the credit cost. | |
| format | No | The output format of the screenshot. Allowed values: jpeg, jpg, pdf, png, webp. Default: "png". | |
| s3_url | No | Use S3 storage for screenshots. The S3 URL will be returned in the response. Default: false. | |
| selector | No | Capture a specific element on the page instead of the full viewport. | |
| cache_ttl | No | Cache the response for a custom TTL (in seconds). Default: 2592000. | |
| full_page | No | Capture the entire page instead of just the visible viewport. Default: false. | |
| s3_bucket | No | The S3 bucket name where the screenshot will be uploaded. | |
| s3_region | No | AWS S3 region for storage. | |
| block_urls | No | Comma-separated list of URL patterns to block (e.g., “analytics,tracking,advertisement”). | |
| remove_ads | No | Automatically remove ads before capturing. Default: false. | |
| wait_until | No | Define when to capture. Allowed values: domcontentloaded, load, networkidle0, networkidle2. | |
| scale_factor | No | The scale factor for high-resolution screenshots. Default: 1. | |
| image_quality | No | Generate images with custom quality settings. Default: "80". | |
| s3_object_key | No | The filename for the S3 object (auto-generated if not provided). | |
| s3_secret_key | No | AWS S3 secret access key. | |
| viewport_width | No | The width of the browser viewport in pixels. Default: 1280. | |
| block_resources | No | Comma-separated list of resource types to block (e.g., “image,stylesheet,font”). Allowed values: document, eventsource, fetch, font, image, manifest, media, other, script, stylesheet, texttrack, websocket, xhr. | |
| viewport_height | No | The height of the browser viewport in pixels. Default: 1024. | |
| full_page_scroll | No | Scroll the page to fully load lazy-loaded elements before capturing a full-page screenshot. Default: false. | |
| remove_selectors | No | A comma-separated list of elements to hide before capturing (e.g., ads, popups). | |
| s3_access_key_id | No | AWS S3 access key ID. | |
| storage_endpoint | No | Leave this field empty for AWS S3. Only specify a value if required. S3-compatible storage services are supported, for example, use https://<accountId>.r2.cloudflarestorage.com for Cloudflare R2. | |
| wait_for_selector | No | Wait for a specific element to appear before taking the screenshot. | |
| remove_cookie_banners | No | Automatically remove cookie banners before capturing. Default: false. | |
| full_page_scroll_duration | No | Time in milliseconds for scrolling before capturing the full page. Default: 400. |