# Website Content Crawler for AI & LLM Data (`your_scraper_guy/website-content-crawler-lite`) Actor

Crawl any website from a seed URL and extract clean Markdown content, ready for LLM training data, RAG pipelines, and vector databases. Set crawl depth, page limits, and domain scope.

- **URL**: https://apify.com/your\_scraper\_guy/website-content-crawler-lite.md
- **Developed by:** [Code With Aqib](https://apify.com/your_scraper_guy) (community)
- **Categories:** AI, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 90.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Website Content Crawler (LLM/RAG ready)

Crawl any website starting from one or more seed URLs, follow links up to a set depth, and extract clean, readable main content, stripped of navigation, ads, and footers, ready to feed into an LLM, RAG pipeline, or dataset.

### What it does

Point it at a URL. It follows internal links up to `maxDepth` hops, up to `maxPagesPerRun` total pages, and for each page:

- Extracts the main readable content using the same engine behind Firefox's Reader Mode
- Outputs it as Markdown (default), plain text, or raw HTML
- Grabs the title and meta description
- Respects `robots.txt` by default

### Input

| Field | Type | Description |
|---|---|---|
| `startUrls` | array | Seed URLs to start crawling from |
| `maxDepth` | integer | How many link-hops to follow from the seed (0 = only the seed pages) |
| `maxPagesPerRun` | integer | Total page cap for the run |
| `crawlScope` | string | `same-domain`, `same-hostname`, or `all` |
| `includeUrlGlobs` | array | Optional allowlist patterns (e.g. `https://example.com/blog/*`) |
| `excludeUrlGlobs` | array | Optional blocklist patterns (e.g. `*/login*`) |
| `respectRobotsTxt` | boolean | Skip pages disallowed by robots.txt |
| `outputFormat` | string | `markdown`, `text`, or `html` |
| `maxContentChars` | integer | Truncates content per page to keep the dataset light |
| `proxyConfiguration` | object | Optional, only needed for sites that block plain requests |

#### Example input

```json
{
    "startUrls": ["https://example.com/blog"],
    "maxDepth": 2,
    "maxPagesPerRun": 100,
    "crawlScope": "same-domain",
    "outputFormat": "markdown"
}
```

### Output

```json
{
    "url": "https://example.com/blog/some-post",
    "depth": 1,
    "title": "Some Post Title",
    "description": "A short meta description of the page.",
    "content": "# Some Post Title\n\nCleaned markdown content of the article...",
    "contentFormat": "markdown",
    "wordCount": 842,
    "truncated": false,
    "crawledAt": "2026-07-13T10:00:00.000Z"
}
```

### Notes

- Works on static/server-rendered pages out of the box. Heavy JavaScript single-page apps may need a browser-based crawler instead.
- Use `crawlScope: "same-domain"` to stay within a site, or `"all"` for broader research crawls.
- Turn on proxy configuration only if a specific site blocks default requests, most sites don't require it.

# Actor input Schema

## `startUrls` (type: `array`):

One or more URLs to start crawling from

## `maxDepth` (type: `integer`):

How many link-hops away from the seed URLs to follow. 0 means only scrape the seed URLs themselves.

## `maxPagesPerRun` (type: `integer`):

Total page limit across the whole crawl, regardless of depth

## `crawlScope` (type: `string`):

Which discovered links are allowed to be followed

## `includeUrlGlobs` (type: `array`):

Only follow URLs matching at least one of these glob patterns (e.g. https://example.com/blog/\*). Leave empty to include everything in scope.

## `excludeUrlGlobs` (type: `array`):

Never follow URLs matching these glob patterns (e.g. */login*, */cart/*)

## `respectRobotsTxt` (type: `boolean`):

Skip pages disallowed by the site's robots.txt rules

## `outputFormat` (type: `string`):

Format for the extracted page content

## `maxContentChars` (type: `integer`):

Truncate extracted content to this many characters, to keep the dataset light

## `proxyConfiguration` (type: `object`):

Only needed for sites that block default requests. Leave off to keep runs free on most sites.

## Actor input object example

```json
{
  "startUrls": [
    "https://docs.apify.com"
  ],
  "maxDepth": 2,
  "maxPagesPerRun": 50,
  "crawlScope": "same-domain",
  "includeUrlGlobs": [],
  "excludeUrlGlobs": [],
  "respectRobotsTxt": true,
  "outputFormat": "markdown",
  "maxContentChars": 20000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("your_scraper_guy/website-content-crawler-lite").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("your_scraper_guy/website-content-crawler-lite").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call your_scraper_guy/website-content-crawler-lite --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=your_scraper_guy/website-content-crawler-lite",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/McDqlCddB1zqkzHYQ/builds/gcVSaquFegiF9dwwA/openapi.json
