Prerequisites#
- AWS account with Lambda access
- A Firecrawl API key — get one free
Setup#
Search the web#
Create index.mjs with a search handler:
Scrape a page#
Add a scrape action to the same handler:
Interact with a page#
Add an interact action to control a live browser session — click buttons, fill forms, and extract dynamic content:
Deploy#
Package and deploy with the AWS CLI:
Note
Set the Lambda timeout to at least 30 seconds. Scraping dynamic pages and interact sessions can take longer than the default 3-second timeout.

