Pageshot
Reference

Capture Options

Reference of all request body parameters.

See Capture Studio and Scene Control for detailed guides.

Top Level

KeyTypeDefaultDescription
urlstring-Target URL
htmlstring-HTML content
markdownstring-Markdown content
formatstringpngpng, jpeg, webp, pdf, mp4, gif, webm
qualityint801-100 (jpeg/webp)
full_pageboolfalseCapture full height (images only)
response_typestringbinarybinary, json, empty

Viewport

KeyTypeDefaultDescription
viewport.widthint1440Width in pixels
viewport.heightint900Height in pixels
viewport.devicestring-Preset ID
viewport.is_mobileboolfalseMobile emulation

Motion (Video Only)

KeyTypeDefaultDescription
motion.typestringstillstill or scroll
motion.durationint5Video length in seconds (1-30)
motion.scroll_byint1000Pixels per scroll (100-5000)
motion.scroll_delayint500Pause between scrolls in ms (0-5000)
motion.scroll_durationint1500Scroll animation duration in ms (100-5000)
motion.easingstringlinearlinear or ease_in_out

Note: motion parameter is only valid for video formats (mp4, gif, webm). For video formats, it defaults to {"type": "still", "duration": 5} if not specified.

Video Options

KeyTypeDefaultDescription
video.fpsint30 (20 for GIF)Frames per second (10-60)
video.qualityint30CRF value for MP4 (0-63, lower=better)
video.scalefloat1.0Output scaling multiplier (0.1-2.0)
video.speedfloat1.0Playback speed multiplier (0.5-2.0)

Note: video parameter is only valid for video formats (mp4, gif, webm).

Animation (Images)

KeyTypeDefaultDescription
trigger_animationsbooltrueEnable pre-scroll
reduce_motionboolfalsePrefer reduced motion
full_page_scroll_delay_msint400Scroll pause duration

Validation Rules

  • Video formats (mp4, gif, webm) cannot be combined with full_page, selector, or clip
  • Video formats require motion parameter (defaults to still if not specified)
  • motion and video parameters are only valid for video formats
  • Only one of url, html, or markdown can be provided

Refer to the Zod schema in backend/src/validation/capture-request.ts for the definitive source of truth.