---
title: How do I pull newly issued building permits from city open data into a weekly lead list? | AEC Agents
url: https://aecagents.si/use-cases/permit-data-leads
description: Many cities publish issued permits through open data APIs. A short script pulls the last 7 days, filters by work type and job cost, and writes a CSV you can sort for bidding or outreach.
last_modified: 2026-11-27
source: AEC Agents (free, open workflows; not engineering advice)
---

[AI assists](https://aecagents.si/use-cases/permit-data-leads#honesty-labels)Based on our own use · in regular use

# How do I pull newly issued building permits from city open data into a weekly lead list?

Many cities publish issued permits through open data APIs. A short script pulls the last 7 days, filters by work type and job cost, and writes a CSV you can sort for bidding or outreach.

Role
:   [General Contractor](https://aecagents.si/roles/general-contractor)

Discipline
:   Construction

Tools
:   NYC DOB NOW approved permits, Socrata API docs

Updated
:   27 November 2026

Tool links listed below; vendor features and pricing change, so confirm with the vendor.

## Short answer

Use ChatGPT or Claude Code: The AI writes the open-data query script and then filters and summarizes the weekly list. Many cities publish issued permits through open data APIs. A short script pulls the last 7 days, filters by work type and job cost, and writes a CSV you can sort for bidding or outreach. A person still checks: a few rows against the official portal; follow outreach rules.

## AI tie-in

**Tool:** ChatGPT or Claude Code

The AI writes the open-data query script and then filters and summarizes the weekly list.

### Prompt 1

```
Write a Python script that queries this Socrata dataset for permits issued in the last 7 days, keeps [fields], filters estimated cost over [amount], and writes a CSV: [dataset URL]
```

**Human check:** A few rows against the official portal; follow outreach rules.

## The problem

Pull newly issued building permits from city open data into a weekly lead list. This is a common, time-consuming task for a general contractor.

## What this workflow does

Many cities publish issued permits through open data APIs. A short script pulls the last 7 days, filters by work type and job cost, and writes a CSV you can sort for bidding or outreach.

**How it works:** AI drafts or analyzes. A person operates the tools, checks the work, and takes action.

**Your checkpoint:** Permit data usually has no phone or email. Follow privacy and anti-spam rules for any outreach.

## Before you start

- Access to the named tool; confirm license, version and cost with the vendor.
- A small, non-confidential sample to try the workflow on first.
- A qualified person to review the output before it is used.

### Tools and access

- [NYC DOB NOW approved permits (open data)](https://data.cityofnewyork.us/Housing-Development/DOB-NOW-Build-Approved-Permits/rbx6-tga4)
- [Socrata API docs](https://dev.socrata.com/)

## Follow the steps

1. Find your city's permit dataset on its open data portal.
2. Query the API with a date filter (issued in the last 7 days).
3. Keep address, work type, estimated cost, owner and applicant fields.
4. Spot check a few rows against the official portal.
5. Schedule it weekly and dedupe against last week's list.

## Try a small example

Replace the bracketed fields with your own project details. No tested sample run is published for this workflow yet.

### Sample input

```
Fill in the bracketed [fields] in the text below with your project data.
```

### Starter prompt

```
Write a Python script that queries this Socrata dataset for permits issued in the last 7 days, keeps [fields], filters estimated cost over [amount], and writes a CSV: [dataset URL]
```

### Expected output

```
Not published yet. Treat any output as a draft and check it against the source documents.
```

## Check the result

- Every value, citation or quantity traces back to a source document.
- Missing information is marked as missing, not filled in.

## Limits and recovery

- Permit data usually has no phone or email. Follow privacy and anti-spam rules for any outreach.
- Check your organization’s data policy before sharing project files with third-party tools.

**Stop or switch when:** The source cannot be verified, permissions are missing, or the result contains unsupported facts.

## Frequently asked questions

How does AI help with this?

ChatGPT or Claude Code: The AI writes the open-data query script and then filters and summarizes the weekly list. A person still checks: A few rows against the official portal; follow outreach rules.

How do I how do I pull newly issued building permits from city open data into a weekly lead list??

Find your city's permit dataset on its open data portal. Query the API with a date filter (issued in the last 7 days). Keep address, work type, estimated cost, owner and applicant fields. The full step list is above.

Does this use an AI agent or regular software?

It is labeled AI assists: AI drafts or analyzes. A person operates the tools, checks the work, and takes action.

What tools do I need?

NYC DOB NOW approved permits, Socrata API docs. Confirm license, version and cost with the vendor, and try it on a small non-confidential sample first.

Has this workflow been tested?

Based on our own use · in regular use. Written from a workflow we built and use. Specifics are generalized and no project data is published. Not independently verified.

## Where to go next

- [How do I flag risky contract and spec clauses with AI before legal review?](https://aecagents.si/use-cases/contract-risk-review)
- [How do I flag scope gaps in drawings and specs with AI before bid day?](https://aecagents.si/use-cases/precon-scope-gaps)
- [How do I invite subs and level bids in a bid management platform?](https://aecagents.si/use-cases/bid-management)
- [All General Contractor workflows](https://aecagents.si/roles/general-contractor)
- [All Estimating and takeoff workflows](https://aecagents.si/tasks/estimating-takeoff)

## Evidence and maintenance

Written from a workflow we built and use. Specifics are generalized and no project data is published. Not independently verified.

- [NYC DOB NOW approved permits (open data) (vendor site)](https://data.cityofnewyork.us/Housing-Development/DOB-NOW-Build-Approved-Permits/rbx6-tga4)
- [Socrata API docs (vendor site)](https://dev.socrata.com/)

## On this page

Start with a small sample and keep the original record open while you verify the result.

## How each workflow is labeled

Agent executes
:   An AI agent calls connected tools to carry out bounded actions. You set permissions and review the result.

AI assists
:   AI drafts or analyzes. A person operates the tools, checks the work, and takes action.

Conventional automation
:   Rules or specialist software perform the task. No AI agent is required.
