SuperAPI AI Directory

crawl4ai

Open-source LLM-friendly web crawler and scraping tool.

Open website

About this tool

Crawl4AI is an open-source web crawler and scraping tool for LLMs and AI agents, aiming to convert any website into clean, LLM-friendly Markdown for RAG, AI agents, and data pipelines. The project uses the Apache License 2.0, and the latest version is v0.9.5 (October 14, 2026).

[Purpose] Crawl4AI mainly solves the conversion problem of "web pages to LLM-usable data." It can organize web page content into clearly structured Markdown for use by RAG, AI agents, and data pipelines; it can also extract structured JSON data from web pages, or perform web searches, obtain Google search results page data, and answer questions based on sources.

[Main Capabilities]

  1. LLM-friendly output: generates intelligent Markdown with headings, tables, code, and citation hints.
  2. Content filtering: provides PruningContentFilter, BM25ContentFilter (for queries), and LLMContentFilter, which can remove menus, footers, and boilerplate content.
  3. Citations: converts page links into a numbered citation list.
  4. Custom strategies: custom Markdown generators can be plugged in.
  5. Structured extraction: supports CSS and XPath patterns (JsonCssExtractionStrategy, JsonXPathExtractionStrategy, RegexExtractionStrategy), enabling fast extraction without an LLM; provides the schema generator generate_schema; supports typed JSON schema extraction with any LLM provider (LLMExtractionStrategy).
  6. Chunking and similarity: supports topic, regex, and sentence chunking, as well as CosineStrategy to find matching chunks by query.
  7. Browser control: supports persistent profiles (saving logins, cookies, and settings), connecting to remote browsers via Chrome DevTools Protocol (CDP), maintaining sessions across multi-step crawls, proxies with authentication and rotation, stealth mode (enable_stealth) and the undetected-browser adapter, and can control headers, cookies, user agents, viewport, and supports Chromium, Firefox, and WebKit.
  8. Deep crawling: supports BFS, DFS, and best-first strategies, and supports crash recovery for long crawls (resume_state).
  9. Adaptive crawling: AdaptiveCrawler stops after learning enough information to answer the query.
  10. URL discovery: AsyncUrlSeeder (sitemaps, Common Crawl) and DomainMapper; prefetch=True can make URL discovery 5 to 10 times faster.
  11. Dynamic pages: can run JavaScript, wait for elements, and scroll the full page (scan_full_page) to handle infinite scrolling and lazy-loaded images.
  12. Screenshots and PDFs: can take screenshots or generate PDFs for any page.
  13. Media and links: extracts images, audio, video, srcset, internal and external links, iframes, and metadata.
  14. Raw HTML and local files: supports raw: and file://.
  15. Hooks and caching: there are hooks at every step of crawling; caching can skip repeated scraping.
  16. Batch processing: arun_many works with a memory-adaptive scheduler to process multiple URLs simultaneously.

[Usage] Two ways to use it:

  1. Run it yourself (open source, permanently free): provides a Docker server, CLI, and all options; installation and documentation are at docs.crawl4ai.com. The installation command is pip install crawl4ai, and the pre-release version is pip install crawl4ai --pre. The server requires a token, otherwise it can only respond inside the container. A test startup takes about 10 seconds. The dashboard is located at http://localhost:11235/dashboard,playground located at http://localhost:11235/playground。
  2. Use the cloud service (no browser or proxy required): verify your email to get a free starting quota, no credit card required. The free quota is 10 requests per minute, 2 concurrent, starting with 2000 credits; paid is 120 requests per minute, 10 concurrent, starting at $10. The cloud service is in soft launch, prices may change, and purchased content still belongs to the user.

Cloud API example: curl -s https://api.crawl4ai.com/scrape
-H "Authorization: Bearer $CRAWL4AI_KEY"
-H "Content-Type: application/json"
-d '{"url": "https://news.ycombinator.com"}' | jq -r .markdown

The same key can be used for /extract, /search, /serp, /answer, and batch URLs (/scrape/batch, /scrape/jobs).

Connect MCP for AI agents (using Claude Code as an example; Codex, Cursor, and OpenCode are similar): claude mcp add --transport http crawl4ai https://api.crawl4ai.com/mcp
--header "Authorization: Bearer $CRAWL4AI_KEY"

Self-hosted REST API endpoints include: /md, /html, /crawl, /crawl/stream, /screenshot, /pdf, /execute_js. Secure by default: every endpoint requires CRAWL4AI_API_TOKEN. Provides a monitoring dashboard and playground, as well as a pre-warmed browser pool. Supports AMD64 and ARM64 images.

The cloud service also provides: Web Search API (GET /search, no browser required, results are sorted and cleaned), SERP API (GET /serp, treats Google results pages as data, includes real rankings, all sections, localized by location, in Beta), answer endpoint (GET /answer, directly answers questions, experimental), extraction endpoint without your own LLM key (POST /extract), automatically handles JS-heavy pages and bot walls, and MCP access for agents.

[Use cases]

  • Prepare web data for RAG and AI agents
  • Extract structured JSON data from web pages
  • Web search and Google search results page data retrieval
  • Answer questions based on sources
  • Scraping tasks that need to handle dynamic pages, infinite scrolling, and lazy-loaded images
  • Large-scale crawling that requires session persistence, proxies, and stealth mode

[Limitations]

  • The cloud service is in soft launch, prices may change.
  • The SERP API is in Beta, and the answer endpoint is experimental.
  • The self-hosted server requires a token, otherwise it can only respond within the container.
  • When using Crawl4AI, the specified attribution method must be included (HTML badge or text citation).
  • The enterprise edition provides SOC 2 Type I completed, Type II in progress.
  • Other specific limitations are not yet provided.