Skip to content

Screenshot

Premium · 5 credits

Capture a screenshot of any web page with configurable viewport dimensions, image format, and full-page mode.

FieldTypeRequiredDefaultDescription
urlstringYesURL to capture
widthintegerNo1280Viewport width in pixels (max 3840)
heightintegerNo720Viewport height in pixels (max 2160)
formatstringNopngpng, jpeg, or webp
qualityintegerNo85Compression quality 0–100 (jpeg and webp only)
fullbooleanNofalseCapture the full scrollable page

Binary image data with the appropriate Content-Type header.

Terminal window
curl -X POST https://morso.dev/api/screenshot \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}' \
-o screenshot.png
Terminal window
curl -X POST https://morso.dev/api/screenshot \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "format": "jpeg", "quality": 90, "full": true}' \
-o screenshot.jpg
Terminal window
curl -X POST https://morso.dev/api/screenshot \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "width": 375, "height": 812, "format": "webp"}' \
-o mobile.webp
  • 400 — Missing URL, dimensions exceed limits, or invalid format.
  • 500 — Browser unavailable or page navigation timeout.

See Errors for the standard error shape.