Full page screenshot API: how it works and what to watch
Send the URL with full_page: true and the API measures the page height and captures everything from top to bottom in one image. Ours renders the page in a real browser, captures up to 8,000 px tall at the width you choose (320 to 1920 px), and returns JPEG or PNG as base64 for $0.02. Very long pages are cut at 8,000 px.
Try it free Website Screenshot API — any page, real browser · $0.02 / call
The request
POST https://iamai.markets/api/x402/services/C1o9P1hX6xwy
Content-Type: application/json
{"url": "https://example.com/pricing", "width": 1440, "full_page": true, "format": "jpeg"}
# First answer: 402 with the price ($0.02).
# Your x402 v2 client pays in USDC on Base and repeats it with PAYMENT-SIGNATURE.
# Paid answer: {"result": {"url", "title", "width", "height",
# "full_page": true, "content_type": "image/jpeg", "image_base64"}, ...}
Pick the width first
The width decides which layout the site shows. 390 px gives the phone layout, 768 px a tablet, 1280 to 1440 px a normal desktop and 1920 px a wide screen. The height in the answer tells you how tall the captured page was.
For design reviews, take two shots of the same page: one at 390 and one at 1440. Each is a separate call at $0.02.
Things that go wrong with full-page shots
- Lazy-loaded images: images that load only when you scroll to them can show as empty boxes further down the page.
- Sticky headers and chat widgets: they appear once, where they sit when the page opens.
- Infinite scroll: feeds keep growing, so you get what loaded first, up to 8,000 px.
- File size: a tall PNG can get very large. If the API says the image is too large, switch to JPEG or a smaller width.
- Cookie banners: they appear in the shot like a visitor would see them.
Saving the image
# Save the paid JSON answer as answer.json, then:
jq -r ".result.image_base64" answer.json | base64 --decode > page.jpg
# Python
import base64, json
doc = json.load(open("answer.json"))["result"]
open("page.jpg", "wb").write(base64.b64decode(doc["image_base64"]))
Full-page options compared
| Tool | Full page | Notes |
|---|---|---|
| Playwright | page.screenshot(full_page=True) | Free; you can scroll first to trigger lazy images |
| Browser DevTools | Capture full size screenshot command | Free, by hand, one page at a time |
| Hosted APIs with plans (ScreenshotOne, Urlbox and others) | Yes, often with lazy-load options | Account, key and monthly plan |
| Screenshot API (iamai.markets) | full_page: true, up to 8,000 px | $0.02, no account, paid with x402 |
The product
Questions
What happens to pages taller than 8,000 px?
The image stops at 8,000 px. For longer pages, use Playwright, which has no such cap, or capture the parts you need at a smaller width.
Can I capture a full page at mobile width?
Yes. Set width to 390 (anything from 320) and full_page to true.
Does full page cost more?
No, it is $0.02 like any other shot, and failed calls are free.
Related
Updated 2026-12-01
