AI News
All projects
Library

Crawl4AI: a web crawler that turns pages into Markdown and JSON for AI

Crawl4AI is an open-source crawler and scraper that turns pages into LLM-ready Markdown or structured JSON, available as a Python library, a self-hosted Docker server, or a hosted API.

crawl4ai by unclecode · 87,995 GitHub stars when we found it · added

The README describes Crawl4AI as a crawler that turns pages into clean Markdown for RAG, extracts structured JSON, and, in its cloud version, searches the live web. The Python library centers on an AsyncWebCrawler. Its first example fetches Hacker News and prints the result as Markdown. Listed features include CSS and XPath extraction with no LLM, optional LLM extraction through any provider LiteLLM supports, deep crawl strategies, proxies, sessions, and a stealth mode.

Installation is pip install -U crawl4ai, followed by crawl4ai-setup to fetch the browser. The Docker image requires a CRAWL4AI_API_TOKEN. The README points to an MCP endpoint for connecting agents to a self-hosted server. The library is licensed under Apache-2.0. The hosted service needs an API key. The README offers 1,000 free credits a month with no card required, plus pay-as-you-go pricing. LLM extraction needs a provider key, or a local model through Ollama, as its example shows.

The author, UncleCode, writes that he built the first version in 2023 because the open-source options for web-to-Markdown required an account and a token and still under-delivered. The README does not say how much of the code was written with AI tools. Much of the README is cloud and sponsor material, so claims about the hosted service come from the author.

In the author's words

Crawl4AI Cloud is a hosted web scraping, extraction, and search API for AI agents and data pipelines.

From the README or the author's post. We checked that the sentence is there, not that it is true.

When to reach for it

Reach for it when a script has to read many JavaScript-heavy pages into Markdown for a RAG pipeline. Its CSS-schema extraction pulls fields without an LLM call per page, and the hosted API is an option if you would rather not run browsers yourself.

Works with

Claude CodeCursorCodexOpenCodeOllama

See it

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it. How this list is made