Skip to main content
The Agent feature is the easiest way to get data from the web. Simply describe what you need in natural language, and the AI agent will search, navigate, and extract the information for you. No URLs required.

When to Use Agent

Use Agent when you need to:
  • Gather information without knowing specific URLs
  • Research topics autonomously
  • Extract data from multiple sources
  • Get structured data based on a description
  • Automate competitive research
  • Find and extract information that requires navigation
Agent is the evolution of the /extract endpoint: faster, more reliable, and doesn’t require you to know the URLs upfront.

Basic Usage

Response

Agent with Structured Output

Define a schema to get structured, consistent data:
Output:

Agent with URLs (Optional)

Focus the agent on specific pages to improve accuracy and speed:
Providing URLs helps the agent focus on specific sources, reducing search time and improving accuracy.

Model Selection

Choose between two models based on your needs:

When to Use Pro

1

Comparing data across multiple websites

Pro model excels at finding and synthesizing information from multiple sources.
2

Complex navigation or authentication

Use Pro for sites that require multi-step navigation or complex interactions.
3

Research tasks with multiple paths

Pro model can explore different approaches to find the best information.
4

Critical data extraction

When accuracy is paramount, Pro provides more reliable results.

Use Cases

Competitive Research

Team Information Gathering

Product Features Comparison

Industry Research

Using Firecrawl with AI Agents

Install the Firecrawl skill to let AI coding agents like Claude Code, Codex, and OpenCode use Firecrawl automatically:
Restart your agent after installing. The agent will automatically have access to Firecrawl’s capabilities.
See the Skill + CLI documentation for full setup instructions.

Best Practices

  • Write clear, specific prompts for better results
  • Use structured schemas for consistent, parseable output
  • Provide URLs when you know relevant sources to improve speed and accuracy
  • Start with spark-1-mini and upgrade to spark-1-pro only when needed
  • Use Pro for complex multi-site comparisons and critical extractions
  • Request only the data you need to minimize costs
  • Include field descriptions in your schema for more accurate extraction

Agent vs Other Features

Next Steps

  • Learn about Search to find and scrape search results
  • Use Scrape for extracting from known URLs
  • Try Crawl for comprehensive site extraction