This task can be performed using ScreenshotOne
The Screenshot API for Developers
Best product for this task

ScreenshotOne
dev-tools
ScreenshotOne renders screenshots including GIFs and videos in one simple API call, instead of managing browser clusters and handling all the corner cases.

What to expect from an ideal product
- Simplifies the process with a single API call.
- Handles both static images and dynamic content like GIFs and videos.
- Eliminates the need to manage complex browser clusters.
- Mitigates common rendering issues seamlessly.
- Provides consistent results across different rendering cases.