Firecrawl Python Agent Quickstart
This is the canonical quickstart for external agents integrating with Firecrawl using the official Python SDK. Generated from SDK source and OpenAPI spec.Install
Authenticate
An async client is also available:
from firecrawl import AsyncFirecrawl.
When To Use What
search— Use when you start with a query and need to discover relevant pages. Returns search results grouped by source type, optionally with scraped content.scrape— Use when you already have a URL and want its content. Returns markdown, HTML, structured data, screenshots, or other formats.interact— Use when the page needs post-scrape browser actions like clicking, filling forms, or executing code in the browser sandbox.
Search
Why use it
Search the web and optionally scrape each result in one call. Start here when you have a question or topic but not a specific URL.Preferred SDK method
Example
Parameters
All parameters are keyword-only and optional unless noted.Scrape
Why use it
Fetch and extract content from a single URL. Use when you have a specific page to read.Preferred SDK method
Example
Parameters
All parameters are keyword-only and optional unless noted.Interact
Why use it
Execute code or natural-language prompts in the browser sandbox associated with a scrape job. Use after a scrape to click buttons, fill forms, navigate, or extract additional data.Preferred SDK method
Example
Parameters
Related method
Notes
- Naming style: All parameters use snake_case.
- Deprecated aliases:
scrape_url()→ usescrape()instead.scrape_execute()→ useinteract()instead.stop_interactive_browser()anddelete_scrape_browser()→ usestop_interaction()instead.FirecrawlApp→ useFirecrawlinstead (alias still works).
- Async client: Use
AsyncFirecrawl(aliased asAsyncFirecrawlApp) for async/await usage with the same method signatures. - ScrapeOptions model: The
ScrapeOptionsPydantic model also includesmin_ageandredact_piifields which are available when passingscrape_optionstosearch()but are not direct kwargs onscrape().
Source Of Truth
firecrawl/apps/python-sdk/firecrawl/client.pyfirecrawl/apps/python-sdk/firecrawl/v2/client.pyfirecrawl/apps/python-sdk/firecrawl/v2/types.pyfirecrawl-docs/api-reference/v2-openapi.json

