firecrawl-py v4.34.0 (firecrawl/apps/python-sdk) and the v2 OpenAPI spec. Method names, parameters, and types match the v2 client in firecrawl/v2/client.py.
Install
Authenticate
When To Use What
search: use when you start with a query and need discovery.scrape: use when you already have a URL and want page content.interact: use when the page needs clicks, forms, or post-scrape browser actions.
Search
Why use it
Use search to discover relevant pages from a query, then pick URLs to scrape or interact with. You can constrain results to a site withsite:, for example site:docs.firecrawl.dev crawl webhooks.
Preferred SDK method
client.search(query, **options) → SearchData
Example
Parameters
Return value:
SearchData with optional lists web, news, images, developer. Do not access result.data — it raises AttributeError directing you to use result.web, result.news, etc.
Scrape
Why use it
Use scrape when you already have a URL and want structured content in one or more formats.Preferred SDK method
client.scrape(url, **options) → Document
Example
Parameters
Interact
Why use it
Use interact when a page requires browser actions or code execution after a scrape starts.Preferred SDK method
client.interact(job_id, code=None, *, prompt=None, language="node", timeout=None)
prompt is keyword-only. At least one of code or prompt must be non-empty.
Example
Parameters
Stop session
client.stop_interaction(job_id) ends the scrape-bound browser session. Returns BrowserDeleteResponse with success, session_duration_ms, credits_billed.
Notes
- Deprecated aliases:
scrape_execute→interact;stop_interactive_browseranddelete_scrape_browser→stop_interaction;scrape_url→scrape. - The top-level
Firecrawlclient exposes v2 methods directly; v1 remains underclient.v1. FirecrawlAppis an alias forFirecrawl;AsyncFirecrawlAppis an alias forAsyncFirecrawl.- Pydantic models handle camelCase conversion for the API wire format; always use snake_case in Python.
Source Of Truth
firecrawl/apps/python-sdk/pyproject.tomlfirecrawl/apps/python-sdk/firecrawl/__init__.pyfirecrawl/apps/python-sdk/firecrawl/v2/client.pyfirecrawl/apps/python-sdk/firecrawl/v2/types.pyfirecrawl-docs/api-reference/v2-openapi.json

