Crawl: the most reliable web crawler APISee what’s new
Zenrows
Talk to sales Start free

Automated form filling

Automated form filling is software that types your data into web forms and submits them, one record or thousands, from a spreadsheet, database or API. Zenrows runs each form in a cloud browser with Zenrows' stealth, gets past the bot protection in front of it, and returns the confirmation number to reconcile every row.

Updated

Sample output: one submitted row
{
  "row_id": "quote-2026-10-0187",
  "form": "https://quotes.example-insurer.com/commercial-auto",
  "submitted_at": "2026-10-17T10:42:17Z",
  "fields_filled": {
    "business_name": "Example Haulage LLC",
    "state": "TX",
    "vehicle_count": 12,
    "vehicle_type": "box_truck",
    "years_in_business": 7,
    "coverage_start": "2026-11-01"
  },
  "pages_completed": 3,
  "validation_errors": [],
  "result": {
    "status": "submitted",
    "confirmation_number": "QX-55821904",
    "message": "Thank you. A quote will be emailed within one business day."
  },
  "session_seconds": 74
}
Illustrative. Your script writes one per row, with the confirmation read after submit as proof.

Forms teams fill automatically

One form, many records; or one record, many forms.

Both are common in operations, sales and compliance.

JobWhat gets enteredTypical forms
Bulk data entry CSV or database records into apps with no import Vendor portals, government systems, internal tools without an API
Quote requests One risk or shipment profile sent to many quote forms Insurer, freight and supplier RFQ forms
Applications and registrations Multi-page, conditional questions and dates Supplier onboarding, permits and licenses, program enrollments
Listing entry Product or property details, field by field Marketplace seller and property portal forms
Account updates Address, contact or banking changes across portals Your vendor, carrier and payer portals
Form QA Test entries per country: validation, thank-you pages Your landing, checkout and signup forms

Why form automation scripts fail

Forms are built to stop bad input and abuse: a scripted submit meets more checks than a read.

What it looks like

A field appears after an earlier answer; the script types into the wrong step

How Zenrows handles it

A real browser runs the page's JavaScript; your waits see each field

How to automate form filling with Zenrows

  1. Map every field by hand once: selectors, formats, answers that reveal more questions.
  2. Mark rows before you submit as in_progress, so a retry never submits twice.
  3. Fill and submit in a cloud browser: Playwright or Puppeteer over Zenrows Browser for multi-page forms, Fetch page actions (fill, click, wait) for one page.
  4. Capture the outcome: confirmation number or validation message, with session time.
# pip install playwright
import csv
from playwright.sync_api import sync_playwright

with sync_playwright() as p, open("quotes.csv") as f:
    browser = p.chromium.connect_over_cdp(
        "wss://browser.zenrows.com?apikey=YOUR_ZENROWS_API_KEY"
    )
    for row in csv.DictReader(f):
        page = browser.new_page()
        page.goto(QUOTE_FORM_URL)
        page.fill("#business-name", row["business_name"])
        page.select_option("#state", row["state"])
        page.fill("#vehicle-count", row["vehicle_count"])
        page.click("button.next")
        page.wait_for_selector("#coverage-start")  # appears on step two
        page.fill("#coverage-start", row["coverage_start"])
        page.click("button[type=submit]")
        page.wait_for_selector(".confirmation, .form-error")
        print(row["row_id"], page.inner_text(".confirmation, .form-error"))
        page.close()
    browser.close()

What success looks like

MeasureWhat good looks likeHow to check it
Confirmed submissions A stored confirmation per submitted row Rows with status: submitted and a confirmation
Validation error rate Errors trace to source data and fall as you clean it Error messages grouped by field
Duplicate submissions No record submitted twice Count confirmation numbers per row_id
Time per form Steady session time per row Average session_seconds per form, per day
Backlog cleared Done before the deadline Rows remaining at each checkpoint
Retries per row First-try submits; every retry explained Attempts per row_id, retries grouped by error

Automated form filling FAQ

  • A script or agent filling and submitting web forms with values from a CSV, database or API, handling each step and check, and recording whether each submission succeeded.

  • Per row: open the form in a browser session, fill from the columns, submit, save the confirmation back (the Python example, with Playwright over Zenrows Browser). Mark rows first so reruns skip them.

  • Yes. In a real browser the form's JavaScript shows and hides questions as answers change; your script waits for each field with wait_for_selector and clicks through the pages in order.

  • Most CAPTCHA challenges fire on script-like visitors: datacenter IP, headless fingerprint, no rendering. Zenrows' stealth gets sessions through Cloudflare, Akamai and DataDome checks like a regular visitor. For a deliberate human check, keep a person on that step, as in the MCP example.

  • Fetch with page actions for a one-page form, no login, confirmation text only. Browser for several pages, logins, file uploads, custom widgets, or full Playwright or Puppeteer control.

  • Explicit row states: in_progress before the click, submitted with the confirmation once read, failed with the error otherwise. Reruns skip submitted rows; rows stuck in progress go to a person, since they may have gone through unconfirmed.

  • It depends. Your own accounts and company data are routine; mass submissions to forms you have no business with can break site terms and anti-spam laws. Check terms; ask legal when personal data is involved.

Turn the live web into usable data.