Skip to main content

Basic Example

Fill and submit a contact form:
Output:

Multi-Step Form

Handle multi-step forms in a single goal:

Tips

  • Use stealth mode for login/signup forms
  • Be explicit about field values in your goal
  • Describe buttons by their text (“click ‘Submit’”)
  • Handle multi-step forms in one goal

Try It

1

Save the code

Save any example above as form.ts
2

Set your API key

export TINYFISH_API_KEY="your_api_key"
3

Run it

npx tsx form.ts

Web Scraping

Extract data from pages

Run SSE API

Complete API docs