---
title: "Automated form filling"
description: "Automated form filling from a CSV or database: quote forms, applications and portal data entry, submitted in a cloud browser with confirmations captured."
canonical: https://www.zenrows.com/use-cases/automated-form-filling
updated: 2026-11-02
---

# 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.

## Sample output: one submitted row

```json
{
  "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.

| Job | What gets entered | Typical 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 breaks | What it looks like | How Zenrows handles it |
|---|---|---|
| Conditional fields | A field appears after an earlier answer; the script types into the wrong step | A real browser runs the page's JavaScript; your waits see each field |
| Custom widgets | React selects and date pickers ignore typed text | Real Playwright or Puppeteer input reaches them like a person's |
| Challenge page before the form | A Cloudflare or Akamai check instead of the form | Zenrows' stealth gets through Cloudflare, Akamai and similar |
| Bot checks on the submit endpoint | Akamai or Imperva rejects fast datacenter submits | Zenrows' stealth makes submits look like a visitor's |
| Submissions that fail quietly | A 200 with a validation message; the row looks done | Store the confirmation or error text with each row |
| Deadlines on volume | 5,000 rows due before a cut-off | Parallel sessions, one row each, status tracked per row |

## 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.

```python Python
# 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()
```

```bash cURL
# A single-page form, filled and submitted in one Fetch request (page actions need a full browser render)
curl -G "https://api.zenrows.com/v1/" \
  --data-urlencode "apikey=YOUR_ZENROWS_API_KEY" \
  --data-urlencode "url=FORM_URL" \
  --data-urlencode "js_render=true" \
  --data-urlencode "premium_proxy=true" \
  --data-urlencode 'js_instructions=[{"wait_for":"#request-form"},{"fill":["#company","Example Haulage LLC"]},{"fill":["#email","ops@example.com"]},{"click":"#submit"},{"wait_for":".confirmation"}]' \
  --data-urlencode 'css_extractor={"confirmation":".confirmation"}'
```

```bash CLI
npx -y @zenrows/cli init
# List the form's field names before you map them
zenrows extract FORM_URL --css '{"fields":"form input @name","selects":"form select @name"}'
zenrows fetch FORM_URL --screenshot --out form.png
# Give your agent the browser tools for the fill and submit
zenrows mcp config --client claude-code
```

```text Claude Code (MCP)
# Connect once
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp

# Then ask:
Use the Zenrows browser to open the supplier registration form at FORM_URL, fill it with the company details in supplier.json, stop before the final submit, and show me a screenshot so I can approve it.
```

## Which Zenrows product fits

| If you need to | Use | Why |
|---|---|---|
| Fill multi-page, conditional or logged-in forms | [Browser](/products/browser) | Playwright or Puppeteer drive a cloud browser end to end |
| Submit a short single-page form | [Fetch](/products/fetch) | Page actions in one request; a CSS selector reads the confirmation |
| Have an assistant fill a form for review | [MCP Server](/mcp) | Claude and other MCP clients fill via Zenrows browser tools; a person approves the submit |

## What success looks like

| Measure | What good looks like | How 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

### What is automated form filling?

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.

### How do I automate filling web forms from a spreadsheet?

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.

### Can it handle multi-page and conditional forms?

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.

### How does form automation deal with bot protection and CAPTCHA challenges?

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.

### Should I use Fetch or Browser for form filling?

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.

### How do I stop a bulk form submission from sending duplicates?

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.

### Is automated form filling allowed?

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.

## Related use cases

- [Browser automation](https://www.zenrows.com/use-cases/browser-automation.md): Logins, portal lookups and report downloads run in a cloud browser your Playwright or Puppeteer code drives.
- [AI agent browser](https://www.zenrows.com/use-cases/ai-agent-browser.md): A cloud browser your agent drives over MCP or CDP to log in, click and fill forms.
- [Public records API](https://www.zenrows.com/use-cases/public-records-api.md): Permits, violations, licenses and registry filings from public record portals, returned as JSON on demand.
- [Insurance data scraping](https://www.zenrows.com/use-cases/insurance-data.md): Competitor quotes, policy terms, rate filings and property risk data, captured per test profile.
- [Court records API](https://www.zenrows.com/use-cases/court-records-api.md): Dockets, case status, hearing dates and attorney records from state court and bar portals, kept current.

Start free: https://app.zenrows.com/register. Docs: https://docs.zenrows.com

## Structured data



<script type="application/ld+json">
{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://www.zenrows.com/use-cases/automated-form-filling#webpage","url":"https://www.zenrows.com/use-cases/automated-form-filling","name":"Automated form filling","description":"Automated form filling from a CSV or database: quote forms, applications and portal data entry, submitted in a cloud browser with confirmations captured.","isPartOf":{"@id":"https://www.zenrows.com/#website"},"inLanguage":"en","datePublished":"2026-11-02","dateModified":"2026-11-02","about":{"@type":"Thing","name":"automated form filling"},"keywords":"automated form filling, form filling automation, web form automation, automate web forms, data entry automation, bulk form submission, auto fill web forms","publisher":{"@type":"Organization","name":"Zenrows","url":"https://www.zenrows.com/"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.zenrows.com/"},{"@type":"ListItem","position":2,"name":"Use cases","item":"https://www.zenrows.com/use-cases"},{"@type":"ListItem","position":3,"name":"Automated form filling","item":"https://www.zenrows.com/use-cases/automated-form-filling"}]},{"@type":"FAQPage","@id":"https://www.zenrows.com/use-cases/automated-form-filling#faq","mainEntity":[{"@type":"Question","name":"What is automated form filling?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How do I automate filling web forms from a spreadsheet?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Can it handle multi-page and conditional forms?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How does form automation deal with bot protection and CAPTCHA challenges?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Should I use Fetch or Browser for form filling?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How do I stop a bulk form submission from sending duplicates?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Is automated form filling allowed?","acceptedAnswer":{"@type":"Answer","text":"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."}}]}]}
</script>
