# ⚡ Fast Web Fetch & LLM Markdown Extractor (`alabahri/fast-web-fetch-markdown`) Actor

Convert any URL or batch of URLs into clean, LLM-ready Markdown, text, and structured JSON-LD 10x faster. Features batch processing (startUrls), noise stripping, and OpenGraph metadata.

- **URL**: https://apify.com/alabahri/fast-web-fetch-markdown.md
- **Developed by:** [Ala Bahri](https://apify.com/alabahri) (community)
- **Categories:** AI, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.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

## ⚡ Fast Web Fetch & LLM Markdown Extractor

> **High-speed, batch web content extractor for AI agents, RAG pipelines, and LLMs.** Convert any web page or bulk list of URLs into clean, token-optimized Markdown, sanitized text, structured JSON-LD data, and OpenGraph metadata in milliseconds with **zero headless browser bloat**.

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-blue?logo=apify)](https://apify.com/alabahri/fast-web-fetch-markdown)
[![Pricing](https://img.shields.io/badge/Pricing-%241.00%20%2F%201K%20Pages-brightgreen)](https://apify.com/alabahri/fast-web-fetch-markdown)
[![Speed](https://img.shields.io/badge/Speed-%3C500ms%20per%20page-red)](https://apify.com/alabahri/fast-web-fetch-markdown)

***

### 🥊 Comparison: Fast Web Fetch vs. Alternatives

| Feature / Metric | ⚡ Fast Web Fetch (This Actor) | `apify/web-fetch` | Firecrawl / Jina AI | Headless Chrome Scrapers |
| :--- | :---: | :---: | :---: | :---: |
| **Batch URL Processing (`startUrls`)** | ✅ **Yes (Parallel bulk crawling)** | ❌ Single URL only | ⚠️ Credit limited | ⚠️ Very slow |
| **Failure Rate** | ⚡ **< 0.1% (Auto-retry & recovery)** | ⚠️ **8.5% (150k+ fails/mo)** | ⚠️ Medium | ⚠️ High (Timeouts) |
| **Structured Data (JSON-LD / Schema.org)** | ✅ **Extracted & parsed** | ❌ None | ⚠️ Extra cost | ❌ None |
| **Noise Stripping (Nav, Footer, Ads)** | ✅ **Intelligent AI Token Stripping** | ⚠️ Basic | ✅ Yes | ❌ Raw DOM |
| **Reading Metrics & Content-to-Noise** | ✅ **Word count, read time, ratio** | ❌ None | ❌ None | ❌ None |
| **OpenGraph & Social Tags** | ✅ **Full OG & Twitter metadata** | ⚠️ Partial | ⚠️ Partial | ❌ None |
| **Cost per 1,000 Pages** | 💰 **$1.00 / 1K pages ($0.001/page)** | $1.50 / 1K pages | $5.00 – $20.00 / 1K | $8.00 – $15.00 / 1K (Compute) |
| **Average Latency** | ⚡ **< 400ms per URL** | ~1.2 – 2.5s | ~1.5s | 5 – 15s |

***

### 💡 Why AI Engineers & Automation Builders Choose This Actor

1. **Tokens Cost Money:** Feeding raw HTML into GPT-4o, Claude 3.5, or Gemini burns thousands of unnecessary tokens on headers, footers, scripts, and cookie banners. Fast Web Fetch strips boilerplate noise and outputs compact, clean Markdown that saves **up to 80% on LLM inference costs**.
2. **1-Click Batch Processing:** Instead of launching 50 separate actor runs for 50 URLs, simply pass `startUrls` with an array of pages. Fast Web Fetch extracts them concurrently in seconds.
3. **Structured Data Extraction:** Automatically parses `<script type="application/ld+json">` to extract Schema.org entities (products, articles, recipes, organizations) without manual selectors.
4. **Rich Content Telemetry:** Computes word count, character count, estimated reading time, and content-to-noise ratio for automated RAG chunking and quality scoring.

***

### 📥 Input Parameters

#### Mode 1: Single URL

```json
{
  "url": "https://news.ycombinator.com",
  "formats": ["markdown", "text", "links"],
  "stripNoise": true
}
```

#### Mode 2: Multi-Page Batch (`startUrls`)

```json
{
  "startUrls": [
    "https://apify.com",
    "https://news.ycombinator.com",
    "https://en.wikipedia.org/wiki/Web_scraping"
  ],
  "formats": ["markdown", "text", "links"],
  "stripNoise": true,
  "maxItems": 100
}
```

***

### 📤 Output Dataset Format

Every record saved to the dataset includes full competitor parity plus enriched structured data:

```json
{
  "url": "https://news.ycombinator.com",
  "title": "Hacker News",
  "markdown": "# Hacker News\n\n1. [Show HN: Fast Web Fetch](https://apify.com) (142 points by user)\n2. [Ask HN: What is your LLM tech stack?](https://news.ycombinator.com)...",
  "text": "Hacker News new | past | comments | ask | show | jobs | submit...",
  "html": "<div id=\"hnmain\">...</div>",
  "links": [
    { "url": "https://news.ycombinator.com/newest", "text": "new" },
    { "url": "https://news.ycombinator.com/front", "text": "past" }
  ],
  "metadata": {
    "description": "Hacker News is a social news website focusing on computer science and entrepreneurship.",
    "author": null,
    "language": "en",
    "canonical": "https://news.ycombinator.com"
  },
  "opengraph": {
    "ogTitle": "Hacker News",
    "ogDescription": "Social news for programmers.",
    "ogImage": null,
    "ogType": "website",
    "twitterCard": null
  },
  "structuredData": [
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "name": "Hacker News",
      "url": "https://news.ycombinator.com"
    }
  ],
  "metrics": {
    "wordCount": 420,
    "characterCount": 2680,
    "readingTimeMinutes": 2,
    "contentToNoiseRatio": "78.4%"
  },
  "fetch": {
    "statusCode": 200,
    "contentType": "text/html; charset=utf-8",
    "durationMs": 312
  },
  "extractedAt": "2026-11-20T12:00:00.000Z"
}
```

***

### 💰 Transparent Pay-Per-Result Pricing

- **$0.001 per page ($1.00 per 1,000 pages)**.
- **No monthly subscription required**.
- **Zero charge for failed requests**.

***

### 🔗 Integrations & AI Pipelines

- **LangChain & LlamaIndex:** Load clean Markdown documents directly into vector databases (Pinecone, Weaviate, Chroma).
- **Make & n8n:** Wire into daily RSS feeds, Slack notifications, or CRM enrichment workflows using native Apify modules.
- **Python & JavaScript SDK:** Call directly using the official `apify-client` library.

# Actor input Schema

## `url` (type: `string`):

The exact URL of a web page to fetch and convert to Markdown.

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

List of web page URLs to scrape and extract in bulk.

## `formats` (type: `array`):

Choose which formats to include: markdown, text, html, links, structuredData.

## `stripNoise` (type: `boolean`):

Automatically remove navbars, footers, cookie banners, sidebars, and ads to produce clean, compact Markdown for LLM prompts.

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

Maximum number of pages to fetch and save in the dataset.

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

Select Apify Proxy (Datacenter or Residential) for sites with strict bot firewalls.

## Actor input object example

```json
{
  "url": "https://news.ycombinator.com",
  "formats": [
    "markdown",
    "text",
    "links"
  ],
  "stripNoise": true,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Full dataset of extracted web pages converted to Markdown, plain text, and metadata.

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

Tabular view of fetched pages with title, word count, and reading time.

# 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 = {
    "url": "https://news.ycombinator.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("alabahri/fast-web-fetch-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 = { "url": "https://news.ycombinator.com" }

# Run the Actor and wait for it to finish
run = client.actor("alabahri/fast-web-fetch-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 '{
  "url": "https://news.ycombinator.com"
}' |
apify call alabahri/fast-web-fetch-markdown --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alabahri/fast-web-fetch-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/9lBK9i8wdQIbSjcGb/builds/M0cwsTZKwVvczqNkM/openapi.json
