firecrawl-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesefirecrawl search
firecrawl search
Web search with optional content scraping. Returns search results as JSON, optionally with full page content.
具备可选内容抓取功能的网页搜索工具。返回JSON格式的搜索结果,可选择包含全页面内容。
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 → browser
- 你还没有具体的URL
- 你需要查找页面、解答问题或发掘信息来源
- 是工作流升级模式的第一步:搜索 → 抓取 → 映射 → 爬取 → 浏览器
Quick start
快速开始
bash
undefinedbash
undefinedBasic search
基础搜索
firecrawl search "your query" -o .firecrawl/result.json --json
firecrawl search "你的查询内容" -o .firecrawl/result.json --json
Search and scrape full page content from results
搜索并抓取结果中的全页面内容
firecrawl search "your query" --scrape -o .firecrawl/scraped.json --json
firecrawl search "你的查询内容" --scrape -o .firecrawl/scraped.json --json
News from the past day
获取过去24小时的新闻
firecrawl search "your query" --sources news --tbs qdr:d -o .firecrawl/news.json --json
undefinedfirecrawl search "你的查询内容" --sources news --tbs qdr:d -o .firecrawl/news.json --json
undefinedOptions
选项
| 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 |
| 选项 | 说明 |
|---|---|
| 最大结果数量 |
| 要搜索的来源类型 |
| 按类别筛选 |
| 基于时间的搜索筛选条件 |
| 搜索结果的地理位置 |
| 搜索的国家代码 |
| 同时抓取每个结果的全页面内容 |
| 抓取时的格式(默认:markdown) |
| 输出文件路径 |
| 以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
- 会获取全内容——请勿重复抓取搜索结果中的URL。这样可以节省积分并避免冗余请求。
--scrape - 始终使用 参数将结果写入
-o目录,以避免上下文窗口过载。.firecrawl/ - 使用 提取URL或标题:
jqjq -r '.data.web[].url' .firecrawl/search.json - 命名规范:或
.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
- firecrawl-scrape — 抓取特定URL
- firecrawl-map — 发掘站点内的URL
- firecrawl-crawl — 批量提取站点内容