部署与生态(2/3)
This guide covers proxy configuration and security features in Crawl4AI, including SSL certificate analysis and proxy rotation strategies.
Understanding Proxy Configuration
Crawl4AI recommends configuring proxies per request through CrawlerRunConfig.proxy_config. This gives you precise control, enables rotation strategies, and keeps examples simple enough to copy, paste, and run.
Basic Proxy Setup
Configure proxies that apply to each crawl operation:
import asyncio
from crawl4ai import AsyncWebCrawler, BrowserConfig, CrawlerRunConfig, ProxyConfig
run_config = CrawlerRunConfig(proxy_config=ProxyConfig(server="http://proxy.example.com:8080"))
# run_config = CrawlerRunConfig(proxy_config={"server": "http://proxy.example.com:8080"})
# run_config = CrawlerRunConfig(proxy_config="http://proxy.example.com:8080")
async def main():
browser_config = BrowserConfig()
async with AsyncWebCrawler(config=browser_config) as crawler:
result = await crawler.arun(url="https://example.com", config=run_config)
print(f"Success: {result.success} -> {result.url}")
if __name__ == "__main__":
asyncio.run(main())
!!! note "Why request-level?"
CrawlerRunConfig.proxy_config keeps each request self-contained, so swapping proxies or rotation strategies is just a matter of building a new run configuration.
Supported Proxy Formats
The ProxyConfig.from_string() method supports multiple formats:
from crawl4ai import ProxyConfig
# HTTP proxy with authentication
proxy1 = ProxyConfig.from_string("http://user:pass@192.168.1.1:8080")
# HTTPS proxy
proxy2 = ProxyConfig.from_string("https://proxy.example.com:8080")
# SOCKS5 proxy
proxy3 = ProxyConfig.from_string("socks5://proxy.example.com:1080")
# Simple IP:port format
proxy4 = ProxyConfig.from_string("192.168.1.1:8080")
# IP:port:user:pass format
proxy5 = ProxyConfig.from_string("192.168.1.1:8080:user:pass")
Authenticated Proxies
For proxies requiring authentication:
import asyncio
from crawl4ai import AsyncWebCrawler,BrowserConfig, CrawlerRunConfig, ProxyConfig
run_config = CrawlerRunConfig(
proxy_config=ProxyConfig(
server="http://proxy.example.com:8080",
username="your_username",
password="your_password",
)
)
# Or dictionary style:
# run_config = CrawlerRunConfig(proxy_config={
# "server": "http://proxy.example.com:8080",
# "username": "your_username",
# "password": "your_password",
# })
async def main():
browser_config = BrowserConfig()
async with AsyncWebCrawler(config=browser_config) as crawler:
result = await crawler.arun(url="https://example.com", config=run_config)
print(f"Success: {result.success} -> {result.url}")
if __name__ == "__main__":
asyncio.run(main())
Environment Variable Configuration
Load proxies from environment variables for easy configuration:
import os
from crawl4ai import ProxyConfig, CrawlerRunConfig
# Set environment variable
os.environ["PROXIES"] = "ip1:port1:user1:pass1,ip2:port2:user2:pass2,ip3:port3"
# Load all proxies
proxies = ProxyConfig.from_env()
print(f"Loaded {len(proxies)} proxies")
# Use first proxy
if proxies:
run_config = CrawlerRunConfig(proxy_config=proxies[0])
Rotating Proxies
Crawl4AI supports automatic proxy rotation to distribute requests across multiple proxy servers. Rotation is applied per request using a rotation strategy on CrawlerRunConfig.
Proxy Rotation (recommended)
import asyncio
import re
from crawl4ai import AsyncWebCrawler, BrowserConfig, CrawlerRunConfig, CacheMode, ProxyConfig
from crawl4ai.proxy_strategy import RoundRobinProxyStrategy
async def main():
# Load proxies from environment
proxies = ProxyConfig.from_env()
if not proxies:
print("No proxies found! Set PROXIES environment variable.")
return
# Create rotation strategy
proxy_strategy = RoundRobinProxyStrategy(proxies)
# Configure per-request with proxy rotation
browser_config = BrowserConfig(headless=True, verbose=False)
run_config = CrawlerRunConfig(
cache_mode=CacheMode.BYPASS,
proxy_rotation_strategy=proxy_strategy,
)
async with AsyncWebCrawler(config=browser_config) as crawler:
urls = ["https://httpbin.org/ip"] * (len(proxies) * 2) # Test each proxy twice
print(f"🚀 Testing {len(proxies)} proxies with rotation...")
results = await crawler.arun_many(urls=urls, config=run_config)
for i, result in enumerate(results):
if result.success:
# Extract IP from response
ip_match = re.search(r'(?:[0-9]{1,3}\.){3}[0-9]{1,3}', result.html)
if ip_match:
detected_ip = ip_match.group(0)
proxy_index = i % len(proxies)
expected_ip = proxies[proxy_index].ip
print(f"✅ Request {i+1}: Proxy {proxy_index+1} -> IP {detected_ip}")
if detected_ip == expected_ip:
print(" 🎯 IP matches proxy configuration")
else:
print(f" ⚠️ IP mismatch (expected {expected_ip})")
else:
print(f"❌ Request {i+1}: Could not extract IP from response")
else:
print(f"❌ Request {i+1}: Failed - {result.error_message}")
if __name__ == "__main__":
asyncio.run(main())
SSL Certificate Analysis
Combine proxy usage with SSL certificate inspection for enhanced security analysis. SSL certificate fetching is configured per request via CrawlerRunConfig.
Per-Request SSL Certificate Analysis
import asyncio
from crawl4ai import AsyncWebCrawler, BrowserConfig, CrawlerRunConfig
run_config = CrawlerRunConfig(
proxy_config={
"server": "http://proxy.example.com:8080",
"username": "user",
"password": "pass",
},
fetch_ssl_certificate=True, # Enable SSL certificate analysis for this request
)
async def main():
browser_config = BrowserConfig()
async with AsyncWebCrawler(config=browser_config) as crawler:
result = await crawler.arun(url="https://example.com", config=run_config)
if result.success:
print(f"✅ Crawled via proxy: {result.url}")
# Analyze SSL certificate
if result.ssl_certificate:
cert = result.ssl_certificate
print("🔒 SSL Certificate Info:")
print(f" Issuer: {cert.issuer}")
print(f" Subject: {cert.subject}")
print(f" Valid until: {cert.valid_until}")
print(f" Fingerprint: {cert.fingerprint}")
# Export certificate
cert.to_json("certificate.json")
print("💾 Certificate exported to certificate.json")
else:
print("⚠️ No SSL certificate information available")
if __name__ == "__main__":
asyncio.run(main())
Security Best Practices
1. Proxy Rotation for Anonymity
from crawl4ai import CrawlerRunConfig, ProxyConfig
from crawl4ai.proxy_strategy import RoundRobinProxyStrategy
# Use multiple proxies to avoid IP blocking
proxies = ProxyConfig.from_env("PROXIES")
strategy = RoundRobinProxyStrategy(proxies)
# Configure rotation per request (recommended)
run_config = CrawlerRunConfig(proxy_rotation_strategy=strategy)
# For a fixed proxy across all requests, just reuse the same run_config instance
static_run_config = run_config
2. SSL Certificate Verification
from crawl4ai import CrawlerRunConfig
# Always verify SSL certificates when possible
# Per-request (affects specific requests)
run_config = CrawlerRunConfig(fetch_ssl_certificate=True)
3. Environment Variable Security
# Use environment variables for sensitive proxy credentials
# Avoid hardcoding usernames/passwords in code
export PROXIES="ip1:port1:user1:pass1,ip2:port2:user2:pass2"
4. SOCKS5 for Enhanced Security
from crawl4ai import CrawlerRunConfig
# Prefer SOCKS5 proxies for better protocol support
run_config = CrawlerRunConfig(proxy_config="socks5://proxy.example.com:1080")
Migration from Deprecated proxy Parameter
- "Deprecation Notice"
The legacy
proxyargument onBrowserConfigis deprecated. Configure proxies throughCrawlerRunConfig.proxy_configso each request fully describes its network settings.
# Old (deprecated) approach
# from crawl4ai import BrowserConfig
# browser_config = BrowserConfig(proxy_config="http://proxy.example.com:8080")
# New (preferred) approach
from crawl4ai import CrawlerRunConfig
run_config = CrawlerRunConfig(proxy_config="http://proxy.example.com:8080")
Safe Logging of Proxies
from crawl4ai import ProxyConfig
def safe_proxy_repr(proxy: ProxyConfig):
if getattr(proxy, "username", None):
return f"{proxy.server} (auth: ****)"
return proxy.server
Troubleshooting
Common Issues
-
"Proxy connection failed"
- Verify the proxy server is reachable from your network.
- Double-check authentication credentials.
- Ensure the protocol matches (
http,https, orsocks5).
-
"SSL certificate errors"
- Some proxies break SSL inspection; switch proxies if you see repeated failures.
- Consider temporarily disabling certificate fetching to isolate the issue.
-
"Environment variables not loading"
- Confirm
PROXIES(or your custom env var) is set before running the script. - Check formatting:
ip:port:user:pass,ip:port:user:pass.
- Confirm
-
"Proxy rotation not working"
- Ensure
ProxyConfig.from_env()actually loaded entries (len(proxies) > 0). - Attach
proxy_rotation_strategytoCrawlerRunConfig. - Validate the proxy definitions you pass into the strategy.
- Ensure
See Also
- Anti-Bot Detection & Fallback — Automatic retry with proxy escalation and fallback functions when anti-bot blocking is detected
A comprehensive web-based tutorial for learning and experimenting with C4A-Script - Crawl4AI's visual web automation language.
🚀 Quick Start
Prerequisites
- Python 3.7+
- Modern web browser (Chrome, Firefox, Safari, Edge)
Running the Tutorial
- Clone and Navigate
git clone https://github.com/unclecode/crawl4ai.git
cd crawl4ai/docs/examples/c4a_script/tutorial/
- Install Dependencies
pip install -r requirements.txt
- Launch the Server
python server.py
- Open in Browser
http://localhost:8000
🌐 Try Online: Live Demo
2. Try Your First Script
# Basic interaction
GO playground/
WAIT `body` 2
IF (EXISTS `.cookie-banner`) THEN CLICK `.accept`
CLICK `#start-tutorial`
🎯 What You'll Learn
Core Features
- 📝 Text Editor: Write C4A-Script with syntax highlighting
- 🧩 Visual Editor: Build scripts using drag-and-drop Blockly interface
- 🎬 Recording Mode: Capture browser actions and auto-generate scripts
- ⚡ Live Execution: Run scripts in real-time with instant feedback
- 📊 Timeline View: Visualize and edit automation steps
📚 Tutorial Content
Basic Commands
- Navigation:
GO url - Waiting:
WAIT selector timeoutorWAIT seconds - Clicking:
CLICK selector - Typing:
TYPE "text" - Scrolling:
SCROLL DOWN/UP amount
Control Flow
- Conditionals:
IF (condition) THEN action - Loops:
REPEAT (action, condition) - Procedures: Define reusable command sequences
Advanced Features
- JavaScript evaluation:
EVAL code - Variables:
SET name = "value" - Complex selectors: CSS selectors in backticks
🎮 Interactive Playground Features
The tutorial includes a fully interactive web app with:
1. Authentication System
- Login form with validation
- Session management
- Protected content
2. Dynamic Content
- Infinite scroll products
- Pagination controls
- Load more buttons
3. Complex Forms
- Multi-step wizards
- Dynamic field visibility
- Form validation
4. Interactive Elements
- Tabs and accordions
- Modals and popups
- Expandable content
5. Data Tables
- Sortable columns
- Search functionality
- Export options
🛠️ Tutorial Features
Live Code Editor
- Syntax highlighting
- Real-time compilation
- Error messages with suggestions
JavaScript Output Viewer
- See generated JavaScript code
- Edit and test JS directly
- Understand the compilation
Visual Execution
- Step-by-step progress
- Element highlighting
- Console output
Example Scripts
Load pre-written examples demonstrating: - Cookie banner handling - Login workflows - Infinite scroll automation - Multi-step form completion - Complex interaction sequences
📖 Tutorial Sections
1. Getting Started
Learn basic commands and syntax:
GO https://example.com
WAIT `.content` 5
CLICK `.button`
2. Handling Dynamic Content
Master waiting strategies and conditionals:
IF (EXISTS `.popup`) THEN CLICK `.close`
WAIT `.results` 10
3. Form Automation
Fill and submit forms:
CLICK `#email`
TYPE "user@example.com"
CLICK `button[type="submit"]`
4. Advanced Workflows
Build complex automation flows:
PROC login
CLICK `#username`
TYPE $username
CLICK `#password`
TYPE $password
CLICK `#login-btn`
ENDPROC
SET username = "demo"
SET password = "pass123"
login
🎯 Practice Challenges
Challenge 1: Cookie & Popups
Handle the cookie banner and newsletter popup that appear on page load.
Challenge 2: Complete Login
Successfully log into the application using the demo credentials.
Challenge 3: Load All Products
Use infinite scroll to load all 100 products in the catalog.
Challenge 4: Multi-step Survey
Complete the entire multi-step survey form.
Challenge 5: Full Workflow
Create a script that logs in, browses products, and exports data.
💡 Tips & Tricks
1. Use Specific Selectors
# Good - specific
CLICK `button.submit-order`
# Bad - too generic
CLICK `button`
2. Always Handle Popups
# Check for common popups
IF (EXISTS `.cookie-banner`) THEN CLICK `.accept`
IF (EXISTS `.newsletter-modal`) THEN CLICK `.close`
3. Add Appropriate Waits
# Wait for elements before interacting
WAIT `.form` 5
CLICK `#submit`
4. Use Procedures for Reusability
PROC handle_popups
IF (EXISTS `.popup`) THEN CLICK `.close`
IF (EXISTS `.cookie-banner`) THEN CLICK `.accept`
ENDPROC
# Use anywhere
handle_popups
🔧 Troubleshooting
Common Issues
- "Element not found"
- Add a WAIT before clicking
- Check selector specificity
-
Verify element exists with IF
-
"Timeout waiting for selector"
- Increase timeout value
- Check if element is dynamically loaded
-
Verify selector is correct
-
"Missing THEN keyword"
- All IF statements need THEN
- Format:
IF (condition) THEN action
🚀 Using with Crawl4AI
Once you've mastered C4A-Script in the tutorial, use it with Crawl4AI:
from crawl4ai import AsyncWebCrawler, CrawlerRunConfig
config = CrawlerRunConfig(
url="https://example.com",
c4a_script="""
WAIT `.content` 5
IF (EXISTS `.load-more`) THEN CLICK `.load-more`
WAIT `.new-content` 3
"""
)
async with AsyncWebCrawler() as crawler:
result = await crawler.arun(config=config)
📝 Example Scripts
Check the scripts/ folder for complete examples:
- 01-basic-interaction.c4a - Getting started
- 02-login-flow.c4a - Authentication
- 03-infinite-scroll.c4a - Dynamic content
- 04-multi-step-form.c4a - Complex forms
- 05-complex-workflow.c4a - Full automation
🏗️ Developer Guide
Project Architecture
tutorial/
├── server.py # Flask application server
├── assets/ # Tutorial-specific assets
│ ├── app.js # Main application logic
│ ├── c4a-blocks.js # Custom Blockly blocks
│ ├── c4a-generator.js # Code generation
│ ├── blockly-manager.js # Blockly integration
│ └── styles.css # Main styling
├── playground/ # Interactive demo environment
│ ├── index.html # Demo web application
│ ├── app.js # Demo app logic
│ └── styles.css # Demo styling
├── scripts/ # Example C4A scripts
└── index.html # Main tutorial interface
Key Components
1. TutorialApp (assets/app.js)
Main application controller managing: - Code editor integration (CodeMirror) - Script execution and browser preview - Tutorial navigation and lessons - State management and persistence
2. BlocklyManager (assets/blockly-manager.js)
Visual programming interface: - Custom C4A-Script block definitions - Bidirectional sync between visual blocks and text - Real-time code generation - Dark theme integration
3. Recording System
Powers the recording functionality: - Browser event capture - Smart event grouping and filtering - Automatic C4A-Script generation - Timeline visualization
Customization
Adding New Commands
- Define Block (
assets/c4a-blocks.js) - Add Generator (
assets/c4a-generator.js) - Update Parser (
assets/blockly-manager.js)
Themes and Styling
- Main styles:
assets/styles.css - Theme variables: CSS custom properties
- Dark mode: Auto-applied based on system preference
Configuration
# server.py configuration
PORT = 8000
DEBUG = True
THREADED = True
API Endpoints
GET /- Main tutorial interfaceGET /playground/- Interactive demo environmentPOST /execute- Script execution endpointGET /examples/<script>- Load example scripts
🔧 Troubleshooting
Common Issues
Port Already in Use
# Kill existing process
lsof -ti:8000 | xargs kill -9
# Or use different port
python server.py --port 8001
Blockly Not Loading - Check browser console for JavaScript errors - Verify all static files are served correctly - Ensure proper script loading order
Recording Issues - Verify iframe permissions - Check cross-origin communication - Ensure event listeners are attached
Debug Mode
Enable detailed logging by setting DEBUG = True in assets/app.js
📚 Additional Resources
- C4A-Script Documentation - Complete language guide
- API Reference - Detailed command documentation
- Live Demo - Try without installation
- Example Scripts - More automation examples
🤝 Contributing
Bug Reports
- Check existing issues on GitHub
- Provide minimal reproduction steps
- Include browser and system information
- Add relevant console logs
Feature Requests
- Fork the repository
- Create feature branch:
git checkout -b feature/my-feature - Test thoroughly with different browsers
- Update documentation
- Submit pull request
Code Style
- Use consistent indentation (2 spaces for JS, 4 for Python)
- Add comments for complex logic
- Follow existing naming conventions
- Test with multiple browsers
Happy Automating! 🎉
Need help? Check our documentation or open an issue on GitHub.
Welcome to the Crawl4AI Apps Hub - your gateway to interactive tools and demos that make web scraping more intuitive and powerful.
<style> .apps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin: 2rem 0; }
.app-card { background: #3f3f44; border: 1px solid #3f3f44; border-radius: 8px; padding: 1.5rem; transition: all 0.3s ease; position: relative; overflow: hidden; }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); border-color: #50ffff; }
.app-card h3 { margin-top: 0; display: flex; align-items: center; gap: 0.5rem; color: #e8e9ed; }
.app-status { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; margin-bottom: 1rem; }
.status-available { background: #50ffff; color: #070708; }
.status-beta { background: #f59e0b; color: #070708; }
.status-coming-soon { background: #2a2a2a; color: #888; }
.app-description { margin: 1rem 0; line-height: 1.6; color: #a3abba; }
.app-features { list-style: none; padding: 0; margin: 1rem 0; }
.app-features li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; color: #d5cec0; font-size: 0.9rem; }
.app-features li:before { content: "▸"; position: absolute; left: 0; color: #50ffff; font-weight: bold; }
.app-action { margin-top: 1.5rem; }
.app-btn { display: inline-block; padding: 0.75rem 1.5rem; background: #50ffff; color: #070708; text-decoration: none; border-radius: 6px; font-weight: 600; transition: all 0.2s ease; font-family: dm, Monaco, monospace; }
.app-btn:hover { background: #09b5a5; transform: scale(1.05); color: #070708; }
.app-btn.disabled { background: #2a2a2a; color: #666; cursor: not-allowed; transform: none; }
.app-btn.disabled:hover { background: #2a2a2a; transform: none; }
.intro-section { background: #3f3f44; border-radius: 8px; padding: 2rem; margin-bottom: 3rem; border: 1px solid #3f3f44; }
.intro-section h2 { margin-top: 0; color: #50ffff; }
.intro-section p { color: #d5cec0; } </style>
<div class="intro-section"> <h2>🛠️ Interactive Tools for Modern Web Scraping</h2> <p> Our apps are designed to make Crawl4AI more accessible and powerful. Whether you're learning browser automation, designing extraction strategies, or building complex scrapers, these tools provide visual, interactive ways to work with Crawl4AI's features. </p> </div>
🎯 Available Apps
<div class="apps-container">
<div class="app-card"> <span class="app-status status-available">Available</span> <h3>🎨 C4A-Script Interactive Editor</h3> <p class="app-description"> A visual, block-based programming environment for creating browser automation scripts. Perfect for beginners and experts alike! </p> <ul class="app-features"> <li>Drag-and-drop visual programming</li> <li>Real-time JavaScript generation</li> <li>Interactive tutorials</li> <li>Export to C4A-Script or JavaScript</li> <li>Live preview capabilities</li> </ul> <div class="app-action"> c4a-script/ </div> </div>
<div class="app-card"> <span class="app-status status-available">Available</span> <h3>🧠 LLM Context Builder</h3> <p class="app-description"> Generate optimized context files for your favorite LLM when working with Crawl4AI. Get focused, relevant documentation based on your needs. </p> <ul class="app-features"> <li>Modular context generation</li> <li>Memory, reasoning & examples perspectives</li> <li>Component-based selection</li> <li>Vibe coding preset</li> <li>Download custom contexts</li> </ul> <div class="app-action"> llmtxt/ </div> </div>
<div class="app-card"> <span class="app-status status-coming-soon">Coming Soon</span> <h3>🕸️ Web Scraping Playground</h3> <p class="app-description"> Test your scraping strategies on real websites with instant feedback. See how different configurations affect your results. </p> <ul class="app-features"> <li>Live website testing</li> <li>Side-by-side result comparison</li> <li>Performance metrics</li> <li>Export configurations</li> </ul> <div class="app-action"> # </div> </div>
<div class="app-card"> <span class="app-status status-available">Available</span> <h3>🔍 Crawl4AI Assistant (Chrome Extension)</h3> <p class="app-description"> Visual schema builder Chrome extension - click on webpage elements to generate extraction schemas and Python code! </p> <ul class="app-features"> <li>Visual element selection</li> <li>Container & field selection modes</li> <li>Smart selector generation</li> <li>Complete Python code generation</li> <li>One-click installation</li> </ul> <div class="app-action"> crawl4ai-assistant/ </div> </div>
<div class="app-card"> <span class="app-status status-coming-soon">Coming Soon</span> <h3>🧪 Extraction Lab</h3> <p class="app-description"> Experiment with different extraction strategies and see how they perform on your content. Compare LLM vs CSS vs XPath approaches. </p> <ul class="app-features"> <li>Strategy comparison tools</li> <li>Performance benchmarks</li> <li>Cost estimation for LLM strategies</li> <li>Best practice recommendations</li> </ul> <div class="app-action"> # </div> </div>
<div class="app-card"> <span class="app-status status-coming-soon">Coming Soon</span> <h3>🤖 AI Prompt Designer</h3> <p class="app-description"> Craft and test prompts for LLM-based extraction. See how different prompts affect extraction quality and costs. </p> <ul class="app-features"> <li>Prompt templates library</li> <li>A/B testing interface</li> <li>Token usage calculator</li> <li>Quality metrics</li> </ul> <div class="app-action"> # </div> </div>
<div class="app-card"> <span class="app-status status-coming-soon">Coming Soon</span> <h3>📊 Crawl Monitor</h3> <p class="app-description"> Real-time monitoring dashboard for your crawling operations. Track performance, debug issues, and optimize your scrapers. </p> <ul class="app-features"> <li>Real-time crawl statistics</li> <li>Error tracking and debugging</li> <li>Resource usage monitoring</li> <li>Historical analytics</li> </ul> <div class="app-action"> # </div> </div>
</div>
🚀 Why Use These Apps?
🎯 Accelerate Learning
Visual tools help you understand Crawl4AI's concepts faster than reading documentation alone.
💡 Reduce Development Time
Generate working code instantly instead of writing everything from scratch.
🔍 Improve Quality
Test and refine your approach before deploying to production.
🤝 Community Driven
These tools are built based on user feedback. Have an idea? Let us know!
📢 Stay Updated
Want to know when new apps are released?
- ⭐ Star us on GitHub to get notifications
- 🐦 Follow @unclecode for announcements
- 💬 Join our Discord community for early access
!!! tip "Developer Resources" Building your own tools with Crawl4AI? Check out our API Reference and Integration Guide for comprehensive documentation.
Last updated: April 20, 2026
Crawl4AI ("we", "us", "our") provides web crawling, scraping, and structured data extraction services through our open-source library, hosted API ("Crawl4AI Cloud"), dashboard, integrations, and Workspace add-ons. This Privacy Policy explains what we collect, how we use it, and the choices you have.
By creating an account or using our services, you agree to this Policy.
1. Who we are
Crawl4AI is operated by CRAWL4AI, located at 38 Beach Road, #26-12, South Beach Tower, Singapore 189767. Contact: unclecode@crawl4ai.com.
2. Information we collect
We collect only what we need to operate the service.
Account information — when you sign up via Google or GitHub OAuth, we receive your email address, display name, profile picture URL, and a stable account identifier from the provider. We do not receive or store your password.
Usage data — for jobs you submit (crawls, extractions, enrichments, screenshots, scans), we record: the input URLs or keywords, the configuration you chose, timestamps, billable credits consumed, status, and links to results stored in our object storage. We retain results for the period defined by your plan (typically 30 days).
API keys — when you generate an API key, we store a hashed version on our servers. The plaintext is shown to you once at creation and never stored in retrievable form afterwards.
Operational logs — request method, path, status code, latency, IP address, user agent, and request ID. Used for debugging, abuse prevention, capacity planning, and security incident response.
Payment information — handled by our payment processor (Stripe). We do not store full card numbers; we keep only the customer reference, plan, and the last four digits of the card for display.
Cookies — minimal session cookies for authentication and CSRF protection. We do not use third-party advertising cookies.
3. How we use your information
- Operate, maintain, and secure the Crawl4AI services
- Authenticate you and authorise API requests against your plan
- Bill and meter usage
- Notify you about service status, security issues, and material changes
- Improve product quality through aggregate, de-identified usage analysis
- Comply with legal obligations and respond to lawful requests
We do not sell your personal information. We do not use the contents of pages you crawl, the keywords you submit, or the results we extract for advertising or to train third-party machine-learning models.
4. Crawl4AI Workspace add-ons (Google Sheets, etc.)
Our Google Workspace add-ons run within your Google account using Apps Script. Specifically:
- Sheet contents — the add-on reads the active spreadsheet you have open and writes results back into the same spreadsheet. Sheet contents are sent to our API only as part of jobs you explicitly trigger (for example, by clicking "Generate Data"). Cell contents are not stored beyond the duration of the job.
- API key storage — the add-on stores your Crawl4AI API key in Google's per-user
PropertiesService, which is encrypted at rest by Google and scoped to your Google account. - Email — when granted, we read your Google account email address solely to display it in the sidebar so you know which account is in use.
- Limited use — we follow Google's Limited Use Requirements for Workspace API data. We do not transfer Workspace data to third parties except as necessary to provide the user-facing feature, comply with applicable law, or as part of a merger / acquisition where successor entity is bound by an at-least-equally-protective policy. We do not use Workspace data for advertising, and we do not allow humans to read it except with your explicit permission, for security investigations, or to comply with applicable law.
5. How we share information
We share information only when needed to run the service:
- Sub-processors — we use a small set of vendors for hosting (Hetzner, AWS), object storage, transactional email (Postmark), payment processing (Stripe), error tracking, LLM inference (OpenAI, Anthropic, Google), and search (Serper). Each is bound by data-processing terms.
- Legal compliance — we may disclose information if required by law, subpoena, or to protect rights, property, or safety.
- Business transfers — if the service is acquired or merged, your information may transfer to the successor under an at-least-equally-protective policy.
6. Data retention
- Account information — kept while your account is active
- Job results and stored objects — retained per your plan, typically 30 days, then permanently deleted
- Operational logs — typically 90 days
- Billing records — kept for at least 7 years where required by tax law
- Deletion requests — see Section 9
7. Security
We use TLS in transit, encryption at rest for stored objects and database backups, scoped service credentials, network isolation, and least-privilege access controls. No system is perfectly secure; if we become aware of a breach affecting your data, we will notify you without undue delay.
8. International data transfers
We host primarily in the EU (Hetzner) and the US (AWS). When we transfer personal data across regions, we rely on standard contractual clauses or other legally recognised transfer mechanisms.
9. Your rights
Depending on where you live, you may have the right to:
- Access the personal data we hold about you
- Correct inaccurate data
- Delete your data ("right to be forgotten")
- Export your data in a portable format
- Object to or restrict certain processing
- Withdraw consent
To exercise any of these rights, email unclecode@crawl4ai.com. We will respond within 30 days. We will not discriminate against you for exercising these rights.
10. Children
Our services are not directed to children under 16, and we do not knowingly collect personal information from them. If you believe a child has provided us personal information, contact us and we will delete it.
11. Changes to this Policy
We may update this Policy from time to time. Material changes will be announced via email and through an in-product notice at least 14 days before they take effect. The "Last updated" date at the top reflects the latest revision.
12. Contact
Questions, complaints, or requests:
Crawl4AI 38 Beach Road, #26-12, South Beach Tower, Singapore 189767 unclecode@crawl4ai.com
