Skip to content
DataMint
Up to date · 2026-12-02Construction permitsUnited StatesPaid per request

San Francisco building permits (DBI)

Building permit applications filed with the San Francisco Department of Building Inspection, one row per permit and address: permit number, type, status, description of the work, street address, coordinates, estimated cost and the filed, issued and completed dates. The portal adds new and changed rows daily; a day here is the day a row was loaded.

Data last changed 2026-12-01 (version 2026-12-01.1).

us.construction.permits_san_francisco

Overview

Records
13,789
Current version
2026-12-01.1
Published
2026-12-01
Updated
weekly
Language of the text
en
Quality of the latest run
100% complete, 0% rejected

The badge states whether the dataset is kept up to date: a run that found nothing new, or that was skipped on purpose, still counts as checked. The date the data last changed is the version shown above. The source is updated weekly.

Schema

Model BuildingPermit, schema version 1.0. Every record has these fields; a field that is "may be empty" is present with no value when the source has none.

  • Fieldpermit_number
    Typestring
    Rulesup to 64 characters
  • Fieldjurisdiction
    Typestring
    Rulesup to 128 characters
  • Fieldpermit_type
    Typestring, may be empty
    Rulesone of new_construction, addition_alteration, demolition, electrical, mechanical, plumbing, other
  • Fieldsource_permit_type
    Typestring, may be empty
    Rulesup to 255 characters
  • Fieldstatus_category
    Typestring, may be empty
    Rulesone of applied, issued, finaled, expired, cancelled, other
  • Fieldstatus
    Typestring, may be empty
    Rulesup to 255 characters
  • Fielddescription
    Typestring, may be empty
    Rules—
  • Fieldwork_class
    Typestring, may be empty
    Rulesup to 255 characters
  • Fieldaddress
    Typestring, may be empty
    Rulesup to 255 characters
  • Fieldpostal_code
    Typestring, may be empty
    Rulesup to 16 characters
  • Fieldlatitude
    Typenumber, may be empty
    Rules—
  • Fieldlongitude
    Typenumber, may be empty
    Rules—
  • Fieldestimated_cost
    Typestring, may be empty
    Rulesfixed pattern
  • Fieldcurrency
    Typestring, may be empty
    Rulesfixed pattern
  • Fieldissued_on
    Typestring, may be empty
    Rulesfixed pattern
  • Fieldapplied_on
    Typestring, may be empty
    Rulesfixed pattern
  • Fieldfinaled_on
    Typestring, may be empty
    Rulesfixed pattern

Filters for the query API

These are the only filters the query endpoint accepts for this dataset.

  • Filterjurisdiction
    Matchesequals
    DescriptionThe issuing city as published here, e.g. "San Francisco, CA" (any letter case).
  • Filterpermit_type
    Matchesenum
    DescriptionOur permit type, derived from the source type and work class.
  • Filterstatus_category
    Matchesenum
    DescriptionOur status category, derived from the source status.
  • Filterpostal_code
    Matchesequals
    DescriptionPostal (ZIP) code of the project address, where the source gives one.
  • Filterissued
    Matchesdate range
    DescriptionIssue date, inclusive: `{"from": "2026-11-01", "to": "2026-11-30"}`.
  • Filterlocation
    Matchesarea (box or radius)
    DescriptionPermits within a bounding box or a radius (at most 50 km) of a point.

Preview

  • permit number202211176792
    jurisdictionSan Francisco, CA
    permit typeaddition_alteration
    source permit typeotc alterations permit
    status categorycancelled
    statuscancelled
  • permit number201502239104
    jurisdictionSan Francisco, CA
    permit typeother
    source permit typesign - erect
    status categorycancelled
    statuscancelled
  • permit number201511102200
    jurisdictionSan Francisco, CA
    permit typeother
    source permit typesign - erect
    status categorycancelled
    statuscancelled
  • permit number202505055812
    jurisdictionSan Francisco, CA
    permit typeaddition_alteration
    source permit typeotc alterations permit
    status categoryfinaled
    statuscomplete
  • permit numberM11404
    jurisdictionSan Francisco, CA
    permit typeaddition_alteration
    source permit typeotc alterations permit
    status categorycancelled
    statuscancelled

Showing 6 of 17 fields and long values shortened. The download has everything, including the verbatim source text of each record.

Versions

  • Version2026-12-01.1
    StatusCurrent
    Published2026-12-01
    Records13,789
    What changed13,789 added
    Files

Download

The current version, 2026-12-01.1. Each file carries the attribution the licence asks for.

Downloads are paid

A download costs 0.60 USDC per file in USDC on Base. Pay with a browser wallet (MetaMask, Coinbase Wallet, Rabby or your wallet's own browser) and the file is saved when the payment is confirmed. Signing costs no gas. Or pay with your own x402 client.
  • JSON

    One document with the dataset, version and attribution, then every record with its normalised fields and the verbatim source text. Best for programs and agents.

  • CSV

    One row per record with a header row and the attribution on every row. Opens in spreadsheets; lists are joined into one cell.

  • GeoJSON

    One point per record (longitude, latitude) with the normalised fields as properties, for maps and GIS tools. Only for datasets that have coordinates.

Follow the changes instead of downloading everything

This dataset publishes what each version added, changed and removed. Fetching only that is much smaller than the full file.

How downloads behave
  • The buttons above always give the newest version. Every file also has an address that names its version (see the table of versions); that file never changes and can be kept forever.
  • Each download has an ETag. Send it back in an If-None-Match header and the server answers 304 with no file when nothing changed, so a script can check often at no cost.
  • This dataset is large. A full download is read from the database as it is sent, so it can take a while to start, and it counts against the limit on queries per minute for your address. If you are refused, wait a minute and try again.
  • Parquet are planned but not available yet.

Use it

Everything on this page is also available from the API, for scripts and AI agents.

Download the current version
curl -L -O -J "https://datamint.cloud/v1/datasets/us.construction.permits_san_francisco/download?format=csv"
Query records with a filter
curl -X POST "https://datamint.cloud/v1/datasets/us.construction.permits_san_francisco/query" \
  -H "content-type: application/json" \
  -d '{"filters": {"permit_type":"new_construction"}, "limit": 10}'
Keep a local copy current (for an agent or a script)
// Ask again only when the dataset changed: the ETag says so (304 means "unchanged").
const url = "https://datamint.cloud/v1/datasets/us.construction.permits_san_francisco/download?format=json";
let etag = null; // keep it between runs

async function refresh() {
  const res = await fetch(url, { headers: etag ? { "if-none-match": etag } : {} });
  if (res.status === 304) return null; // nothing new
  etag = res.headers.get("etag");
  return res.json(); // { dataset, version, attribution, records: [...] }
}
Machine-readable description of the whole API
curl "https://datamint.cloud/v1/openapi.json"

OpenAPI description

Licence and attribution

Open Data Commons Public Domain Dedication and License (PDDL) 1.0 (terms)

Access and pricing

Pay per request

Pay per request in USDC on Base with the x402 protocol. Metadata, schema, versions and previews are free.

Record query per query
0.03 USDC
Download per file
0.60 USDC
Change file per version
0.23 USDC

Paid in USDC on Base with the x402 protocol, no account needed. The catalogue, this page, the schema, the versions and the preview are free. See how to pay.