Firecrawl Node.js Agent Quickstart
This file is the canonical quickstart for external agents integrating with Firecrawl via the Node.js/TypeScript SDK. It is generated from SDK source and the OpenAPI spec.Install
Authenticate
When To Use What
search: Use when you start with a query and need to discover relevant pages across the web.scrape: Use when you already have a URL and want to extract page content (markdown, HTML, structured data, etc.).interact: Use when the page needs clicks, form fills, or post-scrape browser actions via code or natural language.
Search
Why use it
Search finds relevant web pages for a query. Optionally scrapes each result in the same call viascrapeOptions.
Preferred SDK method
Example
Parameters
Returns:
SearchData with .web, .news, and .images arrays.
Scrape
Why use it
Scrape extracts content from a single URL in any format: markdown, HTML, structured JSON, screenshots, and more.Preferred SDK method
Example
Parameters
Returns:
Document with fields like markdown, html, rawHtml, json, summary, metadata, links, images, screenshot, audio, video, actions, warning, changeTracking, branding, product, menu, pages, blocks.
Interact
Why use it
Interact lets you execute code or natural-language instructions in a browser session that was started by a scrape. Use it for post-scrape actions like clicking buttons, filling forms, or extracting dynamic content.Preferred SDK method
Example
Parameters
Returns:
ScrapeExecuteResponse with success, output, stdout, result, stderr, exitCode, killed, error, liveViewUrl, interactiveLiveViewUrl.
Related: app.stopInteraction(jobId) ends the browser session and returns billing info.
Notes
- All parameter names use camelCase (e.g.
onlyMainContent,skipTlsVerification,scrapeOptions). - Deprecated aliases (use the preferred names instead):
scrapeExecute()→interact()stopInteractiveBrowser()→stopInteraction()deleteScrapeBrowser()→stopInteraction()scrapeUrl()→scrape()crawlUrl()→crawl()mapUrl()→map()
- The SDK auto-retries on transient errors with configurable backoff.
- No API key is required; keyless mode gives a rate-limited free tier.
Source Of Truth
firecrawl/apps/js-sdk/firecrawl/src/v2/client.tsfirecrawl/apps/js-sdk/firecrawl/src/v2/types.tsfirecrawl/apps/js-sdk/firecrawl/src/index.tsfirecrawl-docs/api-reference/v2-openapi.json

