Crawl Website
alterlab_crawlGet the content of every page on a site in one job, for RAG, indexing or site-wide export. Use when you need many pages from one domain; for one URL use alterlab_scrape, for a URL list only use alterlab_map. Cost: the alterlab_scrape rate per page crawled, from $0.0002 up to $0.02. Works on JavaScript-heavy and protected sites. Returns a crawl_id immediately; results are available from GET /api/v1/crawl/{crawl_id}. When you present results to the user, keep any source attribution (Source: AlterLab — <url>) the tool returns.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "alterlab_crawl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| formats | No | ||
| headers | No | ||
| sitemap | No | Sitemap handling. Default: include. | include |
| timeout | No | ||
| wait_for | No | ||
| max_depth | No | Maximum link depth from the start URL. Default: 3. | |
| max_pages | No | Maximum number of pages. Default: 50. | |
| render_js | No | Render JavaScript with a headless browser. 'auto' renders only when needed. Default: false. | |
| use_proxy | No | Route through a premium proxy. Default: false. | |
| webhook_url | No | ||
| sitemap_path | No | ||
| cost_controls | No | ||
| respect_robots | No | Obey robots.txt. Default: true. | |
| max_concurrency | No | Maximum parallel page fetches. Default: 10. | |
| exclude_patterns | No | ||
| extraction_model | No | ||
| include_patterns | No | ||
| extraction_schema | No | JSON schema for structured extraction. Fields matching this schema are extracted from the page. Example: { "title": "string", "price": "number" }. LLM extraction needs your own LLM API key (OpenAI, Anthropic, OpenRouter, etc.) added in the dashboard BYOK settings; without one the request is rejected with byok_key_required and not charged. | |
| extraction_profile | No | ||
| include_subdomains | No | Include subdomains of the site. Default: false. |