POST https://api.geekflare.com/screenshot
Install the official SDK:
npm install @geekflare/api-node or pip install geekflare-apiBasic Screenshot
Capture a screenshot and get back a CDN URL to the image.Response
Response
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 withfallbackToFullPage 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. UsecaptureBeyondViewport 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.Highlight Links (AI Vision)
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 (seedata 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-nodePython SDK
pip install geekflare-api