GET
/api/v1/screenshotVideo & GIF
Record a video or animated GIF of a page. Supported formats: mp4, mov, avi, webm, gif.
Set format to a video format to record the page instead of taking a still image. The browser opens the URL, waits for load, then records for video_duration seconds while auto-scrolling.
Note: Video captures cost more quota than still screenshots. Check your plan in the Dashboard.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
format | string | required | mp4, mov, avi, webm, or gif. |
video_duration | integer | optional | Recording length in seconds (1–30). Default: 5. |
video_fps | integer | optional | Frames per second (5–60). Default: 24. |
video_scroll | boolean | optional | Auto-scroll the page during recording. Default: true. |
video_section_delay | integer | optional | Pause between scroll steps in ms (200–5000). Default: 1200. |
video_scroll_duration | integer | optional | Time in ms to scroll one viewport height (300–3000). Default: 600. |
viewport_width | integer | optional | Recording viewport width. Default: 1280. |
viewport_height | integer | optional | Recording viewport height. Default: 800. |
Code Examples
# 5-second MP4 recording
curl "https://screenshotcore.com/api/v1/screenshot?access_key=KEY&url=https://example.com&format=mp4&video_duration=5" \
--output recording.mp4
# Animated GIF at 12 fps, 8 seconds
curl "https://screenshotcore.com/api/v1/screenshot?access_key=KEY&url=https://example.com&format=gif&video_duration=8&video_fps=12" \
--output animation.gifResponse
(Raw MP4 bytes, Content-Type: video/mp4)