---
id: ssh2-firecrawl-map
name: "firecrawl-map"
url: https://skills.yangsir.net/skill/ssh2-firecrawl-map
author: firecrawl
domain: ai-data-management-analysis
tags: ["data-mapping", "web-structure-analysis", "firecrawl-api", "information-architecture", "content-organization"]
install_count: 43300
rating: 4.70 (108 reviews)
github: https://github.com/firecrawl/cli
---

# firecrawl-map

> 自动抓取并列出网站上的所有URL，支持可选的深度搜索功能，帮助用户全面了解网站结构和内容分布。

**Stats**: 43,300 installs · 4.7/5 (108 reviews)

## Before / After 对比

### 网站URL发现与分析效率对比：告别手动点击与简单爬虫的低效，拥抱智能全面扫描，提供网站结构视图，简化分析工作

## Readme

# firecrawl map

Discover URLs on a site. Use `--search` to find a specific page within a large site.

## When to use

- You need to find a specific subpage on a large site
- You want a list of all URLs on a site before scraping or crawling
- Step 3 in the [workflow escalation pattern](firecrawl-cli): search → scrape → **map** → crawl → browser

## Quick start

```bash
# Find a specific page on a large site
firecrawl map "<url>" --search "authentication" -o .firecrawl/filtered.txt

# Get all URLs
firecrawl map "<url>" --limit 500 --json -o .firecrawl/urls.json
```

## Options

| Option                            | Description                  |
| --------------------------------- | ---------------------------- |
| `--limit <n>`                     | Max number of URLs to return |
| `--search <query>`                | Filter URLs by search query  |
| `--sitemap <include\|skip\|only>` | Sitemap handling strategy    |
| `--include-subdomains`            | Include subdomain URLs       |
| `--json`                          | Output as JSON               |
| `-o, --output <path>`             | Output file path             |

## Tips

- **Map + scrape is a common pattern**: use `map --search` to find the right URL, then `scrape` it.
- Example: `map https://docs.example.com --search "auth"` → found `/docs/api/authentication` → `scrape` that URL.

## See also

- [firecrawl-scrape](../firecrawl-scrape/SKILL.md) — scrape the URLs you discover
- [firecrawl-crawl](../firecrawl-crawl/SKILL.md) — bulk extract instead of map + scrape
- [firecrawl-download](../firecrawl-download/SKILL.md) — download entire site (uses map internally)


---
*Source: https://skills.yangsir.net/skill/ssh2-firecrawl-map*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh2-firecrawl-map/markdown*