DEV Community

miccho27
miccho27

Posted on

Website Screenshots Without Running Headless Browsers

Capture Screenshots Without Puppeteer Infrastructure

Get PNG screenshots from any URL in under 2 seconds.

Basic Usage

import requests

def screenshot(url):
    r = requests.get(
        'https://screenshot-api.p.rapidapi.com/capture',
        params={'url': url, 'width': 1280, 'height': 720},
        headers={'X-RapidAPI-Key': 'YOUR_KEY', 'X-RapidAPI-Host': 'screenshot-api.p.rapidapi.com'}
    )
    return r.content
Enter fullscreen mode Exit fullscreen mode

Use Cases

  • Link previews
  • Web archival
  • QA testing
  • Documentation

Free: 100/mo | Pro: $9.99 (10K/mo)

Get started: https://rapidapi.com/miccho27-5OJaGGbBiO/api/screenshot-api

Top comments (0)