Screenshot API: High-Fidelity Web Visual Capture & PDF Generation
Generate pixel-perfect full-page screenshots, viewport captures, and PDF documents from any website with customizable viewports, retina scaling, and dark mode.
Overview & Architectural Foundation
Capture pixel-perfect full-page screenshots, viewport snapshots, and PDF documents. Supports retina resolution, dark mode, custom cookies, and custom CSS injection.
The Screenshot API dispatches headless Chromium instances configured with hardware acceleration. It injects custom cookie headers, scrolls through the document to trigger lazy-loaded images and dynamic animations, waits for web font loading, and captures the composited canvas buffer.
Core Capabilities & Developer Features
Full-Page & Viewport Capture
Capture scrolling full-height pages or precise viewports configured for desktop, tablet, and mobile device profiles.
Retina Display & High DPI
Render crystal-clear images at 2x and 3x device pixel ratios with true CSS media emulation and font anti-aliasing.
Dark Mode & Custom Styling
Toggle dark mode color schemes, inject custom CSS overrides, and hide unwanted modal popups or banner elements.
Multiple Output Formats
Export captures as optimized PNG, JPEG, WebP, or vector PDF documents with configurable compression levels.
Architecture & Pipeline Execution Lifecycle
When integrating web scraping and crawling operations into production workflows, data integrity, anti-bot resilience, and predictable latency are paramount. GcrawlAI processes incoming extraction requests through an intelligent gateway that evaluates target domain security profiles, selects appropriate proxy routing topologies (datacenter, residential, or mobile), and assigns requests to isolated headless Chromium instances.
During page execution, dynamic DOM trees are rendered, client-side JavaScript challenges are solved autonomously, and layout hydration events are monitored. The resulting rendered HTML is passed through semantic sanitization heuristics that strip non-content elements, boilerplate navigation menus, cookie consent banners, and tracking scripts while strictly preserving structural headings, tabular data, code snippets, and canonical links.
For AI and LLM workflows, the sanitized document is converted into token-efficient Markdown or validated against your custom JSON Schema before being returned to your client application, ensuring that downstream vector embeddings and language model reasoning receive high-density factual context without noise.
Enterprise Reliability, Rate Limiting & Webhook Integration
GcrawlAI provides battle-tested infrastructure built for high concurrency and enterprise throughput. With automated proxy rotation, intelligent failure retries, and comprehensive telemetry across every endpoint, your engineering team can focus on building intelligent applications rather than maintaining fragile scraping scripts.
Production data ingestion pipelines require high throughput and robust error resilience. GcrawlAI APIs support both synchronous request-response patterns for low-latency interactive workflows and asynchronous batch processing for multi-thousand URL workloads. Automated exponential backoff with jitter is applied to transient network errors or rate-limited endpoints, ensuring maximum completion rates.
When executing large-scale crawl or batch jobs, real-time webhooks provide milestone progress updates and post-completion payloads directly to your ingestion endpoints or cloud storage buckets. All responses adhere to standardized schemas with transparent HTTP status codes, structured error payloads, and full execution metadata including render timings, proxy geography, and token metrics.
Frequently Asked Questions
Can I capture pages that require scrolling to load images?
Yes. GcrawlAI automatically scrolls through long pages to trigger IntersectionObserver events and lazy-loaded assets before taking the capture.
How do I hide cookie consent dialogs in screenshots?
You can pass CSS selectors to remove or hide specific overlay elements, or enable automated cookie banner rejection.
What is the maximum resolution supported?
GcrawlAI supports viewport resolutions up to 3840x2160 (4K UHD) and full-page heights up to 20,000 pixels.