Crawly
Documentation menu
Core API

Interact

Open a managed browser session and run controlled page actions. Hobby plan or higher.

Start

POST /api/v1/interact
{"url":"https://example.com"}

Run actions

Supported actions include content, click, type, press, wait, navigate, and screenshot.

screenshot accepts format (png or jpeg), quality (1-100, jpeg only) and fullPage. It returns the whole image as base64 with its mime type, up to about 3 MB per screenshot and 6 MB per request; a larger image returns truncated: true and an error instead of partial bytes. Use jpeg for real pages: a PNG of a homepage is often 200-700 KB.

POST /api/v1/interact/:id
{"actions":[{"type":"content"},{"type":"click","selector":"button"}]}

Close

DELETE /api/v1/interact/:id
Note: Starting costs 5 credits and each action costs 1 credit. Sessions are node-local and auto-close after inactivity.