> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrape.rocks/llms.txt
> Use this file to discover all available pages before exploring further.

# Screenshot

| Method | Endpoint      | Parameters                                                                                |
| ------ | ------------- | ----------------------------------------------------------------------------------------- |
| GET    | `/screenshot` | `url`, `delay` (default 2.0), `size` (default "1920x1080"), `resolution` (default "high") |

<CodeGroup>
  ```bash curl theme={null}
  curl -H "Authorization: Bearer <key>" "https://bridge.scrape.rocks/screenshot?url=https://example.com"
  ```

  ```python Python theme={null}
  import requests

  headers = {"Authorization": "Bearer <key>"}
  r = requests.get("https://bridge.scrape.rocks/screenshot?url=https://example.com", headers=headers)
  with open("screenshot.jpg", "wb") as f:
      f.write(r.content)
  ```

  ```javascript JavaScript theme={null}
  fetch("https://bridge.scrape.rocks/screenshot?url=https://example.com", {
    headers: { Authorization: "Bearer <key>" }
  })
    .then(r => r.blob())
    .then(blob => {
      const a = document.createElement("a");
      a.href = URL.createObjectURL(blob);
      a.download = "screenshot.jpg";
      a.click();
    })
  ```

  ```typescript TypeScript theme={null}
  const response = await fetch("https://bridge.scrape.rocks/screenshot?url=https://example.com", {
    headers: { Authorization: "Bearer <key>" }
  });
  const blob = await response.blob();
  const a = document.createElement("a");
  a.href = URL.createObjectURL(blob);
  a.download = "screenshot.jpg";
  a.click();
  ```
</CodeGroup>

<img src="https://mintlify.s3.us-west-1.amazonaws.com/scrape/developer/public/screenshot.jpg" alt="Screenshot example" />
