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.

Try it
Ready-made, maintained by usRecords, 15 fieldsv1.0

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

Streetoptional
Street name without the suffix, such as Fitzgerald.
Example: Fitzgerald
Blockoptional
Assessor block number.
Example: 4884
From dateoptional
Earliest filing date, YYYY-MM-DD.
Example: 2025-01-01
Statusoptional
Complaint status text, such as Active or Not Active.
Example: Active

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
Endpoint
POSThttps://pullrow.dev/v1/apis/sf-building-complaints/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

streettext
Street name without the suffix, such as Fitzgerald.
example: Fitzgerald
blocktext
Assessor block number.
example: 4884
from_datetext
Earliest filing date, YYYY-MM-DD.
example: 2025-01-01
statustext
Complaint status text, such as Active or Not Active.
example: Active

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

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 nameTypeShown on this page asFilled
complaint_numbertextComplaint number3 of 3
urllinkLink3 of 3
filed_datedateFiled date3 of 3
blocktextAssessor block3 of 3
lottextAssessor lot3 of 3
parcel_numbertextAssessor parcel number3 of 3
street_numbertextStreet number3 of 3
street_nametextStreet name3 of 3
street_suffixtextStreet suffix3 of 3
zip_codetextZip code3 of 3
statustextComplaint status3 of 3
complaint_descriptiontextComplaint description3 of 3
assigned_divisiontextAssigned division3 of 3
last_inspection_datedateLast inspection date1 of 3
closed_datedateClosed date1 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordComplaint numberAssessor blockAssessor lotAssessor parcel numberComplaint statusComplaint descriptionAssigned divisionStreet numberStreet nameStreet suffixZip codeFiled dateLast inspection dateClosed dateLink
120266393749140054914005ActiveDate 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 Division1126FitzgeraldAv94124Oct 8, 2026——data.sf.gov/resource/gm2e-bten.json?complaint_number=202663937
220266010849140054914005ActiveDate 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 Division1126FitzgeraldAv94124Jul 29, 2026——data.sf.gov/resource/gm2e-bten.json?complaint_number=202660108
320265628049380274938027Not ActiveAbandoned 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 Services1111FitzgeraldAv94124May 15, 2026May 21, 2026Aug 24, 2026data.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.
Known limits
  • 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.