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

# Take Screenshot

> Capture a rendered webpage as an image with Scrapfly.

**Take Screenshot** renders a URL through Scrapfly and returns a screenshot
file. It supports viewport, full-page, vertical-scroll, and element-specific
capture.

## Inputs

| Input                   | Type             | Required | Description                                                         |
| ----------------------- | ---------------- | -------- | ------------------------------------------------------------------- |
| **Third-party account** | Scrapfly account | Yes      | The Scrapfly API key.                                               |
| **URL**                 | String           | Yes      | The page to capture.                                                |
| **Format**              | Enum             | Yes      | JPEG, PNG, WebP, or GIF. Defaults to WebP in the editor.            |
| **Capture**             | Enum             | Yes      | Viewport, full page, or vertical scroll. Defaults to viewport.      |
| **Element Selector**    | String           | No       | CSS selector or XPath. Overrides **Capture**.                       |
| **Width** / **Height**  | Number           | No       | Browser dimensions from `100` to `4096`. Defaults to `1920 × 1080`. |
| **Dark Mode**           | Boolean          | No       | Request a dark color scheme.                                        |
| **Block Banners**       | Boolean          | No       | Hide cookie banners and covering overlays.                          |
| **Print Media Format**  | Boolean          | No       | Render print CSS.                                                   |
| **Auto Scroll**         | Boolean          | No       | Scroll to load dynamic content.                                     |
| **Wait For Selector**   | String           | No       | Wait for a CSS selector or XPath before capture.                    |
| **Rendering Wait**      | Number           | No       | Additional milliseconds after load. Defaults to `1000`.             |
| **Proxy Country**       | String           | No       | Scrapfly's proxy-country value.                                     |
| **Cache**               | Boolean          | No       | Reuse eligible cached captures.                                     |

## Output

| Output         | Type       | Description                                       |
| -------------- | ---------- | ------------------------------------------------- |
| **Screenshot** | Image file | The captured image, named from the page hostname. |

<Note>
  **Element Selector** replaces the capture mode rather than cropping the
  finished full-page image.
</Note>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Dynamic content is missing">
    Enable **Auto Scroll**, add **Wait For Selector**, or increase **Rendering
    Wait** so the page can finish loading before capture.
  </Accordion>

  <Accordion title="A cookie banner covers the page">
    Enable **Block Banners**. If the target uses a custom overlay, capture a
    specific element or use **Scrape URL** with custom JavaScript.
  </Accordion>
</AccordionGroup>
