Cli firecrawl-scrape
install
source · Clone the upstream repo
git clone https://github.com/firecrawl/cli
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/firecrawl/cli "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/firecrawl-scrape" ~/.claude/skills/firecrawl-cli-firecrawl-scrape && rm -rf "$T"
manifest:
skills/firecrawl-scrape/SKILL.mdsource content
firecrawl scrape
Scrape one or more URLs. Returns clean, LLM-optimized markdown. Multiple URLs are scraped concurrently.
When to use
- You have a specific URL and want its content
- The page is static or JS-rendered (SPA)
- Step 2 in the workflow escalation pattern: search → scrape → map → crawl → interact
Quick start
# 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?"
Options
| Option | Description |
|---|---|
| Output formats: markdown, html, rawHtml, links, screenshot, json |
| Ask a question about the page content (5 credits) |
| Include HTTP headers in output |
| Strip nav, footer, sidebar — main content only |
| Wait for JS rendering before scraping |
| Only include these HTML tags |
| Exclude these HTML tags |
| Output file path |
Tips
- Prefer plain scrape over
. Scrape to a file, then use--query
,grep
, or read the markdown directly — you can search and reason over the full content yourself. Usehead
only when you want a single targeted answer without saving the page (costs 5 extra credits).--query - Try scrape before interact. Scrape handles static pages and JS-rendered SPAs. Only escalate to
when you need interaction (clicks, form fills, pagination).interact - Multiple URLs are scraped concurrently — check
for your concurrency limit.firecrawl --status - Single format outputs raw content. Multiple formats (e.g.,
) output JSON.--format markdown,links - Always quote URLs — shell interprets
and?
as special characters.& - Naming convention:
.firecrawl/{site}-{path}.md
See also
- firecrawl-search — find pages when you don't have a URL
- firecrawl-interact — when scrape can't get the content, use
to click, fill forms, etc.interact - firecrawl-download — bulk download an entire site to local files