Skip to main content
The Screenshot endpoint captures a pixel-perfect screenshot of any URL. It renders JavaScript, blocks ads and cookie banners, handles CAPTCHAs, and can emulate any device or viewport size. Costs 5 credits per request. Endpoint: POST https://api.geekflare.com/screenshot
Install the official SDK: npm install @geekflare/api-node or pip install geekflare-api

Basic Screenshot

Capture a screenshot and get back a CDN URL to the image.

Full-Page Screenshot

Capture the entire scrollable page, not just the viewport.

Capture a Specific Element (CSS Selector)

Capture only the element matching a CSS selector instead of the full viewport or page. Combine with fallbackToFullPage to gracefully fall back to a full-page capture if the selector isn’t found, instead of failing the request.
If selector is omitted, the endpoint captures the full viewport (or full page, if fullPage is true). If selector is set and no matching element is found, the request fails unless fallbackToFullPage is true.

Image Format and Quality

Choose between PNG, JPEG, or WebP output and control quality for JPEG/WebP.

Device Emulation

Emulate a mobile device to capture mobile-specific layouts.

Custom Viewport

Set a custom viewport width, height, or page height for partial screenshots. Use captureBeyondViewport to allow the capture to include content that extends beyond the configured viewport dimensions.

Retina / High-DPI

Capture Retina-quality screenshots using a higher device scale factor.

Dark Mode

Render the page in dark mode before capturing.

Draw visible borders around all clickable links, buttons, and inputs. Useful for AI vision models and LLM web browsing agents.

Remove Background

Remove the page background for transparent PNG output. Useful for design tools.

Add Timestamp

Add a timestamp watermark to the screenshot for audit trails or monitoring.

Proxy Routing

Route the browser through a specific country’s IP to capture geo-specific or localized content.

Delayed Screenshot

Wait a set number of seconds after page load before capturing. Useful for pages with animations or slow-loading widgets.

Disable Animations

Freeze CSS animations and transitions before capturing. Produces cleaner, more consistent screenshots.

Inline Response

By default, the endpoint returns a CDN URL pointing to the generated image (see data in the response above). Set inline: true to receive the image data directly in the response instead, which can save a round trip if you don’t need the image hosted.

All Parameters

Credits

Node.js SDK

npm install @geekflare/api-node

Python SDK

pip install geekflare-api