Civic records API

Housing Complaint API

The Housing Complaint API returns reported housing problems and related service requests, with about 10 million records from city and county open-data portals. Records cover issues involving housing conditions, repairs, landlords, tenants, and maintenance, alongside dates, status, location, and community context. Use the data to analyze complaint patterns across covered places.

Canada, United States · JSON, GeoJSON, CSV, Parquet

POSThttps://api.outerview.ai/v1/stream
curl https://api.outerview.ai/v1/stream \
  -X POST \
  -H "Authorization: Bearer $OUTERVIEW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "housing complaint",
    "region_id": "21821",
    "limit": 50
  }'

Key facts

  • The API contains about 10 million housing complaint records.
  • Calgary accounts for 69% of records.
  • Canada contributes 74.9% of records and the United States 25.1%.
  • The API supports JSON, GeoJSON, CSV, and Parquet.

Quick start

  1. 1. Create an account and generate an API key on the developer platform.
  2. 2. Send it as a Bearer token in the Authorization header.
  3. 3. Query by place, radius or date (the example searches Calgary).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/housing-complaint/download?format=geojson

Add &region_slug=… to limit to one place. Formats: csv, geojson, parquet.

Sample records

Real records from the data, trimmed to the main fields.

10 records
CityDateTypeStatusSubtypeLatitudeLongitude
Sacramento2026-11-27Code EnforcementIN PROGRESSHousing - Complaint38.621-121.447
Sacramento2026-11-27Code EnforcementIN PROGRESSHousing - Complaint38.613-121.428
Sacramento2026-11-26Code EnforcementIN PROGRESSHousing - Complaint38.582-121.491
Sacramento2026-11-26Code EnforcementIN PROGRESSHousing - Complaint38.609-121.492
Nashville2026-11-26Property ViolationsNewTenant Complaint36.176-86.785
Sacramento2026-11-26Code EnforcementNEWHousing - Complaint38.545-121.455
Sacramento2026-11-26Code EnforcementNEWHousing - Complaint38.533-121.469
Sacramento2026-11-26Code EnforcementIN PROGRESSHousing - Complaint38.582-121.483
Sacramento2026-11-26Code EnforcementNEWHousing - Complaint38.45-121.431
Sacramento2026-11-25Code EnforcementIN PROGRESSHousing - Complaint38.623-121.478

Overview

The API brings together reports about housing conditions and management, including repair concerns, landlord or tenant complaints, and unsafe maintenance. The records come from city and county open-data portals.

Developers, researchers, housing organizations, and data buyers can use the records to study reported problems, follow case status, and connect complaints with location and neighborhood context.

Coverage

The dataset contains about 10 million records across Canada and the United States. The reported country shares are 74.9% Canada and 25.1% United States.

Calgary accounts for 69% of records, followed by San Diego at 14.4%, Sacramento at 8.2%, and Edmonton at 5.9%. Other listed cities include San Francisco, Daly City, and La Mesa.

Fields

Each record can include its source, date, year, month, category, subtype, status, closure date, agency, department, description, and coordinates. Source, date, year, month, category, status, latitude, and longitude are filled for all records; closed_at is filled for 97%.

Additional fields describe settlement class, nearby population, flood risk, elevation, climate, income, home value, land use, and tree canopy. These contextual fields have varying availability: for example, climate_group is filled for 99% of records and median home value for 54%.

  • sourceSource dataset
  • dateDate of the record
  • yearYear
  • latitudeLatitude
  • longitudeLongitude
  • categoryRecord category
  • statusCurrent status
  • monthMonth
  • closed_atDate closed
  • agencyAgency
  • subtypeRecord subtype
  • descriptionDescription from the source
  • departmentDepartment
  • settlement_classCity, town or countryside
  • ghsl_pop_1km_2020How many people live here (people)
  • flood_zoneFlood risk
  • elevation_mHeight above sea level (m)
  • climate_groupClimate group
  • acs_median_household_income_usdTypical household income (USD (2024 dollars))
  • acs_median_home_value_usdTypical home value (USD)
  • land_use_categoriesLand use
  • nlcd_tree_canopy_pctTree cover (%)

Queries

Filter records by region, radius, date, or selected fields to focus an analysis on a place, time period, or subset of record attributes. Location coordinates support geographic analysis.

Use streaming for live queries and bulk download for whole datasets. Available formats are JSON, GeoJSON, CSV, and Parquet.

Use cases

Compare complaint volumes and case statuses across cities such as Calgary, San Diego, and Sacramento. Track reported problems over time using the date, month, and year fields.

Map complaint locations to examine geographic patterns; distinguish record categories and subtypes; assess open versus closed cases; and study how reports relate to population, flood risk, elevation, income, home values, land use, or tree cover.

Pricing

The API offers JSON, GeoJSON, CSV, and Parquet formats and requires an API key. A free tier is available.

Paid plans are available for higher limits and bulk downloads. No prices are stated here.

Frequently asked questions

Is there an API for housing complaints in Calgary?

Yes. The Housing Complaint API includes records from Calgary, which accounts for 69% of the dataset. Records can include dates, categories, status, and geographic coordinates, along with contextual fields where available.

Does the Housing Complaint API include Sacramento?

Yes. Sacramento is included and accounts for 8.2% of the dataset. Sample records from Sacramento show code enforcement complaints with dates, subtypes, statuses, and latitude and longitude.

How often is housing complaint data updated?

A specific update schedule is not stated. The records are sourced from city and county open-data portals, and the API includes dates for individual records, but those dates do not establish how often the dataset is refreshed.

What fields does the Housing Complaint API return?

Records can include source, date, year, month, category, status, coordinates, agency, subtype, description, and closure date. Additional fields provide geographic and community context, such as population, flood risk, elevation, income, home value, land use, and tree canopy.

Can I filter housing complaint records by location and date?

Yes. Queries can be filtered by region, radius, date, and selected fields. Latitude and longitude are available for all records, supporting geographic queries and mapping.

Can I download the full housing complaint dataset?

Bulk downloads are available on paid plans. Supported formats are JSON, GeoJSON, CSV, and Parquet. An API key is required to access the API.

Which countries are covered by the Housing Complaint API?

The dataset covers Canada and the United States. Canada accounts for 74.9% of records and the United States for 25.1%, according to the reported coverage shares.

Are housing complaint records available as GeoJSON?

Yes. GeoJSON is one of the available formats, alongside JSON, CSV, and Parquet. Records include latitude and longitude, which can support geographic workflows.

Start building with the Housing Complaint API

Free to try. Paid plans raise limits and unlock bulk downloads.