Screenshot API for Python

Capturing website screenshots from Python usually means running and scaling a headless browser yourself. With Snapraven you skip all of that — use requests to grab a screenshot in a few lines.

Example in Python

import requests
r = requests.get(
  'https://api.snapraven.app/v1/screenshot',
  params={'url': target},
  headers={'x-api-key': KEY},
)
open('shot.png', 'wb').write(r.content)

That's the entire integration. Snapraven renders the page in a real Chromium browser and returns a PNG or JPEG. Add fullPage=true for the full scrollable page, or width/height for custom viewports.

Why developers use Snapraven with Python

Other guides

Add screenshots to your Python app today

Get your free API key