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

# Scrape URL

> Scrape and extracts content, text, and data from web pages and websites

Scrape and extracts content, text, and data from web pages and websites. You can return full HTML, text, or specific elements using CSS selectors.

|                      |                  |
| -------------------- | ---------------- |
| **App**              | Web              |
| **Operation ID**     | `web_scrape_url` |
| **Type**             | Action           |
| **Connection**       | None             |
| **Credits per run**  | 2                |
| **Agent / MCP tool** | Yes              |

## Inputs

| Field               | Type                       | Required | Default | Description                                                                                                                        |
| ------------------- | -------------------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `url`               | string                     | Yes      | -       | Target URL to scrape                                                                                                               |
| `scrape_type`       | string or SelectableOption | Yes      | -       | Select the scraping method: 'full\_page' (return HTML), 'text\_only' (return visible text), 'custom' (extract using CSS selectors) |
| `selectors`         | object                     | No       | -       | Map of \{name: cssSelector}. Required when scrape\_type is 'custom'                                                                |
| `enable_javascript` | boolean                    | No       | `False` | Use headless Chrome (Selenium) to render JS before scraping                                                                        |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `str`

Returns scraped content (HTML, text, or selected elements) from the URL.
