Skip to main content

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

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