Web data for AI · Apify actor
Any URL to clean Markdown for your AI agent
Give it one web address or a list of 1,000 and get one tidy row per URL: the main content as Markdown, text, HTML or links, without menus, cookie banners or ads, plus the title, description, language, canonical URL and a token count. Built for AI agents, MCP clients, RAG pipelines and n8n or Make: short inputs, predictable output, one price per page, and every failure is free.
What it does
Web Fetch for AI, in short
- Web pages as Markdown with headings, lists, tables, code blocks and absolute links kept
- JavaScript sites rendered in headless Chromium automatically when the plain page is an empty app shell
- PDF, Word, PowerPoint and Excel links as Markdown; JSON, XML, CSV and text files as they are
- Title, description, language, canonical URL, token and word counts; optional cut to a token limit
- One price for every kind of URL, whether HTML, browser-rendered or a document
- Every failure is a free row with an error code and a plain-English reason
Who it's for
Built for
Example
Input and output
One dataset row per result, downloadable as JSON, CSV or Excel, or read through the Apify API.
{
"urls": [
"https://www.python-httpx.org/quickstart/",
"https://arxiv.org/pdf/1706.03762",
"https://react.dev/learn"
],
"formats": ["markdown", "links"],
"maxTokens": 20000
}From the README's output example, shortened.
{
"url": "https://www.python-httpx.org/quickstart/",
"status": "ok",
"errorCode": null,
"title": "QuickStart - HTTPX",
"fetch": { "httpStatusCode": 200, "renderedWith": "http", "durationMs": 183 },
"metadata": { "canonicalUrl": "https://www.python-httpx.org/quickstart/",
"description": "A next-generation HTTP client for Python.", "languageCode": "en" },
"markdown": "# QuickStart\n\nFirst, start by importing HTTPX: ...",
"links": ["https://www.python-httpx.org/", "https://www.python-httpx.org/advanced/clients/"],
"tokenCount": 3656,
"wordCount": 1742,
"truncated": false,
"charged": true
}Pricing
Pay per result. Failures are free.
No subscription, no monthly minimum. Apify platform compute is included in the price; Apify also adds a tiny start fee per run ($0.00005 per GB of run memory).
| You run | You pay |
|---|---|
| 1,000 URLs, 930 with content | $1.302 |
| 100 PDFs | $0.14 |
| One page | $0.0014 |
70 failed rows = $0.00
Not charged:
- Invalid URLs, DNS errors, timeouts and redirect loops
- HTTP 4xx and 5xx answers, bot-check pages and empty pages
- Unsupported file types and URLs skipped by your max cost per run
The same price applies to plain pages, browser-rendered pages, PDFs and Office files. You can set Maximum cost per run in the run options and the actor stops cleanly when it is reached.
FAQ
Questions
Does it get past bot protection and CAPTCHAs?
No, by design. It identifies itself, does not solve CAPTCHAs or log in, and retries once from a fresh proxy IP. If the site still refuses, you get a free BLOCKED or HTTP_403 row.
Why Markdown?
It keeps headings, lists, tables and links but costs far fewer tokens than HTML, and it is the easiest format for an LLM to read and cite.
How big can a page be?
Responses up to 10 MB are processed. Use Max tokens per page to keep only the first N tokens.
Can I use it from Claude or Cursor?
Yes, through the Apify MCP server: the agent calls kantolabs/web-fetch-for-ai with a url or urls.
Try Web Fetch for AI on Apify
Apify's free plan includes monthly platform credit you can use to try it.
Other Kanto Labs tools
Google Maps Scraper
Places with phone, website, rating, hours and optional emails, from any Maps search.
Google Maps Leads Website Checker
Mobile, HTTPS, ad pixels, CMS, booking and a 0-100 opportunity score for Maps leads.
Contact Page Finder
Contact page, form platform and field names, booking links and WhatsApp per website.