# Website Content Crawler: Website to Markdown for RAG (`bulkleads/website-to-markdown`) Actor

Website content crawler for AI: crawl any website and get every page as clean markdown for LLMs, RAG pipelines, vector databases and AI agents. Follows sitemaps and robots.txt. A Firecrawl alternative at $0.99 per 1,000 pages.

- **URL**: https://apify.com/bulkleads/website-to-markdown.md
- **Developed by:** [bulkleads](https://apify.com/bulkleads) (community)
- **Categories:** AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$0.99 / 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.

Learn more: https://docs.apify.com/actors/running/actors-in-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

**Website Content Crawler** for AI: it crawls any website and returns **every page as clean text and markdown**, ready for LLMs, RAG pipelines, embeddings and AI agents. It starts from the page you give it, follows the site's own links and sitemaps, stays on the same site and respects robots.txt. It costs **$0.99 per 1,000 pages**, and pages with no text are free.

### What does each page include?

- `url`, `title` and `description`
- `markdown`: the title as a heading, the description, then the page's visible text, line by line
- `chars` and `truncated`, so you can see when a long page was cut to your limit
- `site`: the start URL it came from

### How to use it

1. Add one or more **Websites or pages**, for example `https://docs.apify.com`.
2. Set **Max pages per site** (up to 50) and **Max characters per page**.
3. Click **Start**.

### Output example

```json
{
  "site": "https://docs.apify.com",
  "url": "https://docs.apify.com/platform",
  "title": "Apify platform",
  "description": "Learn how to use the platform.",
  "markdown": "# Apify platform\n\n> Learn how to use the platform.\n\nGet started\nActors\nStorage\n...",
  "chars": 8423,
  "truncated": false
}
```

### How much does it cost?

**$0.99 per 1,000 pages.** 10,000 pages cost $9.90, with no extra charge for proxies or compute.

### Good to know

Pages are read over plain HTTP, without a browser, so it is fast and cheap. A page that only shows its text after JavaScript runs comes back short or empty, and an empty page is not charged. Sites that block automated visitors return no pages.

### Add-ons

Optional steps, all off by default. An add-on made by another of our actors runs that actor on what this run found, in your own account: it shows as its own run, is charged by that actor at its own price, and its results are added to this run's dataset. The maximum cost you set for this run covers the add-ons too.

#### Emails and phones from each website

Turn on **Add emails and phones from each website** and every company website found is read (contact, team and about pages) for emails, phones and social profiles by [Website Contact Scraper](https://apify.com/bulkleads/website-contact-scraper), added as items marked `contacts_for`. Social networks, marketplaces and encyclopedias are skipped. It charges its own price: **$0.99 per 1,000 pages read**.

#### Decision-makers at each company

Turn on **Add decision-makers at each company** and the run also adds people with a work email at every company website it found, filtered by the titles you choose (CEO, Founder, Owner and President by default), from [LinkedIn Company Employees](https://apify.com/bulkleads/company-employees-scraper). Each is marked `contact_for` with the company. It charges its own price: **$1.14 per 1,000 people added**. Turn on **Check decision-makers' emails not checked yet** to have their emails checked first.

### FAQ

**Is this a Firecrawl or Website Content Crawler alternative?** Yes. It crawls a whole site into markdown for LLMs and RAG, paid per page with no plan.

### Related actors

Pull structured fields from pages with [AI Web Scraper](https://apify.com/bulkleads/ai-web-scraper). Search the web and read the results with [Web Search for AI Agents](https://apify.com/bulkleads/web-search-for-ai-agents).

# Actor input Schema

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

Where to start, one per line. The crawl stays on each site.

## `maxPagesPerSite` (type: `integer`):

Max pages per site.

## `maxCharsPerPage` (type: `integer`):

Max characters per page.

## `addDecisionMakers` (type: `boolean`):

Also adds people with a work email at each company website found, from LinkedIn Company Employees. Charged by it at its own price, per person added.

## `decisionMakerTitles` (type: `array`):

Only people with these titles, e.g. CEO, Founder, Head of Marketing.

## `decisionMakersPerCompany` (type: `integer`):

Decision-makers per company.

## `checkDecisionMakerEmails` (type: `boolean`):

Their emails not checked in the last 90 days are checked first by Bulk Email Verifier (charged by it at its own price).

## `addWebsiteContacts` (type: `boolean`):

Also reads each company website found (contact, team and about pages) for emails, phones and social profiles, with Website Contact Scraper. Charged by it at its own price, per page read.

## `websiteContactPages` (type: `integer`):

Pages read per website.

## Actor input object example

```json
{
  "startUrls": [
    "https://docs.apify.com",
    "https://docs.stripe.com",
    "https://developers.hubspot.com/docs"
  ],
  "maxPagesPerSite": 10,
  "maxCharsPerPage": 30000,
  "addDecisionMakers": false,
  "decisionMakerTitles": [
    "CEO",
    "Founder",
    "Owner",
    "President"
  ],
  "decisionMakersPerCompany": 3,
  "checkDecisionMakerEmails": false,
  "addWebsiteContacts": false,
  "websiteContactPages": 5
}
```

# 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": [
        "https://docs.apify.com",
        "https://docs.stripe.com",
        "https://developers.hubspot.com/docs"
    ],
    "decisionMakerTitles": [
        "CEO",
        "Founder",
        "Owner",
        "President"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bulkleads/website-to-markdown").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": [
        "https://docs.apify.com",
        "https://docs.stripe.com",
        "https://developers.hubspot.com/docs",
    ],
    "decisionMakerTitles": [
        "CEO",
        "Founder",
        "Owner",
        "President",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("bulkleads/website-to-markdown").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": [
    "https://docs.apify.com",
    "https://docs.stripe.com",
    "https://developers.hubspot.com/docs"
  ],
  "decisionMakerTitles": [
    "CEO",
    "Founder",
    "Owner",
    "President"
  ]
}' |
apify call bulkleads/website-to-markdown --silent --output-dataset

```

## MCP server setup

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

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/FIbWCV88U6xc8tG9T/builds/5ugMgW6e2JeWtFRc8/openapi.json
