Skip to main content

Prerequisites

  • NestJS project (@nestjs/cli)
  • A Firecrawl API key — get one free

Install the SDK

Add your API key to .env:

Create a Firecrawl service

Create src/firecrawl/firecrawl.service.ts:

Create a controller

Create src/firecrawl/firecrawl.controller.ts:

Register the module

Create src/firecrawl/firecrawl.module.ts:
Import FirecrawlModule in your AppModule.

Test it

Next steps

Scrape docs

All scrape options including formats, actions, and proxies

Search docs

Search the web and get full page content

Interact docs

Click, fill forms, and extract dynamic content

Node SDK reference

Full SDK reference with crawl, map, batch scrape, and more