# Website Content Extractor (`aurenic/website-content-extractor`) Actor

Extract clean, structured content from any website: title, meta description, headings, and main text.

- **URL**: https://apify.com/aurenic/website-content-extractor.md
- **Developed by:** [Aurenic](https://apify.com/aurenic) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.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

Extract clean, structured content from any website — titles, meta descriptions, headings, and main text — without writing a single line of code.

### What does Website Content Extractor do?

This Actor takes one or more website URLs and returns structured content from each page. It fetches the raw HTML, parses it, and extracts:

- **Page title** — from the `<title>` tag
- **Meta description** — from the `<meta name="description">` tag
- **All headings (H1, H2, H3)** — with their level and text
- **Main body text** — up to 10,000 characters of readable content

The output is delivered as a clean dataset, ready for analysis, export, or integration with other tools.

### Who is it for?

- **Content researchers** who need to analyze website copy at scale
- **SEO specialists** auditing titles, meta descriptions, and heading structure
- **Data scientists** collecting text data for AI model training
- **Marketers** monitoring competitor messaging and content strategy
- **Developers** who need a lightweight, Cheerio-based scraper without browser overhead

### How much does it cost?

This Actor uses **pay-per-result** pricing. You pay **$0.01 per extracted page** (1 cent per dataset item). There is no monthly subscription.

For example, extracting content from 100 pages costs approximately $1.00. The Actor also charges a negligible platform usage fee per run, typically under $0.001.

### How to use it

1. Click **Start** in the Apify Console.
2. Enter the URL(s) you want to extract content from.
3. Set the **Max Requests per Crawl** to control how many pages to visit.
4. Click **Run**.
5. Download the results as JSON, CSV, or Excel from the **Storage** tab.

### Input

| Field | Type | Description | Default |
|:---|:---|:---|:---|
| **Website URLs** | Array | The pages to extract content from. Add one or more URLs. | `https://example.com` |
| **Max Requests per Crawl** | Integer | Maximum number of pages to crawl. Use 1 for a single page. | `1` |

### Output

The Actor returns a dataset with one row per page:

```json
{
  "url": "https://example.com/",
  "title": "Example Domain",
  "metaDescription": "",
  "headings": [
    { "level": "h1", "text": "Example Domain" }
  ],
  "bodyTextPreview": "Example Domain This domain is for use in documentation examples...",
  "extractedAt": "2026-09-16T19:36:11.179Z"
}

### Use cases

#### SEO auditing
Run the Actor on your own site to audit titles, meta descriptions, and heading structure across all pages.

#### Content research
Extract article text and headings from competitor blogs or news sites. Analyze tone, structure, and topics at scale.

#### AI training data
Collect clean text content from documentation sites, wikis, or knowledge bases to build custom datasets for fine-tuning or RAG pipelines.

#### Competitive intelligence
Monitor competitor messaging, product descriptions, and landing page copy. Track changes over time by scheduling regular runs.

```

### Technical details

- Built with **Crawlee** and **Cheerio** — no browser, no Playwright, no Puppeteer
- Fast and lightweight: approximately 74ms per page
- Uses **Apify Proxy** automatically in the cloud to avoid IP blocks
- Respects `maxRequestsPerCrawl` to prevent runaway crawling

### FAQ

**Can I extract content from JavaScript-rendered pages?**
This Actor uses Cheerio, which parses static HTML. If a page requires JavaScript to render its content, this Actor will not see that content. For JS-rendered pages, use a Playwright-based Actor instead.

**Can I crawl an entire website?**
Yes. Set **Max Requests per Crawl** to a higher number and the Actor will follow internal links on the same domain.

**How do I export the data?**
After a run, go to the **Storage** tab in the Apify Console, open the dataset, and click **Export**. You can download as JSON, CSV, Excel, or XML.

**Do I need to provide proxy credentials?**
No. When running on Apify's platform, proxy access is provided automatically.

### Support

If you encounter issues or have feature requests, please use the **Issues** tab on this Actor's page in the Apify Store.

# Actor input Schema

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

The pages to extract content from. Add one or more URLs.

## `maxRequestsPerCrawl` (type: `integer`):

Maximum number of pages to crawl. Use 1 for a single page.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://example.com"
    }
  ],
  "maxRequestsPerCrawl": 1
}
```

# 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://example.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aurenic/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 = { "startUrls": [{ "url": "https://example.com" }] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aurenic/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/Rfy6efsDacQxEorGT/builds/riiC4slffLut15Lm0/openapi.json
