# Pool, Solar & Roofing Permit Leads (US Cities) (`astounding_loam/trade-permit-leads`) Actor

Fresh building-permit leads for pool, solar, roofing, HVAC, EV charger and more from 8 US city open-data portals, with address, job value and contractor contact where published.

- **URL**: https://apify.com/astounding_loam/trade-permit-leads.md
- **Developed by:** [Colby Phelps](https://apify.com/astounding_loam) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## Pool, Solar & Roofing Permit Leads (US Cities)

Get **fresh building permits filtered by trade** — swimming pool & spa, solar / PV, roofing, HVAC & heat pump, EV charger, generator, ADU, fence, demolition and new single-family homes — straight from **official city open-data portals**. One clean, normalized row per permit: address, ZIP, issue date, work description, job value, contractor (where the city publishes it) and a link back to the source.

Built for **pool builders and pool service companies, solar installers, roofers, HVAC contractors, landscapers, fencing and outdoor-living companies, home-insurance and proptech teams** who want to reach homeowners right after a permit is issued.

### What does Trade Permit Leads do?

- Searches each city's building-permit dataset for the trades you pick (keyword rules tuned per trade, plus your own extra keywords).
- Returns only permits issued in your date window (default: last 30 days).
- Normalizes every city's different columns into **one schema**, so Austin, Los Angeles and Chicago rows look the same in your spreadsheet or CRM.
- Tags each permit with the trade(s) it matched — e.g. a "new pool + solar heater" permit is tagged `pool` and `solar`.
- No login, no proxies, no browser — it uses the public Socrata (SODA) APIs the cities publish, so runs are fast and cheap.

### Supported cities

| City | Pool | Solar | Contractor name | Contractor phone | Job value |
|---|---|---|---|---|---|
| Austin, TX | ✅ (busiest pool market in the set) | ✅ | ✅ | ✅ | partial |
| Los Angeles, CA | ✅ (1,000+ pool/spa permits per quarter) | ✅ | – | – | ✅ |
| Chicago, IL | ✅ | ✅ | ✅ | – | ✅ |
| San Francisco, CA | ✅ | ✅ | – | – | ✅ |
| Seattle, WA | ✅ | ✅ | – | – | ✅ |
| Montgomery County, MD | ✅ | ✅ | – | – | ✅ |
| Cincinnati, OH | ✅ | ✅ | ✅ | – | ✅ |
| New Orleans, LA | ✅ | ✅ | ✅ | – | ✅ |

Want another city? Open an issue on the Actor page with the city's open-data link and it will be added.

### How to use it

1. Pick one or more **Trades** (e.g. `pool`).
2. Pick **Cities**.
3. Set **Issued in the last N days** (or an exact date range).
4. Optional: minimum project value, skip commercial permits, extra keywords like `outdoor kitchen`.
5. Click **Start** and download results as CSV, Excel or JSON — or schedule it daily/weekly to get only new permits each time.

#### Example input

```json
{
  "trades": ["pool", "solar"],
  "cities": ["austin", "los-angeles"],
  "daysBack": 14,
  "maxResultsPerCity": 500,
  "maxResults": 2000
}
```

### Output example

```json
{
  "trades": ["pool"],
  "city": "Austin",
  "state": "TX",
  "permitNumber": "2026-115798 EP",
  "issueDate": "2026-11-08",
  "daysSinceIssued": 1,
  "permitType": "Electrical Permit",
  "workClass": "New",
  "propertyClass": "Residential",
  "status": "Active",
  "description": "New inground swimming pool and spa w/ concrete decking and reqd enclosure device for existing 2-story single family residence.",
  "address": "4331 CANOAS DR",
  "zip": "78730",
  "valuation": null,
  "contractorName": "…",
  "contractorPhone": "…",
  "parcelId": "0143340235",
  "latitude": 30.3685,
  "longitude": -97.8556,
  "permitUrl": "https://abc.austintexas.gov/web/permit/public-search-other?…",
  "sourceDataset": "https://data.austintexas.gov/resource/3syk-w9eu"
}
```

### How much does it cost?

You pay **per permit returned** (pay-per-result) — no start fee, no monthly rental. 1,000 pool permits cost about **$4**. Empty searches cost nothing beyond a few cents of platform usage. Use **Max results in total** to cap any run.

### Use cases

- **Pool builders & pool service:** every new pool is a customer for cleaning, chemicals, fencing, landscaping, lighting and covers.
- **Solar & battery installers:** see who is going solar near you and which competitors are pulling permits.
- **Roofers, HVAC, generator and EV-charger installers:** find active homeowners and track competitor activity by ZIP.
- **Insurance, proptech and market research:** count new pools, ADUs or solar systems by ZIP and month.

### FAQ

**Is this data legal to use?** Yes. All data comes from official public-records open-data portals published by each city or county under open licenses. Contractor contact details are business contacts the city publishes. Follow local laws (e.g. CAN-SPAM, TCPA, do-not-call) when contacting anyone.

**Why do some rows have no contractor or job value?** Not every city publishes those fields. The table above shows what each city provides.

**How fresh is the data?** As fresh as the city's portal — most update daily.

**Can I run it on a schedule?** Yes — use Apify Schedules (e.g. every morning, `daysBack: 1`) and send results to Google Sheets, Slack, email, Zapier or Make.

**Something broke or a city is missing?** Report it in the Issues tab and it gets fixed fast.

# Actor input Schema

## `trades` (type: `array`):

Which kinds of permits to return. Each permit is tagged with every trade it matches.

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

Official city or county open-data portals to search.

## `daysBack` (type: `integer`):

Used when Date from is empty.

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

Optional. Overrides 'last N days'.

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

Optional. Defaults to today.

## `extraKeywords` (type: `array`):

Optional extra phrases to match in the permit description, e.g. 'outdoor kitchen' or 'water heater'.

## `minValuation` (type: `integer`):

Skip permits with a declared job value below this. Leave empty to keep all.

## `residentialOnly` (type: `boolean`):

Drop permits the city marks as commercial (where the city publishes that field).

## `maxResultsPerCity` (type: `integer`):

Stop after this many permits from any one city.

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

Hard cap on rows (and cost) for the whole run.

## Actor input object example

```json
{
  "trades": [
    "pool"
  ],
  "cities": [
    "austin",
    "los-angeles"
  ],
  "daysBack": 30,
  "residentialOnly": false,
  "maxResultsPerCity": 100,
  "maxResults": 200
}
```

# Actor output Schema

## `leads` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "trades": [
        "pool"
    ],
    "cities": [
        "austin",
        "los-angeles"
    ],
    "daysBack": 30,
    "maxResultsPerCity": 100,
    "maxResults": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("astounding_loam/trade-permit-leads").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 = {
    "trades": ["pool"],
    "cities": [
        "austin",
        "los-angeles",
    ],
    "daysBack": 30,
    "maxResultsPerCity": 100,
    "maxResults": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("astounding_loam/trade-permit-leads").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 '{
  "trades": [
    "pool"
  ],
  "cities": [
    "austin",
    "los-angeles"
  ],
  "daysBack": 30,
  "maxResultsPerCity": 100,
  "maxResults": 200
}' |
apify call astounding_loam/trade-permit-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,astounding_loam/trade-permit-leads"
        }
    }
}
```

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/DVk5JnGYz7Yd1A6rk/builds/gkS1Tl7IWDuRM6RX1/openapi.json
