San Francisco Building Permit Lookup Scraper
Pricing
from $0.49 / 1,000 results
San Francisco Building Permit Lookup Scraper
Search San Francisco's official building permit records by type, status, neighborhood, district, zip code, use, construction type, cost or date range, or look up by permit number, address, or assessor block and lot.
Pricing
from $0.49 / 1,000 results
Rating
0.0
(0)
Developer
crawlyth forge
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Features
Share
The San Francisco Department of Building Inspection (DBI) publishes every building permit application the city processes. This actor searches or filters that permit record by type, status, neighborhood, district, zip code, use, construction type, cost or filed/issued date, or looks a permit up directly by permit number, property address, or assessor block and lot. No login or API key required.
What this actor does
- Four modes:
search(filter/browse),byPermitNumber(exact permit lookup),byAddress(lookup by street number + street name),byBlockLot(lookup by assessor's block & lot) - Rich filters: permit type, status, neighborhood, supervisor district, zip code, existing/proposed use, existing/proposed construction type, estimated-cost range, filed-date range, issued-date range, description keyword, geographic radius around a lat/lon point
- Special-project toggles: ADU (Accessory Dwelling Unit), fire-only permit, site permit, structural notification, voluntary soft-story seismic retrofit, reroofing
- Optional contacts — add contractor, subcontractor, architect, designer, engineer, and applicant contacts from DBI's companion contacts dataset (
includeContacts) - Full-text search across the permit's work description and other text fields
- Every permit application — one record per permit, spanning new construction, alterations/repairs, demolitions, signs, grading, and more
- Geo data — latitude/longitude, neighborhood, supervisor district, zip code, block/lot
- Empty fields are omitted — a permit missing a completion date or a construction-type code simply has no such field, never a placeholder
Output per permit record
permitNumber— DBI permit number (usually one row per permit, but DBI's own dataset occasionally publishes more than one row for the same permit number — e.g. a permit renewal alongside its original record;rowIdis the actual unique key)permitType,permitTypeDefinition— DBI permit classification code and definitionprimaryPriority,allPriorityTypes— DBI priority-program designation (for example ADU-State/Hybrid, Housing-New, Premium) and every priority type recorded on the permitstatus,statusDate— current status and when it was last setfiledDate,issuedDate,completedDate,approvedDate,firstConstructionDocumentDate,permitCreationDate,lastPermitActivityDatedescription— free-text work descriptionstreetNumber,streetNumberSuffix,streetName,streetSuffix,unit,unitSuffix,fullAddresscity,state— always San Francisco, CAblock,lot,blockLot— assessor parcel identifiersneighborhood— SF planning analysis neighborhoodsupervisorDistrict— Board of Supervisors district (1-11)zipcodelatitude,longitudenumberOfExistingStories,numberOfProposedStoriesestimatedCost,revisedCost(USD)existingUse,existingUnits,proposedUse,proposedUnitsplansetsexistingOccupancy,proposedOccupancy— building-code occupancy classificationexistingConstructionType,existingConstructionTypeDescription,proposedConstructionType,proposedConstructionTypeDescriptionstructuralNotification,voluntarySoftStoryRetrofit,fireOnlyPermit,sitePermit,adu,primaryAddressFlag,reroof— booleans, only present when the flag appliestidfCompliance— Transportation Impact Development Fee compliance code (Y/R/P/E)applicationSubmissionMethodpointSource— how the property's geolocation point was derivedrecordId— DBI's internal record identifier (links related permit applications)dataAsOf— when SF Open Data last refreshed this rowrowId— stable Socrata row identifiersourceUrl— direct link to this exact record on SF's open-data APIcontacts— whenincludeContactsis on: the DBI permit contacts (role, name, firm, license, address, active dates) from the companion Building Permits Contacts datasetcontractorName,contractorFirmName,contractorLicense— convenience fields from the contractor contact, when presentrecordType: "buildingPermit",scrapedAt
Input
| Field | Type | Default | Description |
|---|---|---|---|
mode | string | search | search (filter/browse), byPermitNumber, byAddress, or byBlockLot |
searchQuery | string | – | Full-text search across description/address text fields (mode=search) |
descriptionKeyword | string | – | Case-insensitive substring match on the work description |
permitNumbers | array | – | Exact permit numbers to fetch (mode=byPermitNumber) |
streetNumber / streetName | string | – | Street number + name for an address lookup (mode=byAddress) |
streetSuffix / unit | string | – | Optional narrowing for an address lookup (mode=byAddress) |
block / lot | string | – | Assessor block & lot for a parcel lookup (mode=byBlockLot) |
permitType | string | any | One of 9 DBI permit types (new construction, alterations, demolitions, signs, etc.) |
status | string | any | One of 23 current permit statuses (issued, complete, expired, filed, etc.) |
neighborhood | string | any | One of 41 SF analysis neighborhoods |
supervisorDistrict | string | any | Board of Supervisors district 1-11 |
zipcode | string | any | One of 30 SF zip codes |
existingUse / proposedUse | string | any | One of 99 standardized property-use categories |
existingConstructionType / proposedConstructionType | string | any | Building-code construction-type classification |
primaryPriority | string | any | DBI priority program (19 values: ADU-State/Hybrid, Housing-New, Premium, etc.) |
tidfCompliance | string | any | TIDF compliance code: Y paid/compliant, R reduced, P pending, E exempt |
filedDateFrom / filedDateTo | string | – | ISO date range (YYYY-MM-DD) on the filed date |
issuedDateFrom / issuedDateTo | string | – | ISO date range (YYYY-MM-DD) on the issued date |
minEstimatedCost / maxEstimatedCost | number | – | Estimated construction cost bounds (USD, 0–1,000,000,000) |
nearLatitude / nearLongitude | number | – | Only include permits within nearRadiusMeters of this point; applies in any mode |
nearRadiusMeters | number | 500 | Radius in meters for the geographic filter (1–5000); only applies when both lat/lon are set |
aduOnly | boolean | false | Only include Accessory Dwelling Unit permits |
fireOnlyPermitOnly | boolean | false | Only include fire-department-only permits |
sitePermitOnly | boolean | false | Only include site permits (large multi-phase projects) |
structuralNotificationOnly | boolean | false | Only include permits with a structural notification |
voluntarySoftStoryRetrofitOnly | boolean | false | Only include voluntary soft-story seismic retrofit permits |
reroofOnly | boolean | false | Only include reroofing permits |
sortBy | string | filedDateDesc | Sort order — filed date, issued date, status date, or estimated cost |
includeContacts | boolean | false | Also fetch DBI permit contacts (contractor/architect/engineer) and add contacts + contractor fields |
appToken | string | – | Optional free Socrata app token for higher rate limits |
maxItems | int | 50 (prefill 3) | Hard cap on emitted records (1–10000) |
Legacy input compatibility
Saved tasks from earlier builds keep working. The current key always wins; when it is absent the actor maps these aliases in code (they are intentionally not shown as separate schema fields):
| Legacy key | Maps to |
|---|---|
query, search, q | searchQuery |
maxResults | maxItems |
permitNumber (string or list) | permitNumbers |
sort (newest, oldest, cost_desc, …) | sortBy |
blockLot / block_and_lot (3537/027) | block + lot |
The production prefill (mode=search, maxItems=3) returns records unchanged.
Example: browse the latest filed permits
{"mode": "search","sortBy": "filedDateDesc","maxItems": 20}
Example: lookup by permit number
{"mode": "byPermitNumber","permitNumbers": ["201903226060"]}
Example: all permits at a specific address
{"mode": "byAddress","streetNumber": "760","streetName": "14th","streetSuffix": "St"}
Example: all permits on a specific assessor parcel
{"mode": "byBlockLot","block": "3537","lot": "027"}
Example: high-value new-construction permits in a neighborhood
{"mode": "search","permitType": "1","neighborhood": "South of Market","minEstimatedCost": 500000,"maxItems": 100}
Example: voluntary soft-story seismic retrofit permits
{"mode": "search","voluntarySoftStoryRetrofitOnly": true,"maxItems": 200}
Example: ADU permits filed in 2024
{"mode": "search","aduOnly": true,"filedDateFrom": "2024-01-01","filedDateTo": "2024-12-31","maxItems": 200}
Example: permits within 500m of a specific point (e.g. Civic Center)
{"mode": "search","nearLatitude": 37.7793,"nearLongitude": -122.4193,"nearRadiusMeters": 500,"maxItems": 100}
Use cases
- Real estate research — check permit history, open work, and estimated construction cost for a property before buying or renting
- Contractor / architect prospecting — find recent new-construction or alteration permits by neighborhood, use type, or cost range
- Seismic-safety tracking — monitor voluntary soft-story retrofit uptake across the city
- ADU market research — track Accessory Dwelling Unit permit volume and location trends
- Journalism & policy research — investigate construction trends, demolition activity, or permit-processing timelines
- Academic research — bulk-export permit data for urban-planning or housing studies
FAQ
What is the data source?
The San Francisco Department of Building Inspection's "Building Permits" dataset, published on SF Open Data (Socrata, dataset ID i98e-djp9) and refreshed regularly by the city. When includeContacts is on, the actor also reads the companion "Building Permits Contacts" dataset (3pee-9qhc) by permit number.
Is this affiliated with the City and County of San Francisco or DBI? No. This is an independent, third-party actor built on SF's public open-data API.
Why does the actor use data.sfgov.org instead of sfdbi.org?
sfdbi.org is a legacy domain that now redirects to www.sf.gov, which sits behind a WAF challenge that blocks direct automated access. The DBI's actual permit records are published in full by the city on its official open-data platform, data.sfgov.org — the same underlying dataset that powers SF DBI's public permit lookups — so this actor reads directly from that authoritative source instead.
What does estimatedCost vs revisedCost mean?
estimatedCost is the cost declared at filing time; revisedCost reflects any cost revision made during plan review or construction. When no revision was recorded, only estimatedCost appears.
What does tidfCompliance mean?
The Transportation Sustainability/Impact Development Fee compliance code: Y (paid/compliant), R (reduced), P (pending), or E (exempt). Only present when DBI recorded a value.
Why do some construction-type fields show unusual values like V, B, or III instead of 1–5?
This mirrors data-entry inconsistencies present in the source dataset itself — DBI sometimes records construction type using building-code Roman-numeral/letter designations instead of the standard numeric 1–5 codes. The actor passes through whatever value DBI's system recorded rather than guessing a normalization.
Why do some permits have no structuralNotification/voluntarySoftStoryRetrofit/fireOnlyPermit/sitePermit/reroof field?
These are opt-in flags DBI only records as Y when they apply; when a permit doesn't carry the flag, the field is omitted rather than shown as false.
How does the address lookup (byAddress) work?
Supply streetNumber and streetName (required together); optionally add streetSuffix and/or unit to narrow the match further. Matching on streetName is case-insensitive and exact (not fuzzy), matching DBI's own address indexing.
How fresh is the data?
SF Open Data refreshes this dataset regularly (the city notes that as of December 2024 it publishes new/changed rows incrementally). Each record includes a dataAsOf field showing when it was last synced upstream from DBI's permit-tracking system.
Are there rate limits? The Socrata API allows unauthenticated access with reasonable limits. Supplying a free Socrata app token (optional) raises those limits, but the actor works without one.
Limitations
- One city. This actor covers San Francisco only. The DBI "Building Permits" dataset (
i98e-djp9) is the authoritative source. Contractor, architect, engineer, and applicant contacts live in the companion3pee-9qhcdataset and are available withincludeContacts; owner, document, and inspection fields are not published in these datasets. - Offset pagination. Socrata returns rows through
$offset; the actor asks for up to 1,000 rows per request, stops atmaxItems(1–10,000), at source exhaustion, or after repeated pages with no matching rows. Very large requests take longer and are best split by date or neighborhood. - Snapshot, not real time. Each row carries
dataAsOf, the time DBI's system last synced it to SF Open Data. Newly filed permits can take a short while to appear. - Sparse flags stay sparse. Priority, TIDF, retrofit, fire-only, site-permit, and reroof fields are only present when DBI recorded a value; they are omitted rather than emitted as placeholders.