# Website Content Crawler: Website to Markdown for LLM & RAG (`sandy_yclept/website-content-crawler`) Actor

Website content crawler for LLMs and RAG: every page of a website as clean Markdown, without menus, footers, cookie banners and forms. One row per page, with title, description and language. Robots.txt respected. $1 per 1,000 pages with content on paid plans; empty and failed pages are free.

- **URL**: https://apify.com/sandy_yclept/website-content-crawler.md
- **Developed by:** [Rafal Sav](https://apify.com/sandy_yclept) (community)
- **Categories:** AI, Developer tools, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 pages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does Website Content Crawler do?

**Website Content Crawler** reads a website and returns **every page as clean Markdown**, ready for an LLM's context, a RAG index or a vector database. Give it a website, a part of one (`https://docs.acme.com/guide/`) or single pages. It follows the links, and for each page it keeps **what the page says** - headings, paragraphs, lists, tables, code blocks, links - and leaves out **what every page repeats**: menus, the header and footer, cookie banners, share buttons and forms.

One row per page:

| url | title | language | words | markdown |
|---|---|---|---|---|
| `https://docs.acme.com/guide/install` | Install - Acme Docs | en | 412 | `# Install`<br>`Run pip install acme, then ...` |

**The price is $1 per 1,000 pages with content** on Apify's paid plans ($0.001 a page; less on the larger plans) and $2 per 1,000 on the Free plan. A page with no text of its own, a second address of a page already saved and a page that did not answer are **not returned and not charged**. The platform usage is included: there is nothing else to pay.

**New to Apify?** No setup and no code: create a free account, open the Input tab - an example is already filled in - and click **Start**. That example reads ten pages and costs about **$0.02** of the $5 of credit a free account gets every month.

Run it from the Apify Console, through the API, on a schedule, or from an AI agent through Apify's MCP server.

### Why use it?

- **RAG and chatbots**: load a product's documentation, a help centre or a knowledge base into a vector database without the menu on every chunk.
- **LLM context**: hand a model one page or a whole site as Markdown it reads well, at a fraction of the tokens of raw HTML.
- **AI agents**: one address in, Markdown out - a tool an agent calls when it needs to read a site.
- **Content audits and migrations**: every page of a site with its title, description, language and word count in one table.

#### What makes the Markdown clean

- **The frame is left out twice.** First by what it is: `nav`, the site's header and footer, sidebars, dialogs, cookie and consent tools (OneTrust, Cookiebot, Complianz, Usercentrics and others by name), share bars, breadcrumbs, pagination, form controls. Then by what the website repeats: a block of text found on at least half of a website's pages is its frame - the footer a theme builds out of plain boxes, a top bar, the same call to action under every article - and is taken out of all of them.
- **Content that hides behind a click is kept.** A collapsed FAQ answer, a tab, a biography in a pop-up: the reader opens them, so they are part of the page. A pop-up that only asks for an email address is not.
- **A wrong tag does not lose a page.** Sites print whole pages inside `<nav>`, `<aside>` or `<header>`, and frameworks deliver a page's text beside its `<main>`. Each rule here was written for a page where the plain rule lost the text, and has a test named after it.
- **An email address is written as the visitor reads it.** Cloudflare's email protection leaves "\[email protected]" in a page's HTML and puts the address back in the browser; here it is put back too.
- **Tables stay tables, code stays code.** Data tables become Markdown tables, layout tables become their text, code blocks keep their language.
- **Polite by default.** It respects `robots.txt` and the crawl delay a site asks for, asks one page at a time per website, and never reads sign-in pages, baskets or files.

#### Measured against two other crawlers

We ran this Actor and two popular website-to-Markdown crawlers on the same 30 websites, ten pages each, on November 28, 2026. The websites were picked before anything ran: 22 at random from our samples of startups, local businesses and German sites, and 8 documentation sites and blogs chosen by hand. Nobody labelled these pages, so the table counts agreement, not accuracy: on the 106 pages all three returned there are 3,201 sentences that at least two of the three found.

| | Has those sentences | Repeated frame left in the text | Cost per 1,000 pages |
|---|---|---|---|
| **This Actor** | **98.1%** | **0%** | **$1.00** |
| A browser-based crawler | 95.1% | 1.3% | about $2.50 of platform usage |
| Another HTML crawler | 86.9% | 0% | $2.70 |

The sentences only one crawler has say what each adds: ours are mostly service and product text the others drop; the other HTML crawler's include the cookie banner's.

**What it does not do:** it reads the HTML a server sends and does not run a browser. A website whose text is drawn by a script gives no pages - 3 of the 30 here - and you get one free row that says so. The browser-based crawler read all 30, which is what a browser is for; it took 34 minutes of run time for them where this Actor took under one.

### How to use it

1. Open the **Input** tab and paste one or more addresses: a website, a section of one, or single pages.
2. Set **Max pages per website** - how many pages of each you want at most.
3. Click **Start**.
4. Download the pages as JSON, CSV, Excel or HTML from the **Output** tab, or read them through the API.

### Input

| Field | What it does |
|---|---|
| Websites or pages to read | Where to start. `acme.com` reads the website; `https://docs.acme.com/guide/` reads that part. Paste addresses, upload or link a text or CSV file, or link a Google Sheet shared with "anyone with the link". An address listed twice is read once. |
| Max pages per website | At most this many pages of each start address are saved (default 100, up to 20,000). Pages nearest the start address come first. Only saved pages count. |
| How far to go | **The start address and the pages under it** (default): `https://acme.com` is the whole of acme.com, `https://acme.com/docs/` only its documentation. **The whole website**: its other parts and subdomains too. **Only the addresses I give**: no link is followed. |
| Remove text repeated across the website | On by default: a block found on at least half of a website's pages (and on three at least) is taken out of every page. |
| Keep link addresses in the Markdown | On by default: `[text](https://address)`. Off: links are written as their text alone - fewer tokens for a model. |
| Proxy configuration | Optional. Left alone, the Actor connects directly and retries a site that refuses it through Apify Proxy. |

```json
{
    "startUrls": [{ "url": "https://docs.apify.com/academy" }],
    "maxPagesPerWebsite": 10,
    "crawlScope": "path"
}
```

### Output

```json
{
    "url": "https://docs.apify.com/academy/tutorials",
    "website": "https://docs.apify.com/academy",
    "title": "What's this section? | Academy | Apify Documentation",
    "description": "Learn about various different specific topics related to web-scraping and web-automation.",
    "language": "en",
    "markdown": "# What's this section?\n\n**Learn about various different specific topics related to web-scraping ...**",
    "chars": 583,
    "words": 86,
    "depth": 1,
    "status": "ok",
    "note": null,
    "read_at": "2026-11-28T10:41:07Z",
    "billed": true
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

| Field | What it holds |
|---|---|
| `url` | The page's address, after redirects. |
| `website` | The start address this page was found from. |
| `title`, `description`, `language` | As the page declares them. |
| `markdown` | The page's content as Markdown. |
| `chars`, `words` | The size of the Markdown. |
| `depth` | How many links from the start address. |
| `status` | `ok` for a page. A website that gave no page has one row with `unreachable`, `no_content` or `closed_by_robots`, and a `note` that says why. |
| `read_at` | When the page was read (UTC). |
| `billed` | Whether the row was charged. |

### How much does it cost to crawl a website?

**$1 per 1,000 pages saved** on Apify's paid plans - $0.001 a page on Starter, $0.0009 on Scale, $0.0008 on Business and above - and $0.002 a page on the Free plan, plus Apify's start fee of a few thousandths of a cent per run. Nothing else: the compute is included.

- A 50-page company website: **$0.05**.
- A product's documentation, 2,000 pages: **$2**.
- The $5 a free account gets each month: about 2,500 pages, at the Free plan's price.

You never pay for a page with no text, a copy of a page already saved, a page that did not answer, or a website that could not be read. Set **Maximum cost per run** in the run options and the Actor stops there, with what it read.

### Tips

- **Start where the content is.** To read only a product's documentation, start at `https://acme.com/docs/`, not at the home page.
- **Try ten pages first.** Look at a few rows before reading thousands.
- **A page is asked for half a second after the one before it**, or after the delay the site's robots.txt asks for: about a page a second per website, several websites at once. A site that asks for a long delay is read in fewer pages, never faster.
- **For a vector database**, split `markdown` at its headings: every row keeps the page's `url` and `title` for the source link.

### FAQ

**Does it render JavaScript?** No. It reads the HTML the server sends. A site that builds its text in the browser returns a free row with `status: no_content`. Most documentation sites, blogs and company websites send their text as HTML.

**Does it read PDFs or images?** No: web pages only. Links to files are not followed.

**Does it respect robots.txt?** Yes, always, and the crawl delay too. A website its robots.txt closes returns one free row that says so.

**Why are some pages missing?** A page is left out when it has no text of its own, when it is a second address of a page already saved, or when it did not answer. The run's last status line counts each kind.

**Is it legal to crawl a website?** Crawling public pages is legal in most cases, but the content may be protected by copyright and the site's terms may limit what you do with it. Read only what you have the right to use, and take advice if you are unsure.

### Related Actors

- [Website Contact Details & Email Scraper](https://apify.com/sandy_yclept/website-contact-email-scraper) — emails, phone numbers and social profiles from any list of websites.
- [Decision Maker Email Finder](https://apify.com/sandy_yclept/decision-maker-email-finder) — the owners, CEOs and founders a company names on its own website, with a work email.
- [Career Site Jobs API](https://apify.com/sandy_yclept/careers-page-scraper) — open jobs from 30,000 company job boards by title, country and date.

### Support

Found a page whose Markdown lost its content, or kept a menu? Open an issue on the **Issues** tab with the address - every report becomes a test named after it.

If this Actor saved you time, a short review on its Store page helps others find it.

# Actor input Schema

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

Where to start: a website (acme.com), a part of one (https://docs.acme.com/guide/) or single pages. Each is read with the pages it links, as far as the scope below goes. One row per page. Paste them, upload or link a text or CSV file, or link a Google Sheet shared with "anyone with the link". An address listed twice is read once.

## `maxPagesPerWebsite` (type: `integer`):

At most this many pages of each start address are saved - each a row and a charge. Pages nearest the start address come first. Empty pages, copies of a page already saved and pages that did not answer do not count and are free.

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

The start address and the pages under it: https://acme.com reads the whole of acme.com, https://acme.com/docs/ only its documentation. The whole website: other parts and subdomains too (blog.acme.com). Only the addresses I give: no link is followed - one row for each address.

## `removeRepeatedText` (type: `boolean`):

A block of text found on at least half of a website's pages (and on three at least) is its frame - a footer, a top bar, the same call to action under every article - and is taken out of every page. Menus, cookie banners and forms are left out either way. Turn off to keep every page exactly as it reads on its own.

## `keepLinks` (type: `boolean`):

On: a link is written as [text](https://address), as Markdown has it. Off: a link is written as its text alone - shorter rows and fewer tokens for a model; on a page of many links the addresses are nearly half of the Markdown.

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

Optional proxy for fetching pages. Apify Proxy's datacenter IPs are included in every Apify plan, the Free plan too; residential proxies are billed separately. Left disabled, the Actor connects directly, and retries sites that refuse it through Apify Proxy (see below).

## `proxyFallback` (type: `boolean`):

Every cloud run has a datacenter IP address, and some sites turn those away. A site that refuses or drops the direct connection is retried once through Apify Proxy's datacenter IPs (included in every Apify plan, the Free plan too), then once more directly. Sites that answer directly never go through the proxy, and robots.txt is respected either way. Has no effect when a proxy is configured above.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://docs.apify.com/academy"
    }
  ],
  "maxPagesPerWebsite": 10,
  "crawlScope": "path",
  "removeRepeatedText": true,
  "keepLinks": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "proxyFallback": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://docs.apify.com/academy"
        }
    ],
    "maxPagesPerWebsite": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("sandy_yclept/website-content-crawler").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 = {
    "startUrls": [{ "url": "https://docs.apify.com/academy" }],
    "maxPagesPerWebsite": 10,
}

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

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

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

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://docs.apify.com/academy"
    }
  ],
  "maxPagesPerWebsite": 10
}' |
apify call sandy_yclept/website-content-crawler --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sandy_yclept/website-content-crawler"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/WYvTyVg2eJyIOindZ/builds/OOv9Byqb9TqAf7n1s/openapi.json
