ScreenAPI

Guides · Lire en français

Screenshot a website as it looks on iPhone, Android and iPad

Capture how a website looks on an iPhone, a Galaxy, a Pixel or an iPad, with the right screen size, pixel density and user agent. 17 device presets, one parameter.

A narrow browser window is not a phone: real devices have a high pixel density, a mobile user agent that some sites detect, and touch support. ScreenAPI's device presets set all three.

One parameter

curl "https://getscreenapi.com/api/v1/screenshot?url=https://example.com&device=iphone-15-pro" \
  -H "x-api-key: YOUR_KEY" -o iphone.png

Available devices

FamilyDevice ids
iPhoneiphone-15-pro-max, iphone-15-pro, iphone-14-pro-max, iphone-14, iphone-13, iphone-12, iphone-se
Androidgalaxy-s24-ultra, galaxy-s23, galaxy-a54, pixel-8-pro, pixel-7
Tabletipad-air, galaxy-tab-s9
Desktopdesktop-1920, desktop-1440, macbook-pro-16

Sizes for each device are in the documentation and at GET /api/v1/devices.

Capture the same page on several devices

import os, requests

for device in ["iphone-se", "iphone-15-pro-max", "galaxy-s23", "ipad-air"]:
    r = requests.get("https://getscreenapi.com/api/v1/screenshot",
                     params={"url": "https://example.com", "device": device, "full_page": "true"},
                     headers={"x-api-key": os.environ["SCREENAPI_KEY"]}, timeout=90)
    r.raise_for_status()
    open(f"{device}.png", "wb").write(r.content)

Good to know

  • Phone captures are large because of the 3× pixel density: use format=webp to keep files small.
  • Combine with dark_mode=true to check your dark theme on mobile.
  • For a quick generic size without a device, use viewport=mobile (390 × 844).

All 17 devices are included in the free plan.

Get a free key