---
title: "Public records API"
description: "A public records API for building permits, code violations, business registries, license lookups and property records from public record portals."
canonical: https://www.zenrows.com/use-cases/public-records-api
updated: 2026-10-18
---

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

## Sample output: one building permit

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

Illustrative. `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.

| What breaks | What it looks like | How Zenrows handles it |
|---|---|---|
| Bot protection on the portal | A 403 or endless challenge after a few lookups | Zenrows' stealth gets through Akamai, Imperva and similar, with retries |
| Challenge pages before the portal | Turnstile or reCAPTCHA before the search | Adaptive Stealth Mode escalates to rendering and stealth to pass it |
| Multi-step search forms | Pick a borough, type a house number, submit, cookies carried | Browser runs the form in Playwright or Puppeteer, one session |
| Legacy HTML | Nested tables, no classes or IDs, labels in value cells | Extract returns JSON, no selectors to maintain |
| One system per jurisdiction | Field names differ by county; vendors change | Extract maps each page to JSON: normalize once |
| Status changes overnight | 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

1. **Check for an open data feed first**; many cities publish permits and complaints. Scrape only the gaps.
2. **Fetch records that have their own URL** with Adaptive Stealth Mode, using CSS selectors or Extract.
3. **Drive search forms with Browser**: Playwright fills and submits, you read the results.
4. **Re-check on a schedule** with Batch, alerting users when a status, date or penalty changes.

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

```bash cURL
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"}'
```

```bash CLI
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"}'
```

```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 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

| If you need to | Use | Why |
|---|---|---|
| Look up a record by its URL | [Fetch](/products/fetch) | One Adaptive Stealth Mode request, even behind Akamai or Imperva |
| Read records from differently built county pages | [Extract](/products/extract) | JSON from each page, no per-site selectors |
| Search by name, address or parcel | [Browser](/products/browser) | Playwright or Puppeteer in a real browser |
| Re-check thousands of permits or licenses nightly | [Batch](/products/batch) | One 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

### Is there one API for all public records?

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.

### Do I get a records database or live lookups?

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.

### How do I get building permit data?

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.

### Can I use this as a background check API?

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.

### Is it legal to scrape public records?

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.

### How do I get business registry data?

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.

### Can Zenrows reach portals behind Akamai or Imperva?

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.

### How do I keep property and license records current?

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.

## Related use cases

- [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.
- [Lead enrichment](https://www.zenrows.com/use-cases/lead-enrichment.md): A domain in, an account record out: pricing, hiring, product and review signals from the company's own web.
- [Regulatory compliance monitoring](https://www.zenrows.com/use-cases/compliance-monitoring.md): Rule changes, enforcement actions and sanctions updates from regulator sites, diffed daily and archived with dates.
- [Real estate web scraping](https://www.zenrows.com/use-cases/real-estate-web-scraping.md): Listings, prices, agents and price history from property portals, kept current at portfolio scale.
- [Firmographic data](https://www.zenrows.com/use-cases/firmographic-data.md): Industry, headcount, HQ, locations and funding per company, built from registries, company sites and directories.
- [Automated form filling](https://www.zenrows.com/use-cases/automated-form-filling.md): Quote requests, applications and portal data entry submitted from your CSV, with every confirmation captured.

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/public-records-api#webpage","url":"https://www.zenrows.com/use-cases/public-records-api","name":"Public records API","description":"A public records API for building permits, code violations, business registries, license lookups and property records from public record portals.","isPartOf":{"@id":"https://www.zenrows.com/#website"},"inLanguage":"en","datePublished":"2026-10-18","dateModified":"2026-10-18","about":{"@type":"Thing","name":"public records api"},"keywords":"public records api, public records data, public records scraper, building permit data, property records api, background check api, business registry data, property records data","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":"Public records API","item":"https://www.zenrows.com/use-cases/public-records-api"}]},{"@type":"FAQPage","@id":"https://www.zenrows.com/use-cases/public-records-api#faq","mainEntity":[{"@type":"Question","name":"Is there one API for all public records?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Do I get a records database or live lookups?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How do I get building permit data?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Can I use this as a background check API?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Is it legal to scrape public records?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How do I get business registry data?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Can Zenrows reach portals behind Akamai or Imperva?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How do I keep property and license records current?","acceptedAnswer":{"@type":"Answer","text":"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."}}]}]}
</script>
