# WPRDC (data.wprdc.org): Pittsburgh permits, code violations, condemnations and contractor licences · Search permits

Search property, job and marketplace listings with WPRDC (data.wprdc.org): Pittsburgh permits, code violations, condemnations and contractor licences · Search permits from Alexandria through one Spiral API key. Use for permits at a Pittsburgh address or parcel, a contractor's permits, or new permits since a date: to poll, pass issued_since (the last day you checked) and dedupe on permit_number. There is no updated_since: WPRDC wipes and reloads the table on every load, so rows carry no change time. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Listings
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `data-wprdc-org/building-permits/search_permits`
- Page: https://spiral.ai/tools/alexandria/data-wprdc-org/building-permits/search_permits

## Pricing

$0.00873 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `zip` | text |  | — | 5-digit ZIP code (15212). Pattern: ^[0-9]{5}$. |
| `sort` | one of | issued_desc, valuation_desc | issued_desc | issued_desc: newest issued first; valuation_desc: largest project value first. |
| `limit` | number | 1 to 100 | 25 | Rows per page. |
| `cursor` | text |  | — | next_cursor from the previous page; repeat the same filters with it. Pattern: ^[0-9]+$. |
| `status` | text |  | — | Case-insensitive word match: every word must start a word of the column (prefix), in any order of the status: issued, completed, expired, revoked, stop work, in review. |
| `address` | text |  | — | Case-insensitive word match: every word must start a word of the column (prefix), in any order. Street line only (1815 Lowrie St, 56 South 12th Street); text after a comma is ignored and Street, Avenue, Road, Drive, North, South and similar become the city's abbreviations (ST, AVE, RD, DR, N, S). |
| `parcel_id` | text |  | — | Allegheny County parcel id (block and lot), exact: 16 characters as the datasets store it (0048J00305000000) or the county's dashed form (0048-J-00305-0000-00). The same id joins permits, violations and condemned properties. Pattern: ^[0-9A-Za-z -]+$. |
| `work_type` | text |  | — | Case-insensitive word match: every word must start a word of the column (prefix), in any order of the work type: new construction, alteration, addition, demolition, replacement. |
| `contractor` | text |  | — | Case-insensitive word match: every word must start a word of the column (prefix), in any order of the contractor of record (Lorand Electric, Sunrun). |
| `description` | text |  | — | Case-insensitive word match: every word must start a word of the column (prefix), in any order of the scope of work (solar, deck, roof, generator). |
| `permit_type` | text |  | — | Case-insensitive word match: every word must start a word of the column (prefix), in any order of the permit type: building (BUILDING and Building & Development Application), electrical, mechanical, demolition, sign, fire alarm, suppression, occupancy, storm water. |
| `issued_since` | text |  | — | Only permits issued on or after this day, YYYY-MM-DD. Use the last day you checked to poll for new permits. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| `issued_until` | text |  | — | Only permits issued on or before this day, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| `neighborhood` | text |  | — | Case-insensitive word match: every word must start a word of the column (prefix), in any order of the city neighborhood (Lawrenceville, South Side Flats, Squirrel Hill North). |
| `permit_class` | one of | commercial, residential | — | commercial or residential. |
| `min_valuation` | number | 0 to 1000000000000 | — | Only permits whose total project value is at least this many USD. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "data-wprdc-org/building-permits/search_permits",
    "input": {
      "zip": "<zip>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=data-wprdc-org%2Fbuilding-permits%2Fsearch_permits

## Common questions

### WPRDC (data.wprdc.org): Pittsburgh permits, code violations, condemnations and contractor licences · Search permits

**How much does WPRDC (data.wprdc.org): Pittsburgh permits, code violations, condemnations and contractor licences · Search permits cost?**

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use WPRDC (data.wprdc.org): Pittsburgh permits, code violations, condemnations and contractor licences · Search permits through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "data-wprdc-org/building-permits/search_permits"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use WPRDC (data.wprdc.org): Pittsburgh permits, code violations, condemnations and contractor licences · Search permits?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use WPRDC (data.wprdc.org): Pittsburgh permits, code violations, condemnations and contractor licences · Search permits?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

