SnapAPI's PDF endpoint converts any URL to a downloadable PDF with one HTTP call. Supports A4, A3, Letter, Legal, landscape mode, custom margins, and background colors. No headless browser setup required — just pass a URL and receive a PDF.
curl "https://snapapi.tech/v1/pdf?url=https://stripe.com&format=A4" \
-H "x-api-key: YOUR_KEY" \
-o stripe.pdfconst res = await fetch(
"https://snapapi.tech/v1/pdf?" + new URLSearchParams({
url: "https://stripe.com",
api_key: "YOUR_KEY",
format: "A4",
landscape: "false",
print_background: "true"
})
);
const buffer = await res.arrayBuffer();
require("fs").writeFileSync("stripe.pdf", Buffer.from(buffer));import requests
r = requests.get("https://snapapi.tech/v1/pdf", params={
"url": "https://stripe.com",
"api_key": "YOUR_KEY",
"format": "A4",
"print_background": "true"
})
with open("stripe.pdf", "wb") as f:
f.write(r.content)Capturing screenshot...
We run Chromium so you don't have to. No Puppeteer, no Selenium, no drivers.
Choose your format. Set quality. Get optimized output.
9 device presets — iPhone, Pixel, iPad, desktop. One parameter.
Scroll the entire page and stitch into one image. Automatic.
Capture a specific element by CSS selector instead of the whole page.
Emulate prefers-color-scheme: dark to capture dark-themed pages.
1. Sign up for a free API key — 100 screenshots/month, no credit card required.
2. Make a GET request to /v1/screenshot with your URL and API key.
3. Receive a pixel-perfect screenshot as a binary image, or JSON with metadata if meta=true.
That's it. No browser installation, no Chromium management, no headless infrastructure to maintain.