AI Website-to-Clean-Markdown & Schema Extractor avatar

AI Website-to-Clean-Markdown & Schema Extractor

Pricing

from $2.00 / 1,000 extracted markdown pages

Go to Apify Store
AI Website-to-Clean-Markdown & Schema Extractor

AI Website-to-Clean-Markdown & Schema Extractor

Convert any webpage or batch of URLs into clean, token-efficient Markdown, JSON-LD Schema.org data, OpenGraph metadata, and structured link graphs for LLM agents, RAG pipelines, and n8n workflows.

Pricing

from $2.00 / 1,000 extracted markdown pages

Rating

0.0

(0)

Developer

Karnajeet Sawant

Karnajeet Sawant

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Convert any webpage or batch of URLs into clean, token-efficient Markdown, JSON-LD Schema.org structured data, OpenGraph/Twitter metadata, document heading outlines, and deduplicated link graphs—built specifically for AI agents, RAG pipelines, LLM fine-tuning, and n8n/Make automation workflows.


Why Use This Actor?

  • LLM & RAG Ready: Automatically removes <nav>, <footer>, <aside>, <script>, <style>, cookie consent banners, and ad containers so your LLM only ingests high-signal content.
  • Built-In Token Budgeting: Every page returns wordCount, charCount, and estimatedTokens (ceil(chars / 4)) so your pipeline can chunk or route context without hitting model token limits.
  • Full Structured Data Extraction: Parses all application/ld+json Schema.org blocks (Product, Organization, Article, FAQPage, SoftwareApplication, etc.), OpenGraph tags, canonical URLs, and H1–H3 outlines alongside the Markdown.
  • Sub-Second Batch Speed (Zero Proxy Overhead): Asynchronous HTTP/2 engine processes batches of URLs concurrently without headless browser bloat.
  • Optional Mini-Crawl Mode: Scrape an exact list of URLs (maxPagesPerUrl: 1) or automatically discover and extract up to 50 same-domain subpages per start URL.

Input Parameters

FieldTypeDefaultDescription
urlsarrayRequiredList of webpage URLs to extract.
onlyMainContentbooleantrueStrip navigation, headers, footers, sidebars, and cookie banners.
includeLinksbooleantrueInclude deduplicated internalLinks and externalLinks arrays.
includeImagesbooleanfalseKeep Markdown image tags (![alt](url)). Disabled by default to save tokens.
maxPagesPerUrlinteger1Set to 1 for exact URLs only, or 2–50 to crawl same-domain subpages.
maxMarkdownCharsinteger100000Maximum Markdown characters returned per page.
concurrencyinteger10Maximum concurrent HTTP requests (1–25).
timeoutSecondsinteger20Request timeout per URL in seconds (5–60).

Example Output

{
"url": "https://stripe.com/pricing",
"finalUrl": "https://stripe.com/pricing",
"isSuccess": true,
"statusCode": 200,
"title": "Pricing & Fees | Stripe",
"description": "Find Stripe fees and pricing information...",
"canonicalUrl": "https://stripe.com/pricing",
"language": "en",
"author": "",
"robots": "index, follow",
"wordCount": 1142,
"charCount": 7480,
"estimatedTokens": 1870,
"markdown": "# Pricing & Fees\n\nAccess a complete payments platform...",
"schemaTypes": ["WebPage", "Organization"],
"schemaOrg": [
{
"@context": "https://schema.org",
"@type": "WebPage",
"name": "Pricing & Fees"
}
],
"openGraph": {
"og:title": "Pricing & Fees | Stripe",
"og:type": "website"
},
"headings": [
{ "level": "h1", "text": "Pricing & Fees" },
{ "level": "h2", "text": "Integrated per-transaction pricing" }
],
"internalLinks": ["https://stripe.com/payments", "https://stripe.com/billing"],
"externalLinks": ["https://support.stripe.com"],
"scrapedAt": "2026-11-17T01:15:00.000000+00:00",
"error": null
}

API & n8n Integration

Call this Actor synchronously from n8n, Make, or any backend service to retrieve clean Markdown and JSON-LD directly in a single HTTP request:

POST https://api.apify.com/v2/acts/majestic_tiger12~website-to-clean-markdown/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN
Content-Type: application/json
{
"urls": ["https://docs.apify.com"],
"onlyMainContent": true,
"includeImages": false
}