The AI EntrepreneurI benchmarked screenshot APIs on RapidAPI. The fastest took 6 seconds. Most took 14-21 seconds. Some...
I benchmarked screenshot APIs on RapidAPI. The fastest took 6 seconds. Most took 14-21 seconds. Some had 74% uptime.
So I built my own. It does screenshots in 2.1 seconds and PDFs in 1.2 seconds.
If you've ever tried to programmatically capture a webpage, you know the pain:
I needed something fast, reliable, and cheap. So I built it on Apify's Standby infrastructure.
The secret to sub-3-second delivery is browser pre-warming:
This avoids the 3-5 second cold start that kills most screenshot APIs.
| API | Screenshot Time | PDF Time | Uptime |
|---|---|---|---|
| This API | 2.1s | 1.2s | 100% |
| Competitor A | 8.4s | N/A | 94% |
| Competitor B | 14.2s | N/A | 90% |
| Competitor C | 21s | 15s | 74% |
GET /screenshot?url=https://github.com&width=1920&height=1080&format=png&fullPage=true
Parameters: url, width (320-3840), height (200-2160), format (png/jpeg/webp), fullPage, quality (1-100), delay (ms).
GET /pdf?url=https://github.com&format=A4&landscape=false
Parameters: url, format (A4/Letter/Legal), landscape, printBackground.
POST /batch
{
"urls": ["https://google.com", "https://github.com"],
"width": 1280,
"format": "jpeg"
}
Binary (default): Raw image/PDF bytes with Content-Type header.
Base64 JSON (set Accept: application/json):
{
"base64": "iVBORw0KGgo...",
"mimeType": "image/png",
"size": 15856,
"latencyMs": 2172
}
The code uses apify/actor-node-puppeteer-chrome as the base image. Spec was generated using OpenSpec + Codex.
Questions? @ai_in_it on X.