Skip to main content

NestJS

Use Firecrawl with NestJS to build structured web scraping and search services.
1 min read

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#