San Francisco Building Complaints API
Building and housing complaints filed with San Francisco's Department of Building Inspection: complaint number, parcel, address, status, description and inspection dates, searchable by street, block and date.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from data.sf.gov/resource/gm2e-bten.json
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/sf-building-complaints/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"street":"Fitzgerald"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
15 fields.
Basics
- Complaint number
Example 202663937
- Assessor block
Example 4914
- Assessor lot
Example 005
- Assessor parcel number
Example 4914005
- Complaint status
Example Active
- Complaint description
What was complained about.
Example Date last observed: 07-oct-26; time last observed: 8am; exact location: rear bldg; building type: residence/dwelling…
- Assigned division
Division handling the complaint.
Example Building Inspection Division
Location
- Street number
Example 1126
- Street name
Example Fitzgerald
- Street suffix
Street suffix such as St or Av.
Example Av
- Zip code
Example 94124
Dates
- Filed date
Day the complaint was filed.
Example Oct 8, 2026
- Last inspection date
Day of the last inspection.
Example May 21, 2026
- Closed date
Day the complaint was closed.
Example Aug 24, 2026
Links
- Link
Link to the open data record.
Example data.sf.gov/resource/gm2e-bten.json?complaint_number=202663937
Technical detailsField names and types for developers
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
complaint_number | text | Complaint number | 3 of 3 |
url | link | Link | 3 of 3 |
filed_date | date | Filed date | 3 of 3 |
block | text | Assessor block | 3 of 3 |
lot | text | Assessor lot | 3 of 3 |
parcel_number | text | Assessor parcel number | 3 of 3 |
street_number | text | Street number | 3 of 3 |
street_name | text | Street name | 3 of 3 |
street_suffix | text | Street suffix | 3 of 3 |
zip_code | text | Zip code | 3 of 3 |
status | text | Complaint status | 3 of 3 |
complaint_description | text | Complaint description | 3 of 3 |
assigned_division | text | Assigned division | 3 of 3 |
last_inspection_date | date | Last inspection date | 1 of 3 |
closed_date | date | Closed date | 1 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Complaint number | Assessor block | Assessor lot | Assessor parcel number | Complaint status | Complaint description | Assigned division | Street number | Street name | Street suffix | Zip code | Filed date | Last inspection date | Closed date | Link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 202663937 | 4914 | 005 | 4914005 | Active | Date last observed: 07-oct-26; time last observed: 8am; exact location: rear bldg; building type: residence/dwelling work w/o permit; ; additional information: the property remains in a severely deteriorated and incomplete condition, with no construction progress for an extended… | Building Inspection Division | 1126 | Fitzgerald | Av | 94124 | Oct 8, 2026 | — | — | data.sf.gov/resource/gm2e-bten.json?complaint_number=202663937 |
| 2 | 202660108 | 4914 | 005 | 4914005 | Active | Date last observed: 26-jul-26; time last observed: 2:00am; exact location: main bldg; building type: residence/dwelling work beyond scope of permit; ; additional information: extended the envelope outside the scope of permitted work; | Building Inspection Division | 1126 | Fitzgerald | Av | 94124 | Jul 29, 2026 | — | — | data.sf.gov/resource/gm2e-bten.json?complaint_number=202660108 |
| 3 | 202656280 | 4938 | 027 | 4938027 | Not Active | Abandoned and not lived in for the last 10 years, overgrown front lawn, abandoned/rusted car in driveway for years, starting to deteriorate and the neighborhood is now getting mosquitoes so i'm wondering if the roof or house is flooded. someone used to come by (family who lives… | Housing Inspection Services | 1111 | Fitzgerald | Av | 94124 | May 15, 2026 | May 21, 2026 | Aug 24, 2026 | data.sf.gov/resource/gm2e-bten.json?complaint_number=202656280 |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Covers complaints filed with the city's building department from the city's open data portal, updated daily; older records can lack a closing date or a description.
- Street and status filters are matched in upper case, so 'fitzgerald' and 'Fitzgerald' find the same rows; the street input is the street name without its suffix (Fitzgerald, not Fitzgerald Ave).
- The city's portal allows light anonymous use without a key; heavy use may be throttled and then the run ends early with the records so far.
- Open data published by the City and County of San Francisco under its open data terms; credit DataSF.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.