API documentation

U.S. location and paginated sample search APIs

These public endpoints require no API key. They search connected research samples, not a complete national permit database. Use the HTTPS base URL https://constructiondiscovery.com/wp-json/construction-discovery/v1/.

GET states lists 50 states plus DC, directory counts and connected-source coverage. GET locations?state=CA&q=San&page=1 searches Census place names in one state, returning up to 50 locations per page. A location result does not establish permit coverage.

GET search?state=CA&city=San%20Francisco&per_page=25&page=1 returns matching permit/address records, total, page, per_page, pages, scope and coverage. Results sort by latest reported activity, then stable record ID. per_page is capped at 100. Values can change between requests as samples refresh.

Search filters: q, state, city, county, zip, source_id, sector, category, type, work, stage, contractor, license, from, to, date_field, value_min/value_max, area_min/area_max, units_min/units_max and score_min. Use two-letter state codes and YYYY-MM-DD dates. Date field accepts date, issued_date or latest_date. State and city matching is case-insensitive. Malformed state, date or pagination values return HTTP 400; no matches returns HTTP 200 with total 0 and an explicit coverage notice.

All responses describe bounded connected samples. coverage.complete is false; an empty response does not mean no construction exists in the area. Historic records remain in the separate archive. Use reasonable request rates and retry transient failures with backoff. No service-level guarantee applies to the research beta.

Public sample API

GET /?rest_route=/construction-discovery/v1/permits returns current public samples. GET /?rest_route=/construction-discovery/v1/coverage returns source availability, freshness and limitations.

Authenticated customer API

Use Authorization: Bearer YOUR_KEY against /?rest_route=/bizintel/v1/permits, /projects, /contractors, /market-statistics, /coverage and /signals. Supply page and per_page (maximum 100), city, state, category, stage, source_id, q, from, to, value_min, bbox or radius parameters. API access requires a Professional entitlement or administrator acceptance-test account, with a daily request allowance.

POST /?rest_route=/construction-discovery/v1/exports accepts current record IDs and csv or xlsx. WordPress session authentication and a REST nonce are required. The endpoint returns a private download payload and enforces monthly row allowances; it does not publish files.

Sign in to manage API access.

The separate FastAPI engine has its own OpenAPI document and deployment package. It is not yet connected to the production WordPress site.

National data API — version 0.9

Public research endpoints provide paginated jurisdiction records, separate Census statistics, federal awards and regional disaster declarations. They do not grant commercial redistribution rights. Download the OpenAPI specification.

Filter by state and page; statistics also accept level, series, period and q. Federal signals use kind=award or kind=disaster. Each page returns at most 50 records. national-admin requires an existing WordPress administrator session and REST nonce.