# Web Page, HTML Table & Markdown Scraper | 2Space (`2space/universal-web-extractor-mcp`) Actor

No-code universal web page scraper for ChatGPT and AI agents. Scrapes any URL into clean Markdown, structured HTML table JSON, emails, links, and schema.org JSON-LD metadata.

- **URL**: https://apify.com/2space/universal-web-extractor-mcp.md
- **Developed by:** [2Space Group](https://apify.com/2space) (community)
- **Categories:** AI, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 webpage extracted

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

## Universal Web Extractor & Markdown MCP — by 2Space Group

**Fast, zero-browser web page scraper, HTML to Markdown extractor, HTML table scraper, no-code cheerio scraper, and ChatGPT web extractor built for AI agents and automation workflows.**

`reminiscent_medaka/universal-web-extractor-mcp` converts any static or server-rendered web page into clean, boilerplate-stripped Markdown, structured HTML table JSON objects, decoded emails (including Cloudflare `data-cfemail` protection), top hyperlinks, and JSON-LD Schema.org `@type` metadata over pure HTTP — no headless browser overhead, no LLM API keys, and pay-per-event fairness.

***

### Why Choose This Extractor?

- **Pure HTTP Speed (`CheerioCrawler`)**: Scrapes at up to 50 concurrent requests with minimal memory and compute cost compared to heavy browser scrapers like `apify/rag-web-browser`.
- **Boilerplate-Stripped Markdown**: Removes `<nav>`, `<footer>`, `<aside>`, `<script>`, `<style>`, cookie banners, and hidden elements while preserving headings, lists, blockquotes, links, tables, and fenced code blocks.
- **Structured HTML Table Scraper**: Parses `<table>` elements into clean `{ headers, rows, rowCount }` JSON objects ready for spreadsheets, databases, and LLM tool calls.
- **Cloudflare Email Decoder**: Extracts `mailto:` links, body text emails, and decodes Cloudflare `[data-cfemail]` obfuscated addresses automatically.
- **LLM-Ready Telemetry**: Includes `wordCount`, `tokenEstimate`, `schemaTypes`, `topLinks` (top 20), `imagesCount`, `canonicalUrl`, and `httpStatus` on every flat dataset record.
- **No Data, No Charge**: Only validated pages with HTTP `< 400` and non-empty extracted content are pushed and billed (`webpage-extracted`). Hard `maxItems` and `maxCostUsd` caps protect your budget.

***

### Input Configuration

Empty `{}` input works out of the box with sensible defaults:

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `urls` | `string[]` | `["https://apify.com", "https://crawlee.dev"]` | Target URLs to extract |
| `extractMarkdown` | `boolean` | `true` | Convert main content into clean Markdown |
| `extractTables` | `boolean` | `true` | Parse HTML tables into structured JSON |
| `extractEmails` | `boolean` | `true` | Extract and decode email addresses |
| `maxConcurrency` | `integer` | `10` | Parallel HTTP requests (`1`–`50`) |
| `maxItems` | `integer` | `25` | Hard cap on extracted pages |
| `maxCostUsd` | `number` | `2.0` | Pre-charge USD spending limit |
| `proxyConfiguration` | `object` | `{ "useApifyProxy": false }` | Optional Apify or custom proxy configuration |

***

### Example JSON Output

```json
{
    "url": "https://crawlee.dev/",
    "title": "Crawlee · Build reliable crawlers. Fast.",
    "description": "Crawlee is a web scraping and browser automation library for Node.js.",
    "canonicalUrl": "https://crawlee.dev/",
    "markdown": "# Build reliable crawlers. Fast.\n\nCrawlee handles blocking, proxies, and storage out of the box...",
    "tables": [
        {
            "headers": ["Feature", "Support"],
            "rows": [
                { "Feature": "CheerioCrawler", "Support": "Built-in" }
            ],
            "rowCount": 1
        }
    ],
    "tablesCount": 1,
    "linksCount": 42,
    "topLinks": [
        { "text": "Documentation", "href": "https://crawlee.dev/docs/quick-start" }
    ],
    "imagesCount": 12,
    "emails": ["hello@crawlee.dev"],
    "schemaTypes": ["SoftwareApplication", "WebSite"],
    "wordCount": 385,
    "tokenEstimate": 512,
    "httpStatus": 200,
    "extractedAt": "2026-11-30T07:45:00.000Z"
}
```

***

### 1-Step MCP & No-Code Integration (ChatGPT, Claude, Cursor, Antigravity, n8n, Make, Zapier)

Connect `reminiscent_medaka/universal-web-extractor-mcp` directly as a tool in your AI workspace or automation platform:

- **Apify MCP Server (ChatGPT, Claude Desktop, Cursor, Antigravity)**:
  Point your MCP client to `https://mcp.apify.com/?actors=reminiscent_medaka/universal-web-extractor-mcp` with your `APIFY_TOKEN` bearer header. Your AI assistant can immediately call the Actor as a `web page scraper` and `HTML to Markdown extractor` tool.
- **n8n**:
  Import the ready-to-run workflow template at `n8n/universal-web-to-markdown.json` and add your Apify HTTP Header Auth credential (`Authorization: Bearer <APIFY_TOKEN>`).
- **Make & Zapier**:
  Select the **Apify → Run an Actor** module, choose `reminiscent_medaka/universal-web-extractor-mcp`, and pass `urls` from any webhook, RSS feed, Google Sheet, or Slack trigger.
- **REST API**:
  `POST https://api.apify.com/v2/acts/reminiscent_medaka~universal-web-extractor-mcp/run-sync-get-dataset-items?token=<APIFY_TOKEN>`

***

### Pricing & Diagnostics

- **Pay-Per-Event (`webpage-extracted`)**: Billed `1` event per successfully extracted page. Failed requests, HTTP 4xx/5xx responses, and empty pages are never billed.
- **Run Diagnostics**: Every run writes a `RUN_DIAGNOSTICS` JSON record to the default Key-Value Store summarizing `pagesExtracted`, `pagesFailed`, `eventsCharged`, `chargeLimitReached`, and any errors.

### Issues & Support

Found an edge-case HTML layout, encoding quirk, or table parsing bug? Open an issue in the **Issues** tab on the Actor's Apify Store page with the target URL and sample output — 2Space Group actively maintains and ships fixes fast.

***

### More Tools by 2Space Group

| Tool | Use Case |
| :--- | :--- |
| [Universal Web Extractor & Markdown MCP](https://apify.com/reminiscent_medaka/universal-web-extractor-mcp) | Clean Markdown, HTML tables, decoded emails, and JSON-LD schemas over pure HTTP |
| **2Space SEO & Schema Auditor** | Bulk meta tags, canonicals, Open Graph, and structured data auditing |
| **2Space Lead & Contact Enricher** | Domain contact extraction with Cloudflare email decoding |
| **2Space Docs-to-RAG Pipeline** | Documentation crawling formatted for LLM context windows and vector stores |

# Actor input Schema

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

List of web page URLs to fetch and convert into clean Markdown, structured tables, links, emails, and schema metadata.

## `extractMarkdown` (type: `boolean`):

Convert page content into boilerplate-stripped Markdown (headings, lists, paragraphs, code blocks, and links).

## `extractTables` (type: `boolean`):

Parse HTML <table> elements into structured header/row JSON objects.

## `extractEmails` (type: `boolean`):

Extract email addresses from page text, mailto links, and Cloudflare data-cfemail protected elements.

## `maxConcurrency` (type: `integer`):

Maximum number of parallel HTTP requests (1-50).

## `maxItems` (type: `integer`):

Hard cap on the number of successfully extracted pages pushed and billed.

## `maxCostUsd` (type: `number`):

Pre-charge spending limit in USD for pay-per-event billing safety.

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

Optional Apify Proxy or custom proxy configuration for HTTP requests.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://crawlee.dev"
  ],
  "extractMarkdown": true,
  "extractTables": true,
  "extractEmails": true,
  "maxConcurrency": 10,
  "maxItems": 25,
  "maxCostUsd": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset items containing clean Markdown, parsed HTML tables, emails, links, and page metadata.

# 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://apify.com",
        "https://crawlee.dev"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("2space/universal-web-extractor-mcp").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://apify.com",
        "https://crawlee.dev",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("2space/universal-web-extractor-mcp").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://apify.com",
    "https://crawlee.dev"
  ]
}' |
apify call 2space/universal-web-extractor-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,2space/universal-web-extractor-mcp"
        }
    }
}
```

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/Zr91AizcDioCSBMKM/builds/nqOhvsOTjZg7Egror/openapi.json
