unclecode/crawl4ai

Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.

What it solves

Web pages are messy: full of navigation menus, ads, and scripts that make them hard for AI models to read. Crawl4AI solves this by turning any webpage into clean, well-structured Markdown that language models can understand, or into structured JSON data — without you having to write complex scraping code or manage browsers and proxies yourself.

How it works

You can use it in three ways: as a hosted cloud API, as a Python library, or as your own Docker server. In all cases you give it a URL, and it uses a headless browser to load the page (running JavaScript if needed), then extracts the content. It can produce:

  • Clean Markdown – with headings, tables, code blocks, and even numbered citation links.
  • Fit Markdown – filtered to remove boilerplate, or focused around a search query.
  • Structured JSON – via CSS/XPath selectors without an LLM, or via an LLM that reads the page and fills a schema you define.
  • Search and SERP data – in the cloud version, you can also search the web or get Google results as data.

It also handles tricky pages: infinite scroll, lazy-loaded images, login-protected content (via saved browser profiles), and sites that try to block automated browsers. It supports deep crawling with strategies like breadth-first or depth-first, and can run many URLs at once.

Who it's for

Developers and data teams building AI-powered applications — especially those doing retrieval-augmented generation (RAG), where you need clean text from the web, or anyone who needs to collect structured data from websites without manually writing scraper code. It's also useful for AI agents (like Claude Code) that need to browse the web; the project provides an MCP server to connect agents directly.

Highlights

  • Hosted cloud API with a free tier (1,000 credits/month, no credit card) — you don't manage browsers or proxies.
  • Open-source core (Apache-2.0) that runs locally with pip install crawl4ai or in Docker with a REST API and dashboard.
  • Multiple extraction strategies: CSS/XPath without LLM, LLM-based extraction into typed schemas, and regex.
  • Adaptive crawling that learns a site's structure and knows when it has enough info to answer a query.
  • Supports Chrome, Firefox, and WebKit; includes stealth mode to evade bot detection.
  • One-click integration with Claude Code, Cursor, and other agents via the MCP protocol.

Related

  • Project
  • Project
  • Project
  • Project
  • Project