HomeIntegrationsCrewAI
Webcrawl + CrewAI
Call /v1/scrape and /v1/search from CrewAI tools over REST.
No official CrewAI package
Call the hosted REST API from a CrewAI tool you maintain. Python crews typically use requests or httpx.
Python scrape helper
import os
import requests
def webcrawl_scrape(url: str) -> str:
res = requests.post(
"https://webcrawl.app/v1/scrape",
headers={
"Authorization": f"Bearer {os.environ['WEBCRAWL_API_KEY']}",
"Content-Type": "application/json",
},
json={"url": url},
timeout=60,
)
res.raise_for_status()
data = res.json()
return data.get("markdown") or data.get("data", {}).get("markdown") or str(data)
# Wire webcrawl_scrape into a CrewAI tool/action you maintain.Auth
Authorization: Bearer YOUR_API_KEY
# or
X-API-Key: YOUR_API_KEYSuggested crew tools
- Search →
POST /v1/search - Scrape →
POST /v1/scrape - Map →
POST /v1/map
Related agent frameworks: LangChain, OpenAI Agents SDK.
FAQ
Is there an official CrewAI integration?
No. CrewAI tools should call https://webcrawl.app/v1/* with your API key, or shell out to the webcrawl CLI when that fits your runtime.
Python or TypeScript?
CrewAI is commonly Python. Use requests or httpx against the REST API. TypeScript agents can use @webcrawl/client the same way.
Which tools should a crew expose?
A search tool (POST /v1/search), a scrape tool (POST /v1/scrape), and optionally map (POST /v1/map) for site discovery.