Cli firecrawl-search
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-search" ~/.claude/skills/firecrawl-cli-firecrawl-search && rm -rf "$T"
manifest:
skills/firecrawl-search/SKILL.mdsource content
firecrawl search
Web search with optional content scraping. Returns search results as JSON, optionally with full page content.
When to use
- You don't have a specific URL yet
- You need to find pages, answer questions, or discover sources
- First step in the workflow escalation pattern: search → scrape → map → crawl → interact
Quick start
# Basic search firecrawl search "your query" -o .firecrawl/result.json --json # Search and scrape full page content from results firecrawl search "your query" --scrape -o .firecrawl/scraped.json --json # News from the past day firecrawl search "your query" --sources news --tbs qdr:d -o .firecrawl/news.json --json
Options
| Option | Description |
|---|---|
| Max number of results |
| Source types to search |
| Filter by category |
| Time-based search filter |
| Location for search results |
| Country code for search |
| Also scrape full page content for each result |
| Formats when scraping (default: markdown) |
| Output file path |
| Output as JSON |
Tips
fetches full content — don't re-scrape URLs from search results. This saves credits and avoids redundant fetches.--scrape- Always write results to
with.firecrawl/
to avoid context window bloat.-o - Use
to extract URLs or titles:jqjq -r '.data.web[].url' .firecrawl/search.json - Naming convention:
or.firecrawl/search-{query}.json.firecrawl/search-{query}-scraped.json
See also
- firecrawl-scrape — scrape a specific URL
- firecrawl-map — discover URLs within a site
- firecrawl-crawl — bulk extract from a site