# US Building Permits & Business Licenses Scraper (`lentic_clockss/us-permits-licenses-scraper`) Actor

Get building permits, contractor and business licenses from 53 official US open-data sources by ZIP code, city or state. One clean row per permit or license. Pay per row plus a start fee.

- **URL**: https://apify.com/lentic_clockss/us-permits-licenses-scraper.md
- **Developed by:** [kane liu](https://apify.com/lentic_clockss) (community)
- **Categories:** Lead generation, Real estate, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**Get building permits, contractor licenses, liquor licenses and business licenses from 53 official US open-data sources as clean rows, searched by ZIP code, city or state.**

- One row per permit or license, with the same fields for every city, county and state.
- Contractor, owner and licensee names, job value, kind of work, status and dates, plus phone numbers where the source publishes them.
- Search by ZIP code, by city (`Austin, TX`), by state, or read chosen sources directly.
- Filters for record type, permit type, status, job value, date range and keyword.
- Pay $2.00 per 1,000 delivered rows on the Free plan, plus a start fee.

### What does US Building Permits & Business Licenses Scraper do?

The scraper reads permit and license records that US cities, counties and states publish on official open-data portals, in one row format. Give a place or a source; it finds every covered source, reads the newest records first and merges them by date. A ZIP code in Austin returns Austin building permits next to Texas alcohol and sales tax licenses.

- **ZIP codes** (`zipCodes`): city and county sources that cover the ZIP code, plus statewide sources filtered to it.
- **Cities** (`cities`): the city's own sources, county sources that cover it, and statewide sources filtered to it.
- **States** (`states`): every source in the state. Add `recordTypes` to narrow it.
- **Sources** (`sources`): without a place, each picked source is one input and returns its newest records; with a place, only those sources are searched.
- **Professional licenses** (real estate agents, notaries, CPAs and similar) are left out unless you select `professional_license` in `recordTypes` or pick one of those sources.

#### Covered places

| State | Places and record types |
| --- | --- |
| AZ | Mesa: building permits |
| CA | Los Angeles: building, electrical and mechanical permits, certificates of occupancy. San Francisco, Marin County: building permits |
| CO | Statewide: liquor, professional, real estate and appraiser licenses |
| DE | Statewide: business and professional licenses |
| HI | Honolulu: building permits 2005 to June 2025 (historical, only when picked in `sources`) |
| IL | Chicago: building permits, business licenses |
| LA | New Orleans: building permits, business licenses. East Baton Rouge Parish: building permits |
| MA | Cambridge: new construction, addition and alteration permits |
| MD | Montgomery County: building and electrical permits, alcohol and home builder licenses. Prince George's County: permits |
| MO | Statewide: alcohol licenses |
| NJ | Statewide: construction permits, by town |
| NY | New York City: building and electrical permits (legacy permits only when picked in `sources`). Statewide: contractor registry, liquor licenses and applications, DMV facilities, elevator and mold contractors, real estate, appraiser, barber and notary licenses |
| OH | Cincinnati: building permits |
| OR | Statewide: contractor, liquor and cannabis licenses |
| TX | Austin: building permits. Statewide: alcohol licenses, sales tax permits, insurance agent licenses |
| WA | Seattle: building permits, business licenses. Statewide: contractor and CPA licenses |

### What data can you extract from US permit and license records?

Every row has `rowType` (`permit` or `license`), `recordType`, a unique `id` and its `source`.

| Field | Description | Example |
| --- | --- | --- |
| `recordType` | Kind of record | `building_permit` |
| `sourceName` | Readable source name | `Austin, TX building permits` |
| `jurisdiction` | Level, state and place of the issuing government | `{"state": "TX", "place": "Austin"}` |
| `permitId` | Permit number | `2026-130347 EP` |
| `permitType` | Kind of work, such as `roofing`, `hvac`, `solar` or `new_construction` | `electrical` |
| `permitTypeRaw` | Permit type in the source's words | `Electrical Permit` |
| `description` | Work description | `Replace main panel` |
| `status` | Permits: `issued`, `pending`, `expired`, `revoked`, `completed`, `cancelled`. Licenses: `active`, `inactive`, `suspended`, `expired`, `pending` | `issued` |
| `statusRaw` | Status in the source's words | `Active` |
| `estimatedCost` | Job value in US dollars | `15000` |
| `issueDate` | Issue date | `2026-10-25` |
| `expiryDate` | Expiry date | `2027-04-23` |
| `recordDate` | Date used for sorting and date filters | `2026-10-25` |
| `contractor` | Contractor name, license, phone, trade and address | `{"name": "Example Electric LLC"}` |
| `owner` | Owner or licensee | `{"name": "Jane Doe"}` |
| `contacts` | Other people and firms on the record, with role | `[{"type": "GENERAL CONTRACTOR"}]` |
| `licenseId` | License number | `200212427` |
| `licenseType` | License type in the source's words | `Retail Liquor Store (city)` |
| `holderName` | Name the license is issued to | `Example Foods LLC` |
| `dbaName` | Trade name | `Example Cafe` |
| `businessIds` | Other identifiers with their type | `[{"type": "TABC master file id"}]` |
| `specialties` | Trades or activities the license covers | `["Retail Sales"]` |
| `bond` | Surety bond company and amount | `{"amount": 25000}` |
| `insurance` | Insurer, amount and expiry | `{"amount": 1000000}` |
| `address` | `street`, `locality`, `county`, `region`, `postalCode`, `full` | `{"postalCode": "78727"}` |
| `geo` | Coordinates from the source | `{"lat": 30.42, "lng": -97.73}` |
| `phones` | Phone numbers in international format | `["+15125550100"]` |
| `matchedBy` | Which input found the row | `{"input": "zipCodes"}` |
| `addressCheck` | Address compared with a national address register | `{"status": "ok"}` |
| `geoFill` | Values missing in the source that the check found, with their origin | `{"postalCode": {"value": "60641"}}` |
| `sourceDataset` | Portal, dataset ID, record link, last update and data license | `{"domain": "data.austintexas.gov"}` |
| `leadAbsences`, `quality` | Why fields are empty | `{"emails": "not_collected (…)"}` |

`addressCheck.status` is `ok`, `conflict`, `unverifiable` or `unavailable`. The check never changes `address`; what it finds for empty fields goes to `geoFill`, so published values and added values stay apart.

### How to scrape US building permits and business licenses

1. Open US Building Permits & Business Licenses Scraper in Apify Console.
2. Fill one target field, for example `zipCodes` with `78701`. Leave everything else as it is.
3. Set `maxResults` to a small number such as 5 for your first run.
4. Click **Start** and wait for the run to finish.
5. Download the results as JSON, CSV, Excel or another format, or read them through the API.

An empty input starts an example run for ZIP code `78701`, limited to 5 rows. An input with filters but no place, such as only a `keyword`, stops with `INVALID_INPUT`.

#### Search by place

Fill `zipCodes`, `cities` (`City, ST`, such as `Seattle, WA`) or `states` (such as `NY`). A city without its state code is rejected.

#### Read chosen sources

Pick sources in `sources` and leave the place fields empty, for example the two historical sources and Oregon cannabis licenses, which have no ZIP code or city.

### What to fill in

| Field | What to enter | Default |
| --- | --- | --- |
| `zipCodes` | US ZIP codes such as `78701` | empty |
| `cities` | Cities as `City, ST`, such as `Austin, TX` | empty |
| `states` | State codes such as `TX` or names such as `Texas` | empty |
| `sources` | Source keys from the input form, such as `austin_permits` | empty |
| `recordTypes` | Kinds of records to return | all but professional licenses |
| `keyword` | Words to find anywhere in the record, such as `solar` | empty |
| `dateFrom` | A date (`2026-01-31`) or a window back from today (`30 days`) | empty |
| `dateTo` | A date or a window | empty |
| `permitTypes` | Kinds of work, permits only | all |
| `permitStatuses` | Permit statuses to keep | all |
| `minEstimatedCost` | Smallest job value in US dollars | empty |
| `maxEstimatedCost` | Largest job value in US dollars | empty |
| `licenseStatuses` | License statuses to keep | all |
| `sortBy` | `newest` or `oldest` | `newest` |
| `maxResults` | Most rows for each input, 1 to 1,000 | `70` |
| `includeRawFields` | `true` adds the source record under `raw` | `false` |
| `cursor` | `nextCursor` from an earlier run's `RUN_SUMMARY`, to continue it | Empty |

```json
{
  "zipCodes": ["78701", "78702"],
  "recordTypes": ["building_permit"],
  "dateFrom": "30 days",
  "maxResults": 10
}
```

```json
{
  "cities": ["Seattle, WA"],
  "permitTypes": ["solar", "roofing"],
  "minEstimatedCost": 10000,
  "maxResults": 5
}
```

```json
{
  "states": ["NY"],
  "recordTypes": ["alcohol_license"],
  "maxResults": 5
}
```

```json
{
  "sources": ["wa_contractor_licenses", "oregon_cannabis_licenses"],
  "maxResults": 5
}
```

- `maxResults` is the most rows for each input (each ZIP code, city or state, or each source when no place is given); `maxItems` and `limit` are aliases.
- Permit filters (`permitTypes`, `permitStatuses`, cost fields) return permits only; `licenseStatuses` returns licenses only. With `minEstimatedCost`, permits without a job value are left out.
- Unknown fields never fail the run: close misspellings are corrected and other unknown fields are ignored with a note.
- Wrong input stops the run at once with a message like `INVALID_INPUT: cities — write each city as City, ST, for example Austin, TX`. No rows are charged.
- The `INPUT_REPORT` record in the run's key-value store shows how your input was read: fields filled, corrected or ignored.

### Output example

```json
{
  "rowType": "permit",
  "recordType": "building_permit",
  "id": "austin_permits:2026-130347 EP",
  "source": "austin_permits",
  "sourceName": "Austin, TX building permits",
  "jurisdiction": {"level": "city", "state": "TX", "place": "Austin"},
  "datasetStatus": "live",
  "status": "issued",
  "statusRaw": "Active",
  "recordDate": "2026-10-25",
  "recordDateKind": "issue",
  "permitId": "2026-130347 EP",
  "permitType": "electrical",
  "permitTypeRaw": "Electrical Permit",
  "workClass": "Upgrade",
  "description": "Replace main and sub panel with an approved panel.",
  "currency": "USD",
  "issueDate": "2026-10-25",
  "applicationDate": "2026-10-03",
  "expiryDate": "2027-04-23",
  "housingUnits": 1,
  "contractor": {
    "name": "Example Electric LLC",
    "phone": "+15125550100",
    "trade": "Electrical Contractor",
    "address": "100 Example Rd, Manor, 78653"
  },
  "address": {
    "street": "100 EXAMPLE DR",
    "locality": "AUSTIN",
    "region": "TX",
    "postalCode": "78727",
    "country": "US",
    "full": "100 EXAMPLE DR, AUSTIN, TX 78727",
    "kind": "site"
  },
  "geo": {"lat": 30.4206, "lng": -97.7309},
  "matchedBy": {"input": "zipCodes", "value": "78727", "how": "column"},
  "phones": ["+15125550100"],
  "emails": [],
  "person": null,
  "org": {"name": "Example Electric LLC", "role": "contractor"},
  "web": [],
  "addressCheck": {"status": "ok", "precision": "address"},
  "geoFill": {},
  "sourceUrl": "https://abc.austintexas.gov/web/permit/public-search-other",
  "sourceDataset": {
    "domain": "data.austintexas.gov",
    "datasetId": "3syk-w9eu",
    "truthLastModified": "2026-10-26T14:42:13Z",
    "license": "Public Domain U.S. Government"
  },
  "leadAbsences": {
    "emails": "not_collected (dataset data.austintexas.gov/3syk-w9eu has no email column)",
    "web": "not_collected (dataset data.austintexas.gov/3syk-w9eu has no website column)",
    "person": "not_verified (applicant_full_name not returned for this record)"
  },
  "quality": {
    "missingFields": {"emails": "unavailable_in_surface", "web": "unavailable_in_surface"},
    "evidence": {
      "emails": "dataset data.austintexas.gov/3syk-w9eu has no email column",
      "web": "dataset data.austintexas.gov/3syk-w9eu has no website column"
    }
  },
  "collectedAt": "2026-10-27T14:05:11+00:00"
}
```

### Why use this US permits and licenses scraper?

- **One format for 53 sources.** A permit from Chicago and one from Seattle have the same fields, status words and permit types.
- **Partial results are kept.** A run that reaches its timeout delivers the rows collected so far and gives you a cursor to continue.
- **Clear errors.** A failed input names the field and the fix; an empty result says why it is empty.
- **No made-up data.** A field the source does not show stays empty, and `leadAbsences` says why.
- **Traceable rows.** Each row links to the source record and names its data license.
- **No setup.** You do not need proxies, a portal account or an API key.

### How much does it cost to scrape US building permits and business licenses?

The Actor uses pay-per-event pricing. Platform usage is included in these prices.

| Apify plan | Price per row | Price per 1,000 rows |
| --- | --- | --- |
| Free | $0.002 | $2.00 |
| Starter | $0.0018 | $1.80 |
| Scale | $0.0016 | $1.60 |
| Business | $0.0014 | $1.40 |
| Platinum | $0.0014 | $1.40 |
| Diamond | $0.0014 | $1.40 |

- `maxResults` defaults to 70; bigger numbers are collected in parts of 70.
- Free-plan use is capped at 10 runs of this Actor, each stopping at 200 rows.
- The run never costs more than the **Maximum cost per run** you set in the run options (`maxTotalChargeUsd` in the API).
- The Apify Free plan includes **$5.00** in monthly usage credit, about **2,499 rows** at `$0.002` per row.

Example: 2 ZIP codes × 50 rows = 100 rows → 100 × $0.002 + $0.005 = $0.205 on the Free plan.

### What happens when the run timeout is too short

If your run timeout ends before everything is collected, the run does not
fail. It stops shortly before the timeout, delivers every row collected so far
to the dataset, and finishes as **SUCCEEDED**. You are charged only for the rows
it delivered.

To get the rest, run the Actor again with the same input and set **cursor** to
the value of `nextCursor` from the run's `RUN_SUMMARY` record (key-value store).
The new run first delivers rows that were already collected, then collects
what is left. Rows are never delivered or charged twice. A cursor can be used
once and is valid for 6 hours; after that, a run with the same input starts
from the beginning.

`RUN_SUMMARY` also tells you why the run stopped early: `partial: true` and
`partialReason: "run_timeout"`.

**Stopping a run yourself?** Use **Abort gracefully** (Console) or
`POST /v2/actor-runs/{runId}/abort?gracefully=true` (API). The run then keeps
the rows collected so far and writes a cursor the same way. A plain abort stops
the run immediately and delivers nothing.

**Calling the Actor synchronously** (`run-sync`, `run-sync-get-dataset-items`)
works as usual: you get the rows delivered before the timeout.

### Use with AI agents and the API

#### Apify MCP server (Claude, ChatGPT, Cursor, VS Code)

Add this Actor to an MCP client that supports remote servers (sign in with Apify through OAuth, or send `Authorization: Bearer <YOUR_APIFY_TOKEN>`):

```text
https://mcp.apify.com?tools=lentic_clockss/us-permits-licenses-scraper
```

Example prompt: "List 10 building permits issued in ZIP 78701 in the last 30 days with contractor and value."

- **Agent execution note:** Set `maxResults` to `5`–`20` on exploratory calls and read `RUN_SUMMARY` / `INPUT_REPORT`. When a run ends `SUCCEEDED` with `partial: true` and a `nextCursor`, start a new run with the same input and that `cursor` to get the rest.

#### Apify API

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("lentic_clockss/us-permits-licenses-scraper").call(run_input={"zipCodes": ["78701"], "maxResults": 10})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('lentic_clockss/us-permits-licenses-scraper').call({ zipCodes: ['78701'], maxResults: 10 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

Or over HTTP: `POST https://api.apify.com/v2/acts/lentic_clockss~us-permits-licenses-scraper/runs` with the input as the JSON body and your token in the `Authorization: Bearer` header, then `GET https://api.apify.com/v2/datasets/<datasetId>/items?format=json`.

#### Integrations

Connect results to Google Sheets, Make, Zapier, n8n, Slack, Airtable or a webhook from the **Integrations** tab, or schedule daily runs with `dateFrom` set to `1 days`.

### FAQ

#### Is it legal to scrape US permit and license records?

The Actor reads public records governments publish for anyone to use; each row names its license in `sourceDataset.license`. You are responsible for each portal's terms and data protection law. Some rows name private people such as homeowners; using that data needs a lawful basis, and calling or mailing them may fall under rules such as do-not-call lists.

#### Why did my run end as ABORTED?

Runs no longer pause as **ABORTED** when the timeout is too short; they end **SUCCEEDED** with partial results, as described above. **ABORTED** means the run was aborted. Use **Abort gracefully** to keep the rows collected so far and get a cursor.

#### How many results can I get?

Up to `maxResults` rows for each input, at most 1,000, as long as the sources hold that many matching records.

#### Why did my ZIP code or city return no rows?

The status message gives the reason: the place is not covered, the ZIP code or city was not found (check spelling and state code), or no record matched your filters.

#### Why are some fields empty?

Few governments publish phone numbers or emails. `leadAbsences` says why a contact or location field is empty: `not_collected` (no such column), `not_verified` (this record did not return it) or `Not on source` (empty or a placeholder such as `N/A`). `quality.missingFields` holds `unavailable_in_surface` for `not_collected` and `not_present` for `Not on source`; `not_verified` has no entry there.

#### Why do `leadAbsences` reasons differ from earlier runs?

Rows written before 2026-11-13 08:17 UTC differ in two cases:

| Case | Before | Since |
| --- | --- | --- |
| Source has no such column | `Not on source: dataset <id> has no <field> column`, `quality`: `not_present` | `not_collected (dataset <id> has no <field> column)`, `quality`: `unavailable_in_surface` |
| Record did not return a column | `Not on source: <columns> empty on this record`, `quality`: `not_present` | `not_verified (<columns> not returned for this record)`, no `quality` entry |

#### How current is the data?

Each run reads the sources live. `sourceDataset.truthLastModified` shows when a source last changed. Honolulu permits and New York City legacy permits are historical.

#### Are company registrations included?

No. The Actor covers permits and licenses only, not state registries of corporations and LLCs.

### Limitations

- Only the covered places return rows.
- Chicago, Mesa and Cambridge permits have no ZIP code column; ZIP code searches keep their rows only when the address check places them in that ZIP code.
- New Jersey permits are listed by town, so a ZIP code search returns the permits of the towns the ZIP code covers.
- Sources without a record date (Colorado liquor and real estate, Missouri and Montgomery County alcohol, New York real estate, Oregon contractor licenses and New York City legacy permits) are skipped when a date filter is set.
- `keyword` searches are slower on large sources such as Los Angeles or New York City permits; add a date range.
- `permitType` is `other` when the source gives no clear kind of work; `permitTypeRaw` keeps the original.
- A plain (not graceful) abort stops the run immediately and delivers nothing.

### Related scrapers

More B2B supplier and wholesale marketplace scrapers from the same publisher:

- [Global Sources Scraper](https://apify.com/lentic_clockss/globalsources-scraper)
- [Kompass Scraper](https://apify.com/lentic_clockss/kompass-scraper)
- [Thomasnet Scraper](https://apify.com/lentic_clockss/thomasnet-scraper)
- [IndiaMART Scraper](https://apify.com/lentic_clockss/indiamart-scraper)
- [iPROS Scraper](https://apify.com/lentic_clockss/ipros-scraper)
- [Xometry Scraper](https://apify.com/lentic_clockss/xometry-scraper)
- [Email Validator](https://apify.com/lentic_clockss/email-risk-validator)
- [Phone Number Validator](https://apify.com/lentic_clockss/phone-number-intelligence)

Browse all of our scrapers at [apify.com/lentic_clockss](https://apify.com/lentic_clockss).

### Support

Found a problem or need another field? Open an issue in the **Issues** tab with the run ID and your input.

# Actor input Schema

## `zipCodes` (type: `array`):

US ZIP codes, for example 78701. Each ZIP code is one input. Only places covered by the sources return rows; the README lists them.

## `cities` (type: `array`):

Cities written as City, ST, for example Austin, TX or New Orleans, LA. Each city is one input.

## `states` (type: `array`):

Two-letter state codes such as NY or TX. Each state is one input and reads every source in that state (city, county and statewide), so add Record types to narrow it.

## `sources` (type: `array`):

Without a place, each source you pick is one input and returns its newest records. With a place, only these sources are searched there. The two historical sources are read only when picked here.

## `recordTypes` (type: `array`):

Kinds of records to return. Empty means all kinds except professional licenses, which are returned only when selected here or when you pick a professional license source.

## `keyword` (type: `string`):

Words to find anywhere in the record, for example solar or restaurant. Keyword searches are slower on large sources; add a date range to keep them fast.

## `dateFrom` (type: `string`):

Only records dated on or after this day: a date (YYYY-MM-DD) or a window such as 30 days, counted back from today. Permits use the issue date; licenses use the date each source keeps. Sources without a record date are skipped when a date is set.

## `dateTo` (type: `string`):

Only records dated on or before this day: a date (YYYY-MM-DD) or a window such as 7 days, counted back from today.

## `permitTypes` (type: `array`):

Kinds of work, for permits only. Each permit gets one kind from its source's own wording.

## `permitStatuses` (type: `array`):

Permit statuses to keep, for permits only.

## `minEstimatedCost` (type: `integer`):

Only permits with a stated job value of at least this many US dollars. Permits without a job value are left out when this is set.

## `maxEstimatedCost` (type: `integer`):

Only permits with a stated job value of at most this many US dollars.

## `licenseStatuses` (type: `array`):

License statuses to keep, for licenses only.

## `sortBy` (type: `string`):

Newest records first or oldest first, by record date. Records of sources without a record date come after the dated ones.

## `maxResults` (type: `integer`):

The most rows for each input: each ZIP code, city or state, or each source when no place is given. Leave empty for 70; larger numbers are collected in parts of 70. You pay only for rows delivered.

## `includeRawFields` (type: `boolean`):

Add the record exactly as the source published it, under raw (up to 64 KiB per row).

## `cursor` (type: `string`):

Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty.

## Actor input object example

```json
{
  "zipCodes": [
    "78701"
  ],
  "sortBy": "newest",
  "maxResults": 5,
  "includeRawFields": false
}
```

# Actor output Schema

## `rows` (type: `string`):

Permit and license rows from this run, one row per record.

## `runSummary` (type: `string`):

Run status, stored row count, per-source counts and warnings.

## `inputEcho` (type: `string`):

Input settings used for the run, including applied row limits.

## `inputReport` (type: `string`):

Every change made to the input: aliases, example run, ignored fields and fields to fix.

## `errorSummary` (type: `string`):

Failure type and message when the Actor records an error.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "zipCodes": [
        "78701"
    ],
    "maxResults": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("lentic_clockss/us-permits-licenses-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "zipCodes": ["78701"],
    "maxResults": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("lentic_clockss/us-permits-licenses-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "zipCodes": [
    "78701"
  ],
  "maxResults": 5
}' |
apify call lentic_clockss/us-permits-licenses-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lentic_clockss/us-permits-licenses-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/pzDiS3aeD07UByLNr/builds/TGUonYmulXDq0E7N4/openapi.json
