Skip to main content
Some pages require authentication or specific session data to render correctly. Screenshotly lets you pass cookies, localStorage values, and custom HTTP headers with your capture requests.
Cookies, localStorage, and custom headers are advanced features available on the Pro plan and above.

Cookies

Pass an array of cookie objects to set before the page loads. Each cookie follows the standard format:

localStorage

Set key-value pairs in the page’s localStorage before capture:
localStorage values must be strings. Use JSON.stringify() for objects.

Custom HTTP headers

Pass additional HTTP headers with the page request:
This is useful for capturing pages behind HTTP-based authentication or pages that render differently based on request headers.
Cookies and custom headers can contain sensitive data. Only send credentials to domains you control. Never log or expose these values.

Common scenarios

Capturing a logged-in page

Capturing a page with user preferences

Alternative: Use built-in blockers

For common annoyances like cookie banners and chat widgets, you can use the built-in blocking options instead of cookies: