Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To screenshot a page you are authorized to access, save its signed-in browser state as a Browserless authenticated profile, then pass that profile to Browserless’s /screenshot endpoint. Browserless restores the profile before rendering the page. If you already have the site’s session cookies, you can instead add them to a browser session before navigating to the protected page.

Whether this works for a particular Indian website depends on its login flow and access controls. No target site is specified here, so compatibility with its OTP, identity-provider, CAPTCHA, or device checks cannot be guaranteed.

What you need before taking the screenshot

  • Permission to access the account and capture the page.
  • A Browserless API token and the correct Browserless endpoint for your account. The documentation links below describe the request and authentication method; use the endpoint host assigned to your Browserless setup.
  • A successful sign-in through the site’s normal flow, completed through the final redirect back to the site you want to capture.

Browserless’s Screenshot API accepts a POST request to /screenshot, authenticates with a token query parameter, and returns an image. Its documented request can specify a page URL and screenshot options. Browserless Screenshot API documentation

Option 1: Save and reuse an authenticated profile

This is usually the more practical approach when the site’s signed-in state includes more than cookies. Browserless profiles can store cookies, localStorage, and IndexedDB entries; the documentation says the state is restored before the requested page renders, and lists /screenshot as a supported endpoint. Browserless Authenticated Profiles documentation

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

1. Create a profile after signing in

  1. Start a Browserless browser session with a CDP-capable client such as Puppeteer or Playwright.
  2. Navigate to the site and sign in using its ordinary authorized login flow.
  3. Wait until any OTP or identity-provider flow is complete, the final redirect has returned to the application, and the protected page is accessible.
  4. Save the authenticated profile using Browserless’s profile mechanism. Follow the current profile-creation instructions in the authenticated-profile documentation; the exact setup depends on the browser session integration you use.

Saving too early can preserve an incomplete state. In particular, if sign-in passes through a third-party identity provider, wait for the browser to return to the application before saving.

2. Request the screenshot with that profile

Send a POST request to your Browserless /screenshot endpoint, supply the API token as the token query parameter, include the protected page URL and screenshot options, and attach the saved profile name as the profile query parameter. The endpoint documentation supports full-page capture and output formats including PNG, JPEG, and WebP. Follow its current request schema for the profile and body fields rather than guessing at a profile name or payload format.

Rank #2
Sale
HTML and CSS: Design and Build Websites
  • HTML CSS Design and Build Web Sites
  • Comes with secure packaging
  • It can be a gift option

Browserless’s docs describe the screenshot request as a URL plus optional Puppeteer-style screenshot options. Do not send both html and url in one request. Screenshot API options and request format

3. Check the returned image

Confirm that the screenshot shows the expected signed-in page rather than a login form, redirect, or challenge. A profile being accepted by the endpoint does not prove that an unspecified site’s authentication design is compatible.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Option 2: Add captured cookies before navigation

If you already manage the browser session and have the site’s cookies from a successful authorized login, you can set those cookies in a new browser session before its first request to the protected page. Preserve each cookie’s captured domain or URL and attributes, including secure and sameSite; do not infer or replace their values. Browserless documents cookie handling in its page-setup guide. Browserless cookies and page setup

Cookie injection is less comprehensive than a profile when the application also keeps authentication state in localStorage or IndexedDB. Browserless profiles capture those stores as well as cookies, so a cookie-only attempt may still lead to a login page.

Rank #4
Sale
Web Design with HTML, CSS, JavaScript and jQuery Set
  • Brand: Wiley
  • Set of 2 Volumes
  • A handy two-book set that uniquely combines related technologies Highly visual format and accessible language makes these books highly effective learning tools Perfect for beginning web designers and front-end developers

Capture options that matter for protected pages

  • Full-page capture: use full-page mode when the whole document is needed rather than only the current viewport.
  • Format: PNG is the documented quickstart default; the API also documents JPEG and WebP output. Choose based on whether you need lossless detail or a smaller image.
  • Viewport and scale: set viewport dimensions and device scale factor to control layout and pixel density.
  • Clip or element selection: use a clip region or select an element when only part of the page is required.
  • Lazy-loaded content: scroll before capture when images or other content load only as the page is scrolled.
  • Other documented controls: quality settings are available for relevant formats. Consult the Screenshot API reference for accepted option names and request structure.

Profile limits and reliability considerations

Browserless’s authenticated-profile documentation lists a 2 MB captured-state limit and a maximum of 50 distinct origins per profile. These are product limits, not a guarantee that a given login flow will work. Authentication split across multiple origins, especially an identity-provider flow, needs to be saved after the return to the application and tested against the protected URL. Authenticated-profile limits and behavior

Browserless also offers REST APIs for single-task HTTP requests, which can avoid writing a Puppeteer or Playwright script for a straightforward screenshot. A browser session with a CDP-capable client remains appropriate for interactive login, profile creation, or direct cookie management. Browserless REST APIs

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting

Symptom Likely cause What to do
The screenshot shows the login form The login flow was not finished when the profile was saved, or the screenshot request did not use the intended profile. Complete the final redirect, verify that the protected page is accessible, save again, and check the profile name used on the screenshot request.
The identity-provider login succeeded, but the app is still signed out The profile may have been saved while the browser remained on the identity-provider origin. Wait for the redirect back to the application and save the profile only after the application page is accessible.
Cookies are present but rejected Cookie domain or security attributes may not match the original records, or cookies were added after navigation. Set cookies before navigating and retain their captured domain or URL, secure, and sameSite values. See Browserless session-state documentation.
Cookie injection does not restore sign-in The site may keep part of its authentication state in localStorage or IndexedDB. Try a Browserless authenticated profile, which captures those stores alongside cookies.
A long page is cut off or images are missing The request may be capturing only the viewport, or content may load lazily as the page scrolls. Enable full-page capture and use the documented scroll option before capture when lazy-loaded content is involved.
A challenge or access block appears The site may apply a CAPTCHA, bot check, or other access rule. Do not assume that the login can be automated. Follow the site’s rules and use an authorized access path; the compatibility of an unnamed site cannot be determined here.

Or skip the browser setup

ScreenshotNeo can take a screenshot with one GET request, and its API and MCP server offer an alternative when you do not want to manage a browser session yourself. Its clean-shot options accept consent banners like a visitor and remove more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and response headers report the page verdict and billing status. AI agents can use its MCP server tools to take screenshots, get page information, or capture PDFs.

For an authorized page that is accessible without a login, the cURL request is:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Replace the target URL with the page you are authorized to capture. See the ScreenshotNeo API documentation for authentication and options. This one-call example does not itself sign in to a protected website or bypass its access controls.

ScreenshotNeo’s Free plan includes 1,000 shots per month without a card; paid plans start at $5 for 3,000 shots. Sign up for ScreenshotNeo’s free plan.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.