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
{
"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
}
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.
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
React selects and date pickers ignore typed text
Real Playwright or Puppeteer input reaches them like a person's
A Cloudflare or Akamai check instead of the form
Zenrows' stealth gets through Cloudflare, Akamai and similar
Akamai or Imperva rejects fast datacenter submits
Zenrows' stealth makes submits look like a visitor's
A 200 with a validation message; the row looks done
Store the confirmation or error text with each row
5,000 rows due before a cut-off
Parallel sessions, one row each, status tracked per row
How to automate form filling with Zenrows
- Map every field by hand once: selectors, formats, answers that reveal more questions.
- Mark rows before you submit as
in_progress, so a retry never submits twice. - 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.
- 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()# 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"}'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# 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
- Fill multi-page, conditional or logged-in forms BrowserPlaywright or Puppeteer drive a cloud browser end to end
- Submit a short single-page form FetchPage actions in one request; a CSS selector reads the confirmation
- Have an assistant fill a form for review MCP ServerClaude 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
-
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_selectorand 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_progressbefore the click,submittedwith the confirmation once read,failedwith 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.