Prerequisites
- SvelteKit project
- A Firecrawl API key — get one free
Install the SDK
.env:
Search the web
Create a form action insrc/routes/search/+page.server.ts:
src/routes/search/+page.svelte:
Scrape a page
Fetch data in a load function atsrc/routes/scrape/+page.server.ts:
src/routes/scrape/+page.svelte:
Interact with a page
Create a server endpoint atsrc/routes/api/interact/+server.ts:
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

