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.
★ 87,170⑂ 9,084👁 423⑃ 937● 1,080▤ 23◈ 440
87,170
stars
+42+392+2,384
9,084
forks
423
watchers
937
prs
1,080
issues
23
releases
440
discussions
README
Crawl4AI
Crawl4AI Cloud is a hosted web scraping, extraction, and search API for AI agents and data pipelines. Turn pages into clean Markdown for RAG, extract structured JSON, or search the live web with one API key. Crawl4AI runs the browsers and manages the proxies.
Get a free API key · 1,000 free credits every month. No credit card required.
Try a URL in the playground · Set up Crawl4AI Cloud in Claude Code, Cursor, or Codex
This repository is home to the Apache-2.0 crawler that powers Crawl4AI Cloud. Run it yourself with Python or Docker.
Cloud quickstart
Hosted API base URL: https://api.crawl4ai.com.
Cloud API reference · Agent setup and MCP
Set CRAWL4AI_KEY to your API key, then scrape a page as Markdown:
bash
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
Python 3
python
import json
import os
from urllib.request import Request, urlopen
request = Request(
"https://api.crawl4ai.com/scrape",
data=json.dumps({"url": "https://news.ycombinator.com"}).encode("utf-8"),
headers={
"Authorization": f"Bearer {os.environ['CRAWL4AI_KEY']}",
"Content-Type": "application/json",
},
method="POST",
)
with urlopen(request) as response:
print(json.load(response)["markdown"])
Node.js (18+)
javascript
async function main() {
const key = process.env.CRAWL4AI_KEY;
if (!key) throw new Error("Set CRAWL4AI_KEY first.");
const response = await fetch("https://api.crawl4ai.com/scrape", {
method: "POST",
headers: {
Authorization: Bearer ${key},
"Content-Type": "application/json",
},
body: JSON.stringify({ url: "https://news.ycombinator.com" }),
});
if (!response.ok) {
throw new Error(Scrape failed (HTTP ${response.status}): ${await response.text()});
}
const { markdown } = await response.json();
console.log(markdown);
}
main().catch((error) = {
console.error(error.message);
process.exitCode = 1;
});
Example Markdown output (illustrative excerpt):
markdown
Hacker News
1. Example story title
2. Another story title
The same key works for /extract, /search, /serp, /answer and many URLs at once (/scrape/batch, /scrape/jobs). Pay as you go: live prices.
For Claude Code, connect to the hosted MCP server:
bash
claude mcp add --transport http crawl4ai https://api.crawl4ai.com/mcp \
--header "Authorization: Bearer $CRAWL4AI_KEY"
Run Crawl4AI yourself
Latest: v0.9.5 (14 Oct 2026) · all releases →
bash
pip install -U crawl4ai
crawl4ai-setup installs the browser, once
python
import asyncio
from crawl4ai import AsyncWebCrawler
async def main():
async with AsyncWebCrawler() as crawler:
result = await crawler.arun(url="https://news.ycombinator.com")
print(result.markdown)
asyncio.run(main())
Docker server, CLI and every option: Installation · Self-hoTop issues
#731[Bug]: When extracting data with scroll_full_page, only the final elements get parsed22 comments · 2025-02-20#1256[Bug]: Memory Leak on Repeated /md Requests via Docker (MacOS) — Container Crashes Randomly Over Time15 comments · 2025-06-29#2251[docs] DOM XSS: unescaped innerHTML interpolation in docs/apps/linkdin graph view template (5 sinks)5 comments · 2026-09-12#2098unclecode-litellm shadows the upstream litellm package; the quarantine that motivated the fork has been lifted4 comments · 2026-07-25#2380[Bug]: After a streamed deep crawl is stopped early, the next deep crawl returns only the start page3 comments · 2026-10-15#2202[Bug]: Browser pages and renderer processes accumulate for weeks on non-streaming /crawl (Docker 0.9.2)3 comments · 2026-08-26#2023Feature request: opt-out for the mandatory token when binding non-loopback (Kubernetes / trusted-network deployments)2 comments · 2026-06-19#1964[Bug]: Markdown export loses heading hierarchy and table structure3 comments · 2026-05-11
Discussions
#2508RAG Source Receipts: offline content and processing fingerprints for Crawl4AI outputs (early MVP)0 comments · 2026-11-06#2492[Feature Request]: Staged build to decrease image size0 comments · 2026-11-03#2488Docker image update for HTTP2Shell (CVE-2026-111497)1 comments · 2026-11-03#2465Proposal: versioned content blocks and meaningful change events0 comments · 2026-10-29#2446Show and tell: Hardening Downstream Database Tools Against Indirect Prompt Injections in Crawl4AI Pipelines0 comments · 2026-10-26#2430Crawl4AI is #2 in Data and scraping for AI on Archestack (badge, if you want it)0 comments · 2026-10-21#2415Crawl4AI CLI included in AgentManager's tool catalog0 comments · 2026-10-18#2355[Feature Request]: Lightweight HTTP-only crawling mode via DOM AST pruning (no browser required)1 comments · 2026-10-11
Latest release
Release v0.9.5 v0.9.5 2026-10-14🎉 Crawl4AI v0.9.5 Released! 📦 Installation PyPI: bash pip install crawl4ai==0.9.5 Docker: bash docker pull unclecode/crawl4ai:0.9.5 docker pull unclecode/crawl4ai:latest Note: Docker images are being built and will be available shortly. Check the Docker Release workflow for build status. 📝 What's Changed See CHANGELOG.md for details.
相关报道 (7)
techritualCrawl4AI:開源網頁爬蟲工具,專為 LLM 數據提取而設計2026-07-12blog.csdncrawl4ai 从零到上手:GitHub 排名第一的开源 AI 爬虫,5 行代码抓取任意网页2026-06-02blog.csdn【GitHub开源AI精选】Crawl4AI:LLM专属极速开源爬虫利器、1秒处理百万级数据2025-05-12腾讯网Crawl4AI:为大语言模型打造的开源网页数据采集工具2025-04-17Pasquale Pillitteri2026 年抓取互联网的 10 个 GitHub 仓库 (附真实星标)2026-06-30智源社区OpenAI Atlas等AI浏览器暴露Web Agent安全风险!南洋理工破解底层机制2025-11-06blog.upx8.comCrawl4AI:开源 LLM 友好型 Web 爬虫和抓取工具2024-10-05
News & coverage (15)
Hacker NewsCrawl4AI is an open-source, LLM-friendly web crawler and scraper▲ 7 · 2 comments · 2025-04-29Hacker NewsCrawl4AI: Open-Source Web Crawler for Seamless AI Data Scraping▲ 6 · 0 comments · 2024-09-29Hacker Newscrawl4ai: The Adaptive Intelligence Update▲ 4 · 0 comments · 2025-07-12Hacker NewsAsk HN: What do you use (AI based) web crawlers for?▲ 3 · 0 comments · 2026-01-23Hacker NewsCrawl4AI▲ 2 · 0 comments · 2024-10-05Hacker NewsCrawl4AI: Open-source web crawler and scraper for LLMs▲ 1 · 0 comments · 2026-07-10Hacker NewsCrawl4AI: Open-Source LLM Friendly Web Crawler and Scraper▲ 1 · 0 comments · 2025-11-18Hacker NewsCrawl4ai – open-source web crawler for your AI agent▲ 1 · 0 comments · 2025-02-14marktechpostA Coding Implementation of Crawl4AI for Web Crawling, Markdown Generation, JavaScript Execution, and LLM-Based Structured Extraction2026-04-13marktechpostA Coding Guide to Asynchronous Web Data Extraction Using Crawl4AI: An Open-Source Web Crawling and Scraping Toolkit Designed for LLM Workflows2025-04-22