PlaybooksReal estate
Permit Trade Leads
Building permits just issued for your trades in a US city, with each job's contractor, or the busiest contractors ranked.
- Id
permit-trade-leads- Version
- 1.0.0
- Category
- Real estate
- Status
- Live
- Saved, it runs
- daily, weekdays, weekly, monthly
- Unit cap
- 50 by default, 1 to 500
Reads the building permits a US city issued in the last days for the trades you name (roofing, solar, HVAC, decks, additions) from its official open data: address, work, value, status and the contractor on the permit where the city publishes one. Use it to reach jobs for follow-on trades and neighbouring homes, or switch to the contractor view to rank the contractors who pulled the most permits, for selling to contractors.
Use when someone wants recent building permits for a trade in a US city, such as roofing or solar, or a ranking of the contractors pulling the most permits.
Run it with POST /v1/formulas/permit-trade-leads/runs. How runs work is in Running a playbook; what a run costs is below.
Parameters
The fields of params, the Basics first. Only the required ones must be given; every other has a default. A field that is not listed is refused. The OpenAPI document has them as the type PermitTradeLeadsParams.
| Parameter | Type | Required or default | What it is |
|---|---|---|---|
cityBasics | string | required | City. The US city or county whose permits are read. Contractor names are published by Austin, Seattle, New York, Dallas, Cincinnati, Baton Rouge, Orlando, Mesa, Raleigh and Chicago.One of austin, chicago, new_york, los_angeles, san_francisco, seattle, dallas, new_orleans, cincinnati, baton_rouge, montgomery_county_md, prince_georges_county_md, norfolk, buffalo, orlando, mesa, raleigh, washington_dc, minneapolis, detroit. |
tradesBasics | list of strings | required | Trades. Words in a permit's type, work or description, such as roof, solar, hvac, deck or addition. Each is one search.1 or more, up to 8, each up to 40 characters. |
issued_within_daysBasics | integer | 30 | Issued within (days). Only permits issued in the last this many days.at least 1, at most 365. |
viewBasics | string | "permits" | Rows are. One row a permit, or one row a contractor with how many permits it pulled.One of permits, contractors. |
min_valueFilters | number | 0 | Least job value (USD). Only permits whose declared value is at least this. Permits with no value are kept when this is 0.at least 0. |
require_contractorFilters | boolean | false | Only permits that name a contractor. Leave out permits the city published without a contractor. |
exclude_contractorsFilters | list of strings | [] | Contractors to leave out. Names of contractors, such as your own business or current customers.up to 2000, each up to 120 characters. |
permits_per_tradeFilters | integer | 200 | Permits read per trade. The newest this many permits are read for each trade word.at least 10, at most 200. |
resurface_after_daysOutput | integer | 90 | Show a row again after (days). For a saved playbook, how long before a delivered permit or contractor may come back.at least 1, at most 365. |
max_resultsOutput | integer | 300 | Most rows. The run stops at this many rows, newest permits or busiest contractors first.at least 1, at most 2000. |
Presets
Ready-made answers to start from: give them as params, with any of your own beside them.
Solar and batteries (Austin) solar-austin
{
"city": "austin",
"trades": [
"solar",
"battery",
"auxiliary power"
],
"require_contractor": true
}Roofing (Dallas) roofing-dallas
{
"city": "dallas",
"trades": [
"roof",
"reroof"
],
"issued_within_days": 14
}Contractors ranked by permits pulled contractor-ranking
{
"city": "austin",
"trades": [
"roof",
"solar",
"hvac",
"pool"
],
"issued_within_days": 60,
"view": "contractors",
"require_contractor": true
}Columns
The columns of each row’s data, in order; rows also carry a score from 0 to 100, and come best first. A value that is not known is null.
| Column | Label | Type | Shown by default |
|---|---|---|---|
contractor | Contractor | string | yes |
contractor_licence | Contractor licence | string | no |
contractor_permits | Contractor's permits | integer | yes |
contractor_addresses | Contractor's addresses | integer | no |
contractor_total_value | Contractor's job value (USD) | number | no |
contractor_latest_permit | Contractor's latest permit | date | no |
permit_number | Permit | string | yes |
permit_type | Type | string | yes |
work | Work | string | yes |
trade | Trade | string | no |
status | Status | string | no |
issued | Issued | date | yes |
address | Address | string | yes |
postal_code | ZIP | string | no |
value | Value (USD) | number | yes |
description | Description | string | no |
city | City | string | no |
record_url | Open data | url | no |
score | Score | number | yes |
Example request
# Start the run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/formulas/permit-trade-leads/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"params":{"city":"austin","trades":["solar","battery","auxiliary power"],"require_contractor":true,"issued_within_days":30,"view":"permits","min_value":0,"exclude_contractors":[],"permits_per_trade":200,"resurface_after_days":90,"max_results":300},"unit_cap":50}'
# Follow it until it ends, then read its rows, with the id the first call answered
curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID/rows?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start the run, wait for it to end, and get its rows
params = {
"city": "austin",
"trades": ["solar", "battery", "auxiliary power"],
"require_contractor": True,
"issued_within_days": 30,
"view": "permits",
"min_value": 0,
"exclude_contractors": [],
"permits_per_trade": 200,
"resurface_after_days": 90,
"max_results": 300,
}
result = client.run_formula("permit-trade-leads", params, unit_cap=50)
print(result.run.id, result.run.status, result.run.rows_total, result.run.units_spent)
# Read its rows, best first: pages are fetched as you go
for row in result:
print(row.data)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start the run, wait for it to end, and get its rows
const params = {
city: "austin",
trades: ["solar", "battery", "auxiliary power"],
require_contractor: true,
issued_within_days: 30,
view: "permits",
min_value: 0,
exclude_contractors: [],
permits_per_trade: 200,
resurface_after_days: 90,
max_results: 300,
};
const { run, rows } = await client.runFormula("permit-trade-leads", params, { unitCap: 50 });
console.log(run.id, run.status, run.rows_total, run.units_spent);
// Read its rows, best first: pages are fetched as you go
for await (const row of rows) console.log(row.data);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Minute)
defer cancel()
// Start the run, wait for it to end, and get its rows
params := map[string]any{"city": "austin", "trades": []any{"solar", "battery", "auxiliary power"}, "require_contractor": true, "issued_within_days": 30, "view": "permits", "min_value": 0, "exclude_contractors": []any{}, "permits_per_trade": 200, "resurface_after_days": 90, "max_results": 300}
run, rows, err := client.RunFormula(ctx, "permit-trade-leads", params, &enrichednow.RunFormulaParams{UnitCap: 50})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RowsTotal, run.UnitsSpent)
// Read its rows, best first: pages are fetched as you go
for rows.Next() {
fmt.Println(string(rows.Current().Data))
}
if err := rows.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.FormulaResult;
import com.enrichednow.FormulaRunOptions;
import com.enrichednow.models.FormulaRow;
import java.util.List;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start the run, wait for it to end, and get its rows
FormulaResult result = client.runFormula("permit-trade-leads", Map.of("city", "austin", "trades", List.of("solar", "battery", "auxiliary power"), "require_contractor", true, "issued_within_days", 30, "view", "permits", "min_value", 0, "exclude_contractors", List.of(), "permits_per_trade", 200, "resurface_after_days", 90, "max_results", 300), FormulaRunOptions.builder().unitCap(50).build());
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().rowsTotal() + " " + result.run().unitsSpent());
// Read its rows, best first: pages are fetched as you go
for (FormulaRow row : result.rows()) {
System.out.println(row.data());
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow formulas run permit-trade-leads --params-json '{"city":"austin","trades":["solar","battery","auxiliary power"],"require_contractor":true,"issued_within_days":30,"view":"permits","min_value":0,"exclude_contractors":[],"permits_per_trade":200,"resurface_after_days":90,"max_results":300}' --unit-cap 50Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
{
"name": "run_formula",
"arguments": {
"formula_id": "permit-trade-leads",
"params": {
"city": "austin",
"trades": [
"solar",
"battery",
"auxiliary power"
],
"require_contractor": true,
"issued_within_days": 30,
"view": "permits",
"min_value": 0,
"exclude_contractors": [],
"permits_per_trade": 200,
"resurface_after_days": 90,
"max_results": 300
}
}
}It starts a full run with the answers the sample rows below were made with and the default unit cap, waits for it, and reads its rows a page at a time. The key is read from an environment variable. The MCP tab is the same run asked of an agent connected to the MCP server, which runs a preview first.
Example response
The data of the first 3 rows a real run returned with these answers on 2026-11-24: it ended ok with 56 rows, after 3 scraper calls charged 3 units. Text over 160 characters is cut here and ends with … [truncated]; the API returns every value whole.
[
{
"contractor": "Lighthouse Solar Austin",
"contractor_licence": null,
"contractor_permits": 2,
"contractor_addresses": 2,
"contractor_total_value": 0,
"contractor_latest_permit": "2026-11-20",
"permit_number": "2026-152601 BP",
"permit_type": "Building Permit",
"work": "Remodel",
"trade": "building",
"status": "Active",
"issued": "2026-11-20",
"address": "9809 CURLEW DR",
"postal_code": "78748",
"value": null,
"description": "Roof mounted solar electric.",
"city": "Austin",
"record_url": "https://data.austintexas.gov/d/3syk-w9eu",
"score": 40
},
{
"contractor": "Horus Partners",
"contractor_licence": null,
"contractor_permits": 5,
"contractor_addresses": 5,
"contractor_total_value": 0,
"contractor_latest_permit": "2026-11-20",
"permit_number": "2026-144466 EP",
"permit_type": "Electrical Permit",
"work": "Auxiliary Power",
"trade": "electrical",
"status": "Active",
"issued": "2026-11-20",
"address": "4544 S LAMAR BLVD SB UNIT 675",
"postal_code": "78745",
"value": null,
"description": "Rooftop Solar. Rooftop Solar BackFed Breaker Interconnection. 2026-125643 DA.",
"city": "Austin",
"record_url": "https://data.austintexas.gov/d/3syk-w9eu",
"score": 60
},
{
"contractor": "MasTec Network Solutions",
"contractor_licence": null,
"contractor_permits": 2,
"contractor_addresses": 2,
"contractor_total_value": 40000,
"contractor_latest_permit": "2026-11-19",
"permit_number": "2026-150882 BP",
"permit_type": "Building Permit",
"work": "New",
"trade": "building",
"status": "Active",
"issued": "2026-11-19",
"address": "2902 1/2 MANOR RD",
"postal_code": "78722",
"value": 25000,
"description": "Upgrade antennas to existing rooftop wireless telecommunications facility. No battery backups or generators proposed. 2026-139168 DA.",
"city": "Austin",
"record_url": "https://data.austintexas.gov/d/3syk-w9eu",
"score": 60
}
]Each row also has its id, its score, when it was first seen and its evidence: where each value came from. The run and its rows are described in Running a playbook.
Pricing
A run costs the units of the work it does, and nothing on top: each scraper call it makes is charged at that scraper's rate, when the call ends ok or partial. It never spends past its unit cap: 50 units unless you give another (at least 1, at most 500).
With the answers above, a run is estimated at about 3 units for about 56 rows, and at most 3: 3 searches across 1 source, about 56 rows. An estimate for no history; POST /v1/formulas/permit-trade-leads/estimate gives yours, free.
A preview, mode: preview, is the first 10 rows, charged at what they cost: about 3 units with the answers above. POST /v1/formulas/permit-trade-leads/estimate with mode: preview gives yours, free.
How a playbook is charged has the rule for every playbook.