Scrape one or more URLs. Returns clean, LLM-optimized markdown. Multiple URLs are scraped concurrently.
# Basic markdown extraction
firecrawl scrape "<url>" -o .firecrawl/page.md
# Main content only, no nav/footer
firecrawl scrape "<url>" --only-main-content -o .firecrawl/page.md
# Wait for JS to render, then scrape
firecrawl scrape "<url>" --wait-for 3000 -o .firecrawl/page.md
# Multiple URLs (each saved to .firecrawl/)
firecrawl scrape https://example.com https://example.com/blog https://example.com/docs
# Get markdown and links together
firecrawl scrape "<url>" --format markdown,links -o .firecrawl/page.json
# Ask a question about the page
firecrawl scrape "https://example.com/pricing" --query "What is the enterprise plan price?"
| Option | Description |
|---|---|
| ------------------------ | ---------------------------------------------------------------- |
-f, --format | Output formats: markdown, html, rawHtml, links, screenshot, json |
-Q, --query | Ask a question about the page content (5 credits) |
-H | Include HTTP headers in output |
--only-main-content | Strip nav, footer, sidebar — main content only |
--wait-for | Wait for JS rendering before scraping |
--include-tags | Only include these HTML tags |
--exclude-tags | Exclude these HTML tags |
-o, --output | Output file path |
--query. Scrape to a file, then use grep, head, or read the markdown directly — you can search and reason over the full content yourself. Use --query only when you want a single targeted answer without saving the page (costs 5 extra credits).interact when you need interaction (clicks, form fills, pagination).firecrawl --status for your concurrency limit.--format markdown,links) output JSON.? and & as special characters..firecrawl/{site}-{path}.mdinteract to click, fill forms, etc.共 1 个版本