Skip to main content

Firecrawl Tools

Firecrawl provides powerful web scraping, search, crawling, and data extraction capabilities for AI applications.

Installation

Environment Variables

Get your API key from Firecrawl.

Available Tools

Quick Start

1

Simple Usage

2

With Configuration

Adjust agent instructions, tool options, and provider settings for production — see the Configuration section below.

Scrape Tool

Scrape a single URL and get clean markdown content.

Crawl Tool

Crawl multiple pages starting from a URL.

Using with AI SDK Directly

Batch Scraping

Scrape multiple URLs efficiently.

Extract Structured Data

Extract specific data from web pages.

Response Format

Scrape Result

Crawl Result

Advanced Example

Error Handling

Best Practices

  1. Use appropriate tool - Scrape for single pages, crawl for multiple
  2. Set limits - Always set crawl limits to avoid excessive API usage
  3. Filter content - Use includeTags/excludeTags to get relevant content
  4. Handle async jobs - Use pollTool for crawl and batch operations
  5. Cache results - Store scraped content to avoid repeated requests
  • Tavily - Web search and extraction
  • Exa - Semantic web search
  • Parallel - Token-efficient web search