Public records API
A public records API retrieves records published on public record portals: building permits, code violations, business filings, professional licenses and property assessments. Zenrows fetches those record portals, including ones behind Akamai or Imperva, runs their search forms in a Browser session when needed, and returns each record as JSON for your application to store and query.
Updated
{
"jurisdiction": "New York, NY",
"record_type": "building_permit",
"permit_number": "B00123456-I1",
"job_type": "Alteration type 2",
"status": "issued",
"address": "350 Example Ave, Brooklyn, NY 11215",
"block_lot": "01234 / 0056",
"filed_date": "2026-08-14",
"issued_date": "2026-09-30",
"expiration_date": "2027-09-30",
"work_description": "Interior renovation, new partitions, plumbing",
"estimated_cost": 185000,
"applicant": { "role": "Registered architect", "license_type": "RA" },
"open_violations": [
{ "id": "V-0921-26", "issued": "2026-09-21", "type": "Work without permit", "status": "resolved" }
],
"record_url": "https://records.example.com/permit/B00123456",
"fetched_at": "2026-10-17T06:00:12Z"
}
record_url and fetched_at on every record let a reviewer trace each field to its source page.What public records teams collect
Records sit in thousands of separate record systems, few with an API: pick one record type and work through jurisdictions.
Court dockets and attorney records are similar, with longer forms.
| Job | Data you collect | Typical sources |
|---|---|---|
| Permit tracking | Number, job type, status, filing and issue dates, description | Permit search portals and open data feeds |
| Violation and complaint alerts | Violation ID, issue date, penalty, hearing date, 311 status | Code enforcement and 311 record portals |
| Business entity lookups | Legal name, number, status, registered agent, officers, filings | Business registries and corporate filing search pages |
| License verification | Number, holder, status, expiry, discipline | Contractor, nursing, real estate and insurance license lookups |
| Property and tax records | Owner, parcel ID, assessed value, sale history, tax status | Assessor, recorder and tax record search pages |
| Unclaimed property searches | Holder, owner name match, amount band, claim status | MissingMoney.com and unclaimed property search pages |
| Due diligence reports | Registrations, liens, insolvency notices, ownership links | Company registries, UCC filing searches, official gazettes |
Why public records portals block automated lookups
Records portals assume one visitor, one address, a person at a keyboard.
Automated lookups hit protections built on that.
A 403 or endless challenge after a few lookups
Zenrows' stealth gets through Akamai, Imperva and similar, with retries
Turnstile or reCAPTCHA before the search
Adaptive Stealth Mode escalates to rendering and stealth to pass it
Pick a borough, type a house number, submit, cookies carried
Browser runs the form in Playwright or Puppeteer, one session
Nested tables, no classes or IDs, labels in value cells
Extract returns JSON, no selectors to maintain
Field names differ by county; vendors change
Extract maps each page to JSON: normalize once
A weekly sweep misses Tuesday's stop-work order
Batch re-checks your record list on your schedule
How to build a public records API
- Check for an open data feed first; many cities publish permits and complaints. Scrape only the gaps.
- Fetch records that have their own URL with Adaptive Stealth Mode, using CSS selectors or Extract.
- Drive search forms with Browser: Playwright fills and submits, you read the results.
- Re-check on a schedule with Batch, alerting users when a status, date or penalty changes.
# Search a permit portal by address with Playwright over Zenrows Browser
# pip install playwright
from playwright.sync_api import sync_playwright
WS = "wss://browser.zenrows.com?apikey=YOUR_ZENROWS_API_KEY"
with sync_playwright() as p:
browser = p.chromium.connect_over_cdp(WS)
page = browser.new_page()
page.goto("SEARCH_URL") # the portal's property search form
# Example selectors: match them to the portal's form
page.select_option("#borough", "3")
page.fill("#house-number", "350")
page.fill("#street", "Example Ave")
page.click("button[type=submit]")
page.wait_for_selector("table.results")
rows = page.locator("table.results tr").all_inner_texts()
print(rows)
browser.close()curl -G "https://api.zenrows.com/v1/" \
--data-urlencode "apikey=YOUR_ZENROWS_API_KEY" \
--data-urlencode "url=RECORD_URL" \
--data-urlencode "mode=auto" \
--data-urlencode 'css_extractor={"permit":"td.permit-no","status":"td.status","filed":"td.filed","work":"td.work-desc"}'npx -y @zenrows/cli init
zenrows extract RECORD_URL --autoparse
zenrows extract RECORD_URL --css '{"permit":"td.permit-no","status":"td.status","filed":"td.filed"}'# Connect once
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
# Then ask:
Use Zenrows to open the permit search at SEARCH_URL, look up 350 Example Ave in Brooklyn, and return each permit's number, job type, status, filed date and issued date as JSON with the record URL.Which Zenrows product fits
- Look up a record by its URL FetchOne Adaptive Stealth Mode request, even behind Akamai or Imperva
- Read records from differently built county pages ExtractJSON from each page, no per-site selectors
- Search by name, address or parcel BrowserPlaywright or Puppeteer in a real browser
- Re-check thousands of permits or licenses nightly BatchOne job, results by webhook or download
What success looks like
| Measure | What good looks like | How to check it |
|---|---|---|
| Lookup completion | A parsed record or confirmed no-match, never a blank | Weekly failure review per jurisdiction |
| Time to change | Changes reach users within one poll | Source posted date against first stored time |
| Jurisdiction coverage | Every committed jurisdiction returns records | Parsed records per jurisdiction against your list |
| Traceability | Source URL and fetch time on every field | Spot-check a sample against the live page |
| Retries per lookup | Flat as jurisdictions grow | Retries over completed lookups, per jurisdiction |
Public records API FAQ
-
No. Records stay with whoever publishes them, permit offices, business registries, assessors and licensing boards, and most offer only a search page. Zenrows puts one API in front: send a record URL or drive the form, get JSON, keep the records yourself.
-
Live lookups: each record is as current as the source and carries its URL. For history, store each response with its fetch time and compare runs.
-
Start with the city's open data portal; many large US cities publish filings there. Otherwise fetch the permit portal's record pages, or run its address or BIN search in a Browser session and save the record URLs.
-
Zenrows fetches the court, license and registry pages; your service builds the report. In the US, reports for employment, tenancy, credit or insurance fall under the Fair Credit Reporting Act, with accuracy and dispute duties. Ask your legal team first.
-
They are published to be read, and commonly collected in compliance, due diligence and construction. Many hold personal data, so privacy law and portal terms apply. Collect only what you need; check with your legal team.
-
Most business registries give each entity its own page. Search once, save the URLs, fetch them directly. Extract returns legal name, status, registered agent, officers and filings as JSON across states.
-
Yes. Permit systems, registries and unclaimed property sites often use Akamai, Imperva or Turnstile; Adaptive Stealth Mode and Browser get through with Zenrows' stealth and retries.
-
Store record URLs after the first lookup and resubmit to Batch: daily for open permits and violations, monthly for assessments and licenses. Diff runs for status changes, penalties and expirations.