Skip to main content

SvelteKit

Use Firecrawl with SvelteKit to scrape, search, and interact with web data in your Svelte application.
1 min read

Prerequisites#

Install the SDK#

Add your API key to .env:

Search the web#

Create a form action in src/routes/search/+page.server.ts:

Wire it up in src/routes/search/+page.svelte:

Scrape a page#

Fetch data in a load function at src/routes/scrape/+page.server.ts:

Display it in src/routes/scrape/+page.svelte:

Interact with a page#

Create a server endpoint at src/routes/api/interact/+server.ts:

Next steps#