Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    PlaybooksReal estate

    Permit Status Watch

    Building permits in a US city read again on a schedule, with each status change and each newly issued permit.

    Id
    permit-status-watch
    Version
    1.0.0
    Category
    Real estate
    Status
    Live
    Saved, it runs
    daily, weekdays, weekly
    Unit cap
    100 by default, 1 to 1000

    Watches building permits in one of twenty US cities and counties, from the city's own open data: the permits you name by number, or the permits issued in an area (a street, a ZIP code) in the last weeks. Each run reads them again and compares every permit's status with the last run, so you see a permit move from filed to issued, issued to finaled, or expired, and every permit that is new since the last look. The first run is the baseline.

    Use when someone wants to be told when building permits change status, or when new permits are issued on a street or in an area of a US city.

    Run it with POST /v1/formulas/permit-status-watch/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 PermitStatusWatchParams.

    Parameters of Permit Status Watch
    ParameterTypeRequired or defaultWhat it is
    cityBasicsstringrequiredCity. The US city or county whose permits are watched.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.
    permit_numbersBasicslist of strings[]Permit numbers. The permits to watch, by their number at the city. Leave empty to watch the permits issued in an area instead.up to 50, each up to 40 characters.
    address_containsBasicsstring""Address holds. Without permit numbers, only permits whose address holds this text, such as a street name. Empty watches the whole city.up to 80 characters.
    within_daysBasicsinteger30Issued within (days). Without permit numbers, the permits issued in the last this many days are watched.at least 1, at most 365.
    keywordFiltersstring""Work words. Without permit numbers, only permits whose type, work or description holds this, such as ROOF or SOLAR.up to 60 characters.
    permits_to_readFiltersinteger200Permits read. Without permit numbers, the newest this many permits of the area are read on each run.at least 10, at most 200.
    only_changesOutputbooleantrueOnly what changed. On a saved playbook's later runs, show only permits that are new or whose status changed. The first run shows every permit.
    max_resultsOutputinteger200Most rows. The run stops at this many permits, changes first.at least 1, at most 1000.

    Presets

    Ready-made answers to start from: give them as params, with any of your own beside them.

    New homes and alterations (Los Angeles) los-angeles-new-homes

    JSON
    {
      "city": "los_angeles",
      "within_days": 30
    }

    Permits I filed (New York) my-permits-new-york

    JSON
    {
      "city": "new_york",
      "permit_numbers": [
        "M01438051-I1-GC-CX",
        "X01452585-I1-GC"
      ]
    }

    Solar permits (Austin) solar-austin

    JSON
    {
      "city": "austin",
      "keyword": "solar",
      "within_days": 60
    }

    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.

    Columns of Permit Status Watch
    ColumnLabelTypeShown by default
    changeChangestringyes
    permit_numberPermitstringyes
    statusStatusstringyes
    previous_statusWasstringyes
    typeTypestringyes
    workWorkstringyes
    addressAddressstringyes
    postal_codeZIPstringno
    issue_dateIssueddateyes
    application_dateApplieddateno
    valueValue (USD)numberyes
    contractorContractorstringyes
    descriptionDescriptionstringno
    cityCitystringno
    observed_atRead atdatetimeno
    record_urlOpen dataurlno
    scoreScorenumberyes

    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-status-watch/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"params":{"city":"los_angeles","within_days":30,"only_changes":false,"permit_numbers":[],"address_contains":"","keyword":"","permits_to_read":200,"max_results":200},"unit_cap":100}'
    
    # 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": "los_angeles",
        "within_days": 30,
        "only_changes": False,
        "permit_numbers": [],
        "address_contains": "",
        "keyword": "",
        "permits_to_read": 200,
        "max_results": 200,
    }
    result = client.run_formula("permit-status-watch", params, unit_cap=100)
    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: "los_angeles",
      within_days: 30,
      only_changes: false,
      permit_numbers: [],
      address_contains: "",
      keyword: "",
      permits_to_read: 200,
      max_results: 200,
    };
    const { run, rows } = await client.runFormula("permit-status-watch", params, { unitCap: 100 });
    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": "los_angeles", "within_days": 30, "only_changes": false, "permit_numbers": []any{}, "address_contains": "", "keyword": "", "permits_to_read": 200, "max_results": 200}
    	run, rows, err := client.RunFormula(ctx, "permit-status-watch", params, &enrichednow.RunFormulaParams{UnitCap: 100})
    	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-status-watch", Map.of("city", "los_angeles", "within_days", 30, "only_changes", false, "permit_numbers", List.of(), "address_contains", "", "keyword", "", "permits_to_read", 200, "max_results", 200), FormulaRunOptions.builder().unitCap(100).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-status-watch --params-json '{"city":"los_angeles","within_days":30,"only_changes":false,"permit_numbers":[],"address_contains":"","keyword":"","permits_to_read":200,"max_results":200}' --unit-cap 100

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    {
      "name": "run_formula",
      "arguments": {
        "formula_id": "permit-status-watch",
        "params": {
          "city": "los_angeles",
          "within_days": 30,
          "only_changes": false,
          "permit_numbers": [],
          "address_contains": "",
          "keyword": "",
          "permits_to_read": 200,
          "max_results": 200
        }
      }
    }

    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 200 rows, after 1 scraper calls charged 1 units. Text over 160 characters is cut here and ends with … [truncated]; the API returns every value whole.

    JSON
    [
      {
        "change": "same",
        "permit_number": "26016-90000-32627",
        "status": "Issued",
        "previous_status": null,
        "type": "Bldg-Alter/Repair",
        "work": "Apartment",
        "address": "4353 N COLFAX AVE UNIT 1",
        "postal_code": "91604",
        "issue_date": "2026-11-21",
        "application_date": null,
        "value": 6800,
        "contractor": null,
        "description": "Re-roof with Class A or B roof covering material weighing less than 6 pounds per sq. ft. over existing solid sheathing 34 Squares. Class A roof covering is … [truncated]",
        "city": "Los Angeles",
        "observed_at": "2026-11-24T19:23:46.777455Z",
        "record_url": "https://data.lacity.org/d/pi9x-tg5x",
        "score": 20
      },
      {
        "change": "same",
        "permit_number": "26016-10000-23260",
        "status": "Issued",
        "previous_status": null,
        "type": "Bldg-Alter/Repair",
        "work": "Commercial",
        "address": "5001 E YORK BLVD",
        "postal_code": "90042",
        "issue_date": "2026-11-21",
        "application_date": "2026-08-31",
        "value": 62000,
        "contractor": null,
        "description": "STUCCO REPAIR FOR (E) 5,760 SF COMMERCIAL (B) OCCUPANCY BUILDING. REPLACEMENT OF (E) STOREFRONT WITH (N) STOREFRONT, LIKE FOR LIKE, NO CHANGES TO SIZE OR … [truncated]",
        "city": "Los Angeles",
        "observed_at": "2026-11-24T19:23:46.777455Z",
        "record_url": "https://data.lacity.org/d/pi9x-tg5x",
        "score": 20
      },
      {
        "change": "same",
        "permit_number": "26010-20000-04072",
        "status": "Issued",
        "previous_status": null,
        "type": "Bldg-New",
        "work": "1 or 2 Family Dwelling",
        "address": "6920 N WOODLAKE AVE",
        "postal_code": "91307",
        "issue_date": "2026-11-21",
        "application_date": "2026-08-06",
        "value": 56600,
        "contractor": null,
        "description": "(N) DETACHED 1-STORY SFD PER SB9 [NFPA-13D FIRE SPRINKLERS THROUGHOUT] **ePlan**",
        "city": "Los Angeles",
        "observed_at": "2026-11-24T19:23:46.777455Z",
        "record_url": "https://data.lacity.org/d/pi9x-tg5x",
        "score": 20
      }
    ]

    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: 100 units unless you give another (at least 1, at most 1000).

    With the answers above, a run is estimated at about 1 units for about 200 rows, and at most 1: 1 search across 1 source, about 200 rows. An estimate for no history; POST /v1/formulas/permit-status-watch/estimate gives yours, free.

    A preview, mode: preview, is the first 10 rows, charged at what they cost: about 1 units with the answers above. POST /v1/formulas/permit-status-watch/estimate with mode: preview gives yours, free.

    How a playbook is charged has the rule for every playbook.