# LLM Clean Markdown Sanitizer & Web Content Extractor (`kuroxreal/llm-clean-markdown-ppe`) Actor

Converts noisy web pages into clean LLM-ready Markdown with strict SSRF defense, ad removal, token count estimation, and deterministic prompt-injection defense.

- **URL**: https://apify.com/kuroxreal/llm-clean-markdown-ppe.md
- **Developed by:** [AK | Kurox](https://apify.com/kuroxreal) (community)
- **Categories:** AI, Agents, MCP servers
- **Security:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$15.00 / 1,000 llm clean markdown sanitizer & web content extractors

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

## ⚡ AgentFuel402 — Consumable B2B, E-Commerce & Developer Data Factory

[![Edge Status](https://img.shields.io/badge/Cloudflare_Edge-0ms_Cold_Start-F38020?logo=cloudflare)](https://agentfuel402.ak10082247.workers.dev/health)
[![Protocol](https://img.shields.io/badge/x402_V2-Base_%26_Solana_USDC-0052FF)](https://agentfuel402.ak10082247.workers.dev/.well-known/x402.json)
[![Apify Store](https://img.shields.io/badge/Apify_Store-Pay--Per--Event-00A65A?logo=apify)](https://apify.com/kuroxreal)
[![MCP Protocol](https://img.shields.io/badge/MCP-JSON--RPC_2.0-8B5CF6)](https://agentfuel402.ak10082247.workers.dev/mcp)

High-frequency, non-cacheable consumable data feeds for autonomous AI agents, sales outreach pipelines, e-commerce dropshippers, and automated LLM code generators.

### 🚀 Live Endpoints

| Feed Endpoint | Price (x402) | Apify PPE Event | Description |
| :--- | :---: | :---: | :--- |
| **`/v1/fuel/b2b-intent-leads`** | `$0.010 USDC` | `$0.030 USD` (`lead-signal-fetch`) | Newly launched tech companies from Show HN, ProductHunt & GitHub trending with tech-stack tags & hiring intent. |
| **`/v1/fuel/llm-clean-markdown`** | `$0.005 USDC` | `$0.015 USD` (`clean-markdown-fetch`) | Stripped, noise-free Markdown with deterministic prompt-injection defense and SSRF isolation. |
| **`/v1/fuel/ecom-price-stock`** | `$0.005 USDC` | `$0.015 USD` (`ecom-product-check`) | Real-time prices, stock status, discount deltas, and SKU variants from Shopify & Schema.org. |
| **`/v1/fuel/sdk-live-spec`** | `$0.005 USDC` | `$0.010 USD` (`sdk-spec-check`) | Live PyPI & npm metadata to prevent hallucinated versions and detect breaking changes. |

***

### 🛠️ Multi-Chain Payment Rails (x402 V2)

All `/v1/fuel/*` endpoints enforce HTTP `402 Payment Required` supporting gasless settlement:

- **Base Mainnet (`eip155:8453`)**: Circle USDC `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` via EIP-712 `TransferWithAuthorization` to `0x80E0Ae84679b7f11bE171DaADd492FBECf628cd6`.
- **Solana Mainnet (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`)**: SPL USDC `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` to Merchant ATA `DD3A7jaXFeHcif9eYj6Vhomuxypat5Yxi8ow6wxz27yL` (sponsored by PayAI `feePayer`).

#### 🎟️ Agency Pass Prepay ($5.00 USD)

Call `POST /v1/pass/prepay` with $5.00 USDC to receive an `X-Fuel-Session` token granting **1,000 cross-feed calls** with zero per-request gas or signature overhead.

***

### 🤖 Remote MCP Server

Connect any Model Context Protocol client (Claude Desktop, Cursor, n8n, LangChain) directly:

```json
{
  "mcpServers": {
    "agentfuel402": {
      "url": "https://agentfuel402.ak10082247.workers.dev/mcp",
      "transport": "http"
    }
  }
}
```

*Note: Free trial includes 3 free tool calls per IP.*

***

### 📦 Apify Store Pay-Per-Event (PPE) Actors

1. `kuroxreal/b2b-intent-leads-ppe` ($0.030 USD / lead-signal-fetch)
2. `kuroxreal/llm-clean-markdown-ppe` ($0.015 USD / clean-markdown-fetch)
3. `kuroxreal/ecom-price-stock-ppe` ($0.015 USD / ecom-product-check)

***

### 📑 License

MIT

# Actor input Schema

## `mode` (type: `string`):

Select data feed engine to execute

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

Target webpage or product URL for Markdown or E-Commerce extraction

## `limit` (type: `integer`):

Maximum number of B2B lead signals to return

## `category` (type: `string`):

Filter leads by industry / category

## Actor input object example

```json
{
  "mode": "b2b-intent-leads",
  "url": "https://news.ycombinator.com",
  "limit": 10,
  "category": "all"
}
```

# Actor output Schema

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

Dataset containing all acquired lead signals, clean Markdown, or e-commerce records

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("kuroxreal/llm-clean-markdown-ppe").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("kuroxreal/llm-clean-markdown-ppe").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 '{}' |
apify call kuroxreal/llm-clean-markdown-ppe --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kuroxreal/llm-clean-markdown-ppe"
        }
    }
}
```

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/2KWgMEUJOiSzDpxeW/builds/irrUbp4MvS7SOF9ui/openapi.json
