About CodePen
CodePen is an online code editor and community for testing and showcasing HTML, CSS, and JavaScript code snippets.
Capture CodePen Screenshots Programmatically
Need to capture screenshots of CodePen or any website automatically? GrabShot's screenshot API makes it easy:
curl "https://grabshot.dev/api/screenshot?url=https%3A%2F%2Fcodepen.io&width=1440&format=jpg" \
-H "X-API-Key: YOUR_API_KEY" \
-o codepen-screenshot.jpg
Get 25 free captures per month. Get your free API key โ