Housing data API

Colorado building permits, demographics, jobs and commuting, and housing profiles, from Barn Swallow Consulting. Version 1.

Every request sends a key in the Authorization header. Keys are issued by Barn Swallow Consulting, belong to one organisation, and can be revoked at any time. Keys are never sent in a URL.

curl -H "Authorization: Bearer bsk_..." "https://api.barnswallow.consulting/v1/permits?issuer=denver&category=new_residential&limit=10"

Responses

Every answer is {"meta": {...}, "data": ...}. meta says which data version answered, what date it was collected through, the sources with their citations and licences, and any notice that must be shown with the data. The citation is the one to show beside any figure you publish.

A value the issuing office didn't give is null. Errors are {"error": {"code", "message"}}: 400 bad request, 401 key, 403 scope, 404 not found, 429 limit (with Retry-After), 503 not available.

Permits

GET /v1/permitsSingle permits, newest first. Filter with issuer, category, residential_type, located (issuer, geocoded, none), status, zip, city, subdivision, parcel, from, to (dates), min_units, bbox=west,south,east,north. limit is up to your key’s page size; follow meta.next with after.
GET /v1/permits/{id}One permit.
GET /v1/permits/summaryPermits and homes by up to three of month, year, category, issuer, residential_type, location, with the same filters. by=month for a series.
GET /v1/permits/totalsHow many permits and offices, the dates covered, and how many are located.
GET /v1/permits/fieldsEach field, what it means and how often it is filled in.
GET /v1/coverageNew-home permits against the Census Building Permits Survey, by office or by month.

Demographics, commuting and profiles

Areas are state, county, place, zcta (ZIP code area), cbsa (metro area), school_district, tract and bg (block group). The block group is the smallest area served.

GET /v1/demographics/{type}/{id}American Community Survey tables with their margins of error (tables=B25003,B19013, up to 12; vintages=2024,2019 or all), and with include: population (estimates), forecast, migration, lending, prices. from and to bound the yearly series.
GET /v1/commuting/{type}/{id}Where workers live and work: jobs, residents’ jobs, inflow and outflow, by age, earnings and industry, for years= (2002 on, or all). jobs=all or primary; partners=county, place, tract or none. Partners under 10 jobs are added together.
GET /v1/profiles/{type}/{id}A housing profile: households by age, tenure, income and size, stock, change, growth, jobs and commuting, prices, home-purchase loans, movers, and new-home permits by month.

Every estimate from a sample comes with its 90% margin of error, and a figure without one says why. A figure marked as a Barn Swallow calculation adds Census’s own cells. meta.releases lists each release used, with the day it was published.

Places and maps

GET /v1/geographies?type=&q=&county=Areas by type, name, state or county; permit offices too (type=office). vintage=2010 for 2010 tracts and block groups.
GET /v1/geographies/{type}/{id}One area: its parents, 2020 population and housing units, and simplified boundary (geometry=simple, full or none).
GET /v1/permits/mapWhat the map tiles hold and how to colour them.
GET /v1/tiles/permits/{z}/{x}/{y}.mvtMap tiles. Below zoom 13 one layer of hexagons (hex); from 13 the points (pt) and the estimated hexagons (est).
GET /v1/tiles/offices/{z}/{x}/{y}.mvtOffice areas.

Where a permit is

Every permit says how it was located: issuer (the office's own coordinates), geocoded (its address matched to a point by the Census Bureau's geocoder) or none. A permit that isn't located has no point. Permits placed by estimate are only ever counted in hexagons, in separate fields whose names start e_, and are never points.

Dates and as_of

A permit's date is the issue date, or the application date where the office gives no issue date. For permits, as_of=YYYY-MM-DD returns only what was held on that date, as it was held then. For statistics it uses only releases published by that date.

Fields

idThe permit’s id: state, office and permit number.
stateTwo-letter state.
issuerThe office that issued the permit.
bps_idThe office’s id in the Census Building Permits Survey.
permit_numberThe permit number the office gave it.
permit_typeThe office’s own permit type.
work_classThe office’s subtype or work class.
descriptionThe office’s description of the work, without phone numbers, emails or people’s names.
categoryKind of permit: new_residential, adu, demolition, residential_addition_alteration, new_nonresidential, nonresidential_alteration, roofing, solar, trade, other.
residential_typeFor homes: sf_detached, sf_attached, duplex, multifamily, adu or manufactured.
housing_unitsHomes the permit adds, where the office records it.
statusThe permit’s status, as the office gives it.
applied_dateDate applied for.
issued_dateDate issued.
final_dateFinal inspection or certificate of occupancy.
addressStreet address of the work.
cityCity, as the office gives it.
zipZIP code.
locationLatitude and longitude with `source`: issuer, geocoded or none.
parcel_idParcel number the office records.
subdivisionSubdivision name.
lotLot number.
blockBlock number.
legal_descriptionLegal description.
valuationValue of the work on the permit, in dollars.
square_feetFloor area in square feet.
contractorBuilder or contractor, where it is a business.
ownerProperty owner, where it is a business.
owner_is_individualTrue when the owner is a person, whose name is left out.
applicantApplicant, where it is a business.
collected_atThe day this record was last refreshed.

Profiles and privacy

A key reads the standard profile: the names of individuals and all contact details are left out, as are phone numbers and email addresses in free text. Business names of builders, contractors and property owners stay. Data from an office is served only where its terms allow.

Data notices

Data is provided as published by the issuing offices. Barn Swallow's categories are derived from the office's own labels. Attribution: U.S. Census Bureau (Building Permits Survey, geocoder, American Community Survey, population estimates, LODES); Internal Revenue Service; Federal Financial Institutions Examination Council; Source: FHFA House Price Index (this product uses FHFA Data but is neither endorsed nor certified by FHFA); Colorado State Demography Office; City and County of Denver and City of Longmont open data (CC BY); other sources named in each response.

Barn Swallow Consulting · barnswallow.consulting