Video Recording

Capture smooth videos of websites, including scrolling animations, page transitions, and interactive content.

Endpoint

Video recording uses the /animate endpoint instead of /take:

GET https://api.lambdashot.com/animate?url=https://example.com&scenario=scroll&access_key=YOUR_KEY

Scenarios

The scenario parameter determines how the video is captured:

Default (Stand Still)

Records the page without any interaction. Ideal for pages with built-in animations.

?scenario=default

Scroll

Automatically scrolls through the page, capturing the full content.

?scenario=scroll

Video Parameters

ParameterDescriptionDefault
formatOutput format: mp4, webm, mov, gifmp4
durationVideo duration in seconds (max 30)5
widthVideo width in pixelsViewport width
heightVideo height in pixelsViewport height
aspect_ratioAspect ratio (overrides width/height)

Scroll Options

Fine-tune the scrolling behavior:

ParameterDescriptionDefault
scroll_delayPause between scrolls (ms)500
scroll_durationDuration of each scroll animation (ms)1500
scroll_byPixels to scroll per step1000
scroll_backScroll back to top after reaching bottomtrue
scroll_easingEasing function: linear, ease_in_quad, ease_out_quint, etc.ease_out_quint
scroll_completeStop when fully scrolledtrue
scroll_till_selectorScroll until element appears

Examples

Basic Scrolling Video

https://api.lambdashot.com/animate?url=https://stripe.com&scenario=scroll&duration=10&access_key=YOUR_KEY

GIF Animation

https://api.lambdashot.com/animate?url=https://linear.app&scenario=default&format=gif&duration=3&access_key=YOUR_KEY

Custom Scroll Speed

https://api.lambdashot.com/animate?url=https://example.com&scenario=scroll&scroll_duration=2000&scroll_delay=300&access_key=YOUR_KEY

Supported Features

Video recording supports most screenshot options including:

  • Viewport and device emulation
  • Custom headers and cookies
  • Ad and cookie banner blocking
  • Geolocation settings
  • Caching
  • S3 storage upload
  • Async processing with webhooks

Pricing

Video recording is billed at 7¢ per video, regardless of duration or format.

Limitations

  • Maximum duration: 30 seconds
  • Maximum resolution: 1920x1080
  • Some interactive elements may not be captured accurately