# Website Content Extractor — Pages to Markdown for LLM/RAG (`taroyamada/website-content-extractor`) Actor

Turn docs, help centers and pricing pages into clean Markdown for LLM and RAG: one row per URL with main text, title, word count and a content-quality score. No API key or login.

- **URL**: https://apify.com/taroyamada/website-content-extractor.md
- **Developed by:** [naoki anzai](https://apify.com/taroyamada) (community)
- **Categories:** AI, Developer tools, SEO tools
- **Features:** Limited permissions
- **Stats:** 30 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 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/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 Extractor

**What you get:** one row per URL with the page's clean main text (markdown or text), title, word count, a content-quality score, and the extraction mode used.

**Docs batch:** Pass several public docs/pricing/help URLs in one run. Each successful page is one `result` row at **$0.009** (plus Actor Start **$0.001**). Example: two Apify docs pages → about **$0.019** total when both succeed.

Sample output from a real run (2026-10-18, Console default input `https://docs.apify.com/platform/actors`, 1 row):

| url | title | extractionMode | wordCount | contentQualityScore | content (shortened) |
|---|---|---|---|---|---|
| https://docs.apify.com/platform/actors | Actors | Platform | Apify Documentation | semantic-main | 308 | 57 | …Actors are serverless cloud programs that take a structured JSON input, perform a task (web scraping, browser automation, data processing, and more)… |

**CTA:** Open **Input** (link below) → leave defaults (1 URL) → **Start**. First paid proof ≈ **USD 0.01**.
[Open Input (leave defaults → Start)](https://console.apify.com/actors/2SEQ0bWRQ39RCeI0P/input)
Paid first run ≈ **USD 0.01** total (1 URL): Actor Start USD 0.001 + 1×USD 0.009. Open Console Input (deep link above) and run this JSON.

```json
{
  "urls": [
    "https://en.wikipedia.org/wiki/Web_scraping"
  ],
  "outputFormat": "markdown",
  "concurrency": 3
}
```

Docs batch example (uses the `result` event once per page):

```json
{
  "urls": [
    "https://docs.apify.com/platform/actors",
    "https://docs.apify.com/platform/storage/dataset"
  ],
  "outputFormat": "markdown",
  "includeMetadata": true,
  "delivery": "dataset",
  "dryRun": false
}
```

### Run the next report

Turn extracted public pages into capped Site QA report/export runs:

- [Run a content QA report](https://apify.com/taroyamada/site-qa-content-report-scraper) for title, metadata, thin-content, and page-quality issues.
- [Run an indexability and AI crawler report](https://apify.com/taroyamada/site-qa-indexability-ai-crawler-report-scraper) for robots, sitemap, canonical, noindex, schema, and crawler-access findings.
- [Run a website RAG readiness report](https://apify.com/taroyamada/website-rag-readiness-audit) for retrieval structure, coverage, and source-linked readiness findings.

These follow-on actors use user-supplied public URLs only. They do not provide ranking guarantees, legal advice, or automated messaging workflows.

AI builders, content ops, SEO teams, and documentation teams provide public pages they own or are allowed to audit.
Use the extracted URLs as the source step for a Site QA report or export, then review source-linked findings instead of treating raw markdown as the final deliverable.
The report actors below produce the buyer-facing artifact; this actor remains the bounded extraction step.

### Low-cost source extraction

Run this actor with its supported extraction input, then pass the same URLs to one of the linked report actors:

```json
{
  "urls": [
    "https://example.com/docs",
    "https://example.com/pricing"
  ],
  "outputFormat": "markdown",
  "includeMetadata": true,
  "delivery": "dataset",
  "maxChargeUsd": 1,
  "dryRun": false
}
```

This actor returns bounded source rows. The linked report actor accepts its own report/export controls and produces the buyer-facing result. Do not add report-only fields to this extractor input.

### Store Quickstart

#### Low-cost extractor input

```json
{
  "urls": [
    "https://example.com/docs"
  ],
  "outputFormat": "markdown",
  "delivery": "dataset",
  "dryRun": false
}
```

#### High-value Site QA/RAG handoff

Use this actor as the low-cost source step, then send the same URLs to one linked Site QA or RAG report actor. Keep extraction and the buyer-facing report as separate runs so the first cost and the high-value deliverable are clear.

Recommended first run:

```json
{
  "urls": [
    "https://example.com/docs"
  ],
  "outputFormat": "markdown",
  "delivery": "dataset",
  "dryRun": false
}
```

#### High-value Site QA/RAG report

Use this separate input with the selected Site QA/RAG actor above, not with the extractor:

```json
{
  "urls": [
    "https://example.com/docs"
  ],
  "generateReport": true,
  "emitExport": true,
  "authorizedUseConfirmed": true,
  "emitUnchanged": false,
  "dryRun": false
}
```

See [`docs/value-path-sample.json`](docs/value-path-sample.json) for the source extraction and downstream report examples.

### Use with Apify MCP

Exact actor: `taroyamada/website-content-extractor`

Sample input JSON:

```json
{
  "urls": [
    "https://en.wikipedia.org/wiki/Web_scraping"
  ],
  "outputFormat": "markdown",
  "concurrency": 3
}
```

### Input examples

#### Docs pages

```json
{
  "urls": [
    "https://example.com/docs"
  ],
  "outputFormat": "markdown",
  "delivery": "dataset",
  "dryRun": false
}
```

#### Pricing and product pages

```json
{
  "urls": [
    "https://example.com/pricing",
    "https://example.com/product"
  ],
  "outputFormat": "text",
  "delivery": "dataset",
  "dryRun": false
}
```

#### Webhook handoff

```json
{
  "urls": [
    "https://example.com/help"
  ],
  "outputFormat": "markdown",
  "delivery": "webhook",
  "webhookUrl": "https://example.com/webhook",
  "dryRun": false
}
```

### Value path output preview

Show the report/export result first; the extraction row below is only the source step:

```json
{
  "actorName": "site-qa-content-report-scraper",
  "rowType": "site_qa_report",
  "billingEventName": "site-qa-report-generated",
  "sourceUrl": "https://example.com/docs",
  "issueCount": 2,
  "reportStatus": "action_needed"
}
```

### Raw extraction sample

```json
{
  "meta": {
    "actorName": "website-content-extractor",
    "actorTitle": "Website Content Extractor",
    "bundle": "Site QA & Content Intelligence Pack",
    "fetchedAt": "2026-05-06T00:00:00.000Z",
    "totalRows": 1
  },
  "rows": [
    {
      "actorName": "website-content-extractor",
      "rowType": "web_content",
      "url": "https://example.com/docs",
      "title": "Example Docs",
      "markdown": "# Example Docs\nUseful content.",
      "wordCount": 240,
      "sourceUrl": "https://example.com/docs",
      "fetchedAt": "2026-05-06T00:00:00.000Z"
    }
  ],
  "warnings": []
}
```

### Output fields

- `rowType`
- `url`
- `title`
- `markdown`
- `text`
- `wordCount`
- `metadata`
- `sourceUrl`
- `fetchedAt`

Rows also include source URLs, fetch timestamps, warnings when a source is partial, and stable IDs when the workflow supports recurring change detection.

### Pricing and no-change runs

$0.001 actor start and $0.009 per useful content row. Failed/no-content rows should stay out of the default dataset.

The default dataset is the billable surface for this extraction actor. Dry runs, validation-only runs, missing-key warnings, and unchanged recurring polls should not write payable default-dataset rows. The linked report actors have separate report/export events; do not infer those charges from a raw content row.

### Compliance guardrails

- Fetch public pages supplied by the user.
- Respect site policies, rate limits, and robots guidance where applicable.
- Use output for content operations, QA, and RAG workflows.
- Do not use provider emblems or wording that implies approval by an upstream data provider.

### See Also

The three report paths in `Run the next report` are the complete Site QA/RAG handoff for this actor. Use one of those paths instead of adding more raw extraction volume.

> 💾 **Save it for later**: click the bookmark icon at the top of the Apify Store page if you'd like to come back to it. Bookmarks help other engineers find this actor via Apify's discovery surfaces.

### Feedback

Use the Apify Store rating and issue controls on the actor page for feedback. The three report paths above remain the only cross-actor workflow links.

### Related Actors

- Hub: [`taroyamada/article-content-extractor`](https://apify.com/taroyamada/article-content-extractor)
- [`taroyamada/article-content-extractor`](https://apify.com/taroyamada/article-content-extractor)
- [`taroyamada/rss-feed-aggregator`](https://apify.com/taroyamada/rss-feed-aggregator)
- [`taroyamada/google-news-scraper`](https://apify.com/taroyamada/google-news-scraper)
- [`taroyamada/broken-link-checker`](https://apify.com/taroyamada/broken-link-checker)
- [`taroyamada/meta-tag-analyzer`](https://apify.com/taroyamada/meta-tag-analyzer)

# Actor input Schema

## `urls` (type: `array`):

Leave the prefilled Apify docs URL and click Start for the first run (≈ $0.010). Docs batch example (each successful URL → one result at $0.009): \["https://docs.apify.com/platform/actors","https://docs.apify.com/platform/storage/dataset"]. For article/news/blog URLs prefer article-content-extractor.

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

First run: keep markdown for the strongest first-run proof. Switch formats only after quickstart succeeds.

## `includeMetadata` (type: `boolean`):

Leave on for the first run. Includes description, author, language, and published date when available.

## `concurrency` (type: `integer`):

Number of pages to fetch in parallel. Leave the default on the first run.

## `timeoutMs` (type: `integer`):

HTTP timeout per page in milliseconds. Leave the default on the first run.

## `delivery` (type: `string`):

Select dataset-only output or webhook handoff. Start with dataset for reviewable output.

## `webhookUrl` (type: `string`):

Webhook destination when delivery=webhook. Leave empty for dataset-only first runs.

## `dryRun` (type: `boolean`):

Leave off for a real first proof. When on, dataset writes and webhook delivery are disabled.

## `maxChargeUsd` (type: `number`):

Safety cap for this run. Keep a low cap for first runs; billable rows beyond the cap return limit_reached.

## Actor input object example

```json
{
  "urls": [
    "https://docs.apify.com/platform/actors"
  ],
  "outputFormat": "markdown",
  "includeMetadata": true,
  "concurrency": 1,
  "timeoutMs": 15000,
  "delivery": "dataset",
  "dryRun": false,
  "maxChargeUsd": 0.02
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped data

# 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 = {
    "urls": [
        "https://docs.apify.com/platform/actors"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("taroyamada/website-content-extractor").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 = { "urls": ["https://docs.apify.com/platform/actors"] }

# Run the Actor and wait for it to finish
run = client.actor("taroyamada/website-content-extractor").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 '{
  "urls": [
    "https://docs.apify.com/platform/actors"
  ]
}' |
apify call taroyamada/website-content-extractor --silent --output-dataset

```

## MCP server setup

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

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/2SEQ0bWRQ39RCeI0P/builds/Q0LkQDRRzlmWVbjMV/openapi.json
