Prerequisites
- Astro project with SSR enabled (
output: "server"or"hybrid") - A Firecrawl API key — get one free
Install the SDK
.env:
Search the web
Createsrc/pages/api/search.ts:
src/pages/search.astro):
Scrape a page
Createsrc/pages/api/scrape.ts:
src/pages/scrape.astro):
Interact with a page
Createsrc/pages/api/interact.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

