> ## 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.

# Scrape URL

> Extract page content through Scrapfly with rendering and anti-bot controls.

**Scrape URL** retrieves a page through Scrapfly and can render JavaScript,
bypass anti-scraping protection, reuse a browser session, and execute custom
JavaScript before returning content.

## Inputs

| Input                        | Type                     | Required | Description                                                                                                 |
| ---------------------------- | ------------------------ | -------- | ----------------------------------------------------------------------------------------------------------- |
| **Third-party account**      | Scrapfly account         | Yes      | The Scrapfly API key.                                                                                       |
| **URL**                      | String                   | Yes      | The page to scrape.                                                                                         |
| **Format**                   | Enum                     | Yes      | Raw HTML, clean HTML, plain text, Markdown, Markdown without links/images, or JSON. Defaults to clean HTML. |
| **Anti-Scraping Protection** | Boolean                  | No       | Enable Scrapfly's anti-bot handling.                                                                        |
| **Render JavaScript**        | Boolean                  | No       | Use browser rendering. Defaults to on.                                                                      |
| **Session**                  | String                   | No       | An alphanumeric session name, up to 255 characters, used to reuse cookies, fingerprint, and proxy.          |
| **Cache**                    | Boolean                  | No       | Reuse eligible cached results.                                                                              |
| **Proxy Pool**               | Enum                     | No       | Datacenter or residential proxies.                                                                          |
| **Proxy Country**            | String                   | No       | Scrapfly's country-location value.                                                                          |
| **Operating System**         | Enum                     | No       | Windows 11, macOS, Linux, or Chrome OS. Random when omitted.                                                |
| **Headers**                  | List of name/value pairs | No       | Custom request headers. Header names are sent lowercase.                                                    |

### JavaScript rendering controls

These inputs appear only while **Render JavaScript** is on:

| Input                 | Type    | Description                                               |
| --------------------- | ------- | --------------------------------------------------------- |
| **Rendering Wait**    | Number  | Milliseconds to wait after page load. Defaults to `1000`. |
| **JavaScript Code**   | String  | Browser-side code executed after the rendering wait.      |
| **Wait For Selector** | String  | CSS selector to wait for after custom JavaScript runs.    |
| **Auto Scroll**       | Boolean | Scroll to load viewport-triggered content.                |

## Outputs

| Output                | Type   | Description                                                              |
| --------------------- | ------ | ------------------------------------------------------------------------ |
| **Content**           | String | Page content in the selected format.                                     |
| **Status Code**       | Number | The page's HTTP status.                                                  |
| **Final URL**         | String | The final URL after redirects.                                           |
| **JavaScript Result** | Any    | The return value from custom code; shown only with JavaScript rendering. |

<Tip>
  Start with clean HTML and JavaScript rendering on. Enable anti-scraping
  protection, a residential proxy, or a session only when the target requires
  them, since advanced Scrapfly features can affect request cost.
</Tip>
