San Francisco Building Permit Lookup Scraper avatar

San Francisco Building Permit Lookup Scraper

Pricing

from $0.49 / 1,000 results

Go to Apify Store
San Francisco Building Permit Lookup Scraper

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

crawlyth forge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

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; rowId is the actual unique key)
  • permitType, permitTypeDefinition — DBI permit classification code and definition
  • primaryPriority, allPriorityTypes — DBI priority-program designation (for example ADU-State/Hybrid, Housing-New, Premium) and every priority type recorded on the permit
  • status, statusDate — current status and when it was last set
  • filedDate, issuedDate, completedDate, approvedDate, firstConstructionDocumentDate, permitCreationDate, lastPermitActivityDate
  • description — free-text work description
  • streetNumber, streetNumberSuffix, streetName, streetSuffix, unit, unitSuffix, fullAddress
  • city, state — always San Francisco, CA
  • block, lot, blockLot — assessor parcel identifiers
  • neighborhood — SF planning analysis neighborhood
  • supervisorDistrict — Board of Supervisors district (1-11)
  • zipcode
  • latitude, longitude
  • numberOfExistingStories, numberOfProposedStories
  • estimatedCost, revisedCost (USD)
  • existingUse, existingUnits, proposedUse, proposedUnits
  • plansets
  • existingOccupancy, proposedOccupancy — building-code occupancy classification
  • existingConstructionType, existingConstructionTypeDescription, proposedConstructionType, proposedConstructionTypeDescription
  • structuralNotification, voluntarySoftStoryRetrofit, fireOnlyPermit, sitePermit, adu, primaryAddressFlag, reroof — booleans, only present when the flag applies
  • tidfCompliance — Transportation Impact Development Fee compliance code (Y/R/P/E)
  • applicationSubmissionMethod
  • pointSource — how the property's geolocation point was derived
  • recordId — DBI's internal record identifier (links related permit applications)
  • dataAsOf — when SF Open Data last refreshed this row
  • rowId — stable Socrata row identifier
  • sourceUrl — direct link to this exact record on SF's open-data API
  • contacts — when includeContacts is on: the DBI permit contacts (role, name, firm, license, address, active dates) from the companion Building Permits Contacts dataset
  • contractorName, contractorFirmName, contractorLicense — convenience fields from the contractor contact, when present
  • recordType: "buildingPermit", scrapedAt

Input

FieldTypeDefaultDescription
modestringsearchsearch (filter/browse), byPermitNumber, byAddress, or byBlockLot
searchQuerystring–Full-text search across description/address text fields (mode=search)
descriptionKeywordstring–Case-insensitive substring match on the work description
permitNumbersarray–Exact permit numbers to fetch (mode=byPermitNumber)
streetNumber / streetNamestring–Street number + name for an address lookup (mode=byAddress)
streetSuffix / unitstring–Optional narrowing for an address lookup (mode=byAddress)
block / lotstring–Assessor block & lot for a parcel lookup (mode=byBlockLot)
permitTypestringanyOne of 9 DBI permit types (new construction, alterations, demolitions, signs, etc.)
statusstringanyOne of 23 current permit statuses (issued, complete, expired, filed, etc.)
neighborhoodstringanyOne of 41 SF analysis neighborhoods
supervisorDistrictstringanyBoard of Supervisors district 1-11
zipcodestringanyOne of 30 SF zip codes
existingUse / proposedUsestringanyOne of 99 standardized property-use categories
existingConstructionType / proposedConstructionTypestringanyBuilding-code construction-type classification
primaryPrioritystringanyDBI priority program (19 values: ADU-State/Hybrid, Housing-New, Premium, etc.)
tidfCompliancestringanyTIDF compliance code: Y paid/compliant, R reduced, P pending, E exempt
filedDateFrom / filedDateTostring–ISO date range (YYYY-MM-DD) on the filed date
issuedDateFrom / issuedDateTostring–ISO date range (YYYY-MM-DD) on the issued date
minEstimatedCost / maxEstimatedCostnumber–Estimated construction cost bounds (USD, 0–1,000,000,000)
nearLatitude / nearLongitudenumber–Only include permits within nearRadiusMeters of this point; applies in any mode
nearRadiusMetersnumber500Radius in meters for the geographic filter (1–5000); only applies when both lat/lon are set
aduOnlybooleanfalseOnly include Accessory Dwelling Unit permits
fireOnlyPermitOnlybooleanfalseOnly include fire-department-only permits
sitePermitOnlybooleanfalseOnly include site permits (large multi-phase projects)
structuralNotificationOnlybooleanfalseOnly include permits with a structural notification
voluntarySoftStoryRetrofitOnlybooleanfalseOnly include voluntary soft-story seismic retrofit permits
reroofOnlybooleanfalseOnly include reroofing permits
sortBystringfiledDateDescSort order — filed date, issued date, status date, or estimated cost
includeContactsbooleanfalseAlso fetch DBI permit contacts (contractor/architect/engineer) and add contacts + contractor fields
appTokenstring–Optional free Socrata app token for higher rate limits
maxItemsint50 (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 keyMaps to
query, search, qsearchQuery
maxResultsmaxItems
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 companion 3pee-9qhc dataset and are available with includeContacts; 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 at maxItems (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.