Common Elements Aggregates and compliance API
The Aggregates and compliance API from Common Elements — 2 operation(s) for aggregates and compliance.
The Aggregates and compliance API from Common Elements — 2 operation(s) for aggregates and compliance.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/commonelements-com:commonelements-com-aggregates-and-compliance-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Commonelements Com Aggregates and compliance API
version: 1.4.0
contact:
name: Common Elements API support
url: https://commonelements.com/contact
license:
name: Commercial data licence
url: https://commonelements.com/developers/pricing/builder
termsOfService: https://commonelements.com/terms
description: 'Operations tagged Aggregates and compliance across 2 of this provider''s published API definitions: commonelements-com-openapi.json, commonelements-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://commonelements.com/api/v1
description: Production
- url: https://commonelements.com/api/v1/meta/sandbox
description: Sandbox — fixed dataset, published test key, not metered
security:
- bearerAuth: []
tags:
- name: Aggregates and compliance
description: ''
paths:
/api/v1/geo/state-summary:
get:
operationId: geoStateSummary
summary: 'Per-state rollup of the dataset: association counts broken out by subtype, plus…'
description: 'Per-state rollup of the dataset: association counts broken out by subtype, plus insurance licensee counts. The market-sizing call: how much of a state the data covers before you build against it.
**Plan:** Available on every plan, uncapped: this returns one row per state, not a row listing.
- Aggregate counts only. No per-association rows, no personal data. Counts move as ingestion runs, so treat them as current rather than fixed.'
tags:
- Aggregates and compliance
security:
- bearerAuth: []
x-ce-scope: associations
x-ce-docs-url: https://commonelements.com/developers/docs#geo-state-summary
x-ce-example-request: "curl \"https://commonelements.com/api/v1/geo/state-summary?state=FL\" \\\n -H \"Authorization: Bearer ce_live_your_key_here\""
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
required:
- ok
- data
properties:
ok:
type: boolean
const: true
data:
type: array
items:
type: object
properties:
state:
type: string
description: Two-letter state code.
association_count:
type: number
description: Associations in the state, summed across subtypes.
by_subtype:
type: object
additionalProperties: true
description: 'Subtype to count, e.g. { "hoa": 51204, "condo": 27810 }.'
insurance_licensee_count:
type: number
description: Insurance licensees recorded in the state.
insurance_active_count:
type: number
description: Of those, the ones recorded as active.
additionalProperties: true
additionalProperties: true
examples:
default:
value:
ok: true
data:
- state: FL
association_count: 79014
by_subtype:
hoa: 51204
condo: 27810
insurance_licensee_count: 43638
insurance_active_count: 39120
total: 1
'400':
description: '`validation_error` — A query parameter or body field is missing, malformed, or outside its allowed range. The message names the first parameter that failed. Next: Fix the named parameter and re-send. Every parameter and its accepted values are in the OpenAPI document at /api/v1/openapi; retrying an unchanged request will fail the same way.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: '`invalid_api_key` — No Authorization header, a header that is not `Bearer <key>`, or a key that does not resolve to an active record. Next: Send `Authorization: Bearer ce_live_...`. If the header is correct, the key has been revoked or expired — mint a new one at /settings/api-keys. Keys are shown once at creation and stored only as a hash, so a lost key cannot be recovered.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: '`scope_not_allowed` — The key is valid but was created without the scope this endpoint requires. Scopes are set at key creation and are not widened at request time. Next: Create a key carrying the scope named in the message, or use the `all` scope. Each endpoint''s required scope is on its OpenAPI operation as `x-ce-scope`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: '`quota_exceeded` — The key has spent every request included in the current calendar month. There is no overage charge and no automatic top-up. Next: Call /api/v1/meta/usage to see the reset date and how the quota was spent, then either wait for the reset at the start of the next calendar month or upgrade the plan. /api/v1/meta/usage does not itself consume quota.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: '`internal_error` — The request was accepted and failed on our side. Next: Retry with exponential backoff (1s, 2s, 4s, up to about 30s). If it persists past a few minutes, check /api/v1/meta/status and contact support with the time of the request.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: state
in: query
required: false
description: Two-letter state code. Omit for every state, ranked by association count.
schema:
type: string
x-ce-plan-note: 'Available on every plan, uncapped: this returns one row per state, not a row listing.'
servers:
- url: https://commonelements.com/api/v1
description: Production
- url: https://commonelements.com/api/v1/meta/sandbox
description: Sandbox — fixed dataset, published test key, not metered
/api/v1/compliance/scan:
post:
operationId: complianceScan
summary: Submit a community association document for automated compliance analysis
description: Submit a community association document for automated compliance analysis. Returns a structured assessment against Florida and multi-state statutory requirements, plus best-practice governance rules.
tags:
- Aggregates and compliance
security:
- bearerAuth: []
x-ce-scope: compliance
x-ce-docs-url: https://commonelements.com/developers/docs#compliance-scan
x-ce-example-request: "curl -X POST https://commonelements.com/api/v1/compliance/scan \\\n -H \"Authorization: Bearer ce_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"text\": \"Article I. Name. The name of this Association...\",\n \"state\": \"FL\",\n \"doc_type\": \"cc_and_rs\"\n }'"
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
required:
- ok
- data
properties:
ok:
type: boolean
const: true
data:
description: Response payload. See the example on this operation for the exact shape.
additionalProperties: true
examples:
default:
value:
ok: true
score:
score: 88
grade: B
label: 1 item to review with counsel
findings:
- ruleId: fl-solar-preemption
title: Solar-energy-device restriction (statewide preemption)
category: preemption
severity: flag
statute: Fla. Stat. § 163.04
guidance: Florida § 163.04 voids most prohibitions on solar-energy devices...
excerpt: '...no solar panels or collectors shall be installed on any roof surface...'
corpusVerified: false
matchQuality: restrictive
total_findings: 1
total_applicable_rules: 17
state: FL
engine: statute_scan_v1
'400':
description: '`validation_error` — A query parameter or body field is missing, malformed, or outside its allowed range. The message names the first parameter that failed. Next: Fix the named parameter and re-send. Every parameter and its accepted values are in the OpenAPI document at /api/v1/openapi; retrying an unchanged request will fail the same way.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: '`invalid_api_key` — No Authorization header, a header that is not `Bearer <key>`, or a key that does not resolve to an active record. Next: Send `Authorization: Bearer ce_live_...`. If the header is correct, the key has been revoked or expired — mint a new one at /settings/api-keys. Keys are shown once at creation and stored only as a hash, so a lost key cannot be recovered.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: '`scope_not_allowed` — The key is valid but was created without the scope this endpoint requires. Scopes are set at key creation and are not widened at request time. Next: Create a key carrying the scope named in the message, or use the `all` scope. Each endpoint''s required scope is on its OpenAPI operation as `x-ce-scope`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: '`quota_exceeded` — The key has spent every request included in the current calendar month. There is no overage charge and no automatic top-up. Next: Call /api/v1/meta/usage to see the reset date and how the quota was spent, then either wait for the reset at the start of the next calendar month or upgrade the plan. /api/v1/meta/usage does not itself consume quota.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: '`internal_error` — The request was accepted and failed on our side. Next: Retry with exponential backoff (1s, 2s, 4s, up to about 30s). If it persists past a few minutes, check /api/v1/meta/status and contact support with the time of the request.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
description: The full text of the governing document to analyze.
state:
type: string
description: Two-letter state code (e.g. "FL", "GA").
doc_type:
type: string
description: 'Optional. One of: "governing_document" (default), "cc_and_rs", "bylaws", "articles", "rules_and_regulations".'
required:
- text
- state
additionalProperties: false
servers:
- url: https://commonelements.com/api/v1
description: Production
- url: https://commonelements.com/api/v1/meta/sandbox
description: Sandbox — fixed dataset, published test key, not metered
components:
schemas:
Error:
type: object
required:
- ok
- error
- message
properties:
ok:
type: boolean
const: false
error:
type: string
description: Stable machine-readable code. Switch on this, not on the message.
enum:
- validation_error
- invalid_api_key
- scope_not_allowed
- tier_not_allowed
- not_found
- quota_exceeded
- public_record_allowance_exceeded
- not_implemented
- search_timeout
- internal_error
- service_unavailable
message:
type: string
description: Human-readable detail. Wording may change; the code will not.
docs_url:
type: string
format: uri
description: Where this code is explained in full. Present on the meta namespace.
next_steps:
type: string
description: What to do about it. Present on the meta namespace.
additionalProperties: true
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'An API key from /settings/api-keys, sent as `Authorization: Bearer ce_live_...`. Sandbox requests use the published test key documented at /api/v1/meta/sandbox.'
x-refined-from:
- commonelements-com-openapi.json
- commonelements-com-openapi.yml
x-ce-api-version: v1
x-ce-versions:
- version: v1
status: current
released_on: '2026-06-15'
sunset_on: null
note: The only version. No successor is announced, so no sunset date exists to publish; when one does, it appears here and in the Sunset header before anything is removed.
x-ce-compatibility:
- kind: additive
rule: Adding a new endpoint, a new optional query parameter, or a new field to a response object. Parse responses tolerantly; a client that errors on an unrecognised field will break on a change this policy permits.
- kind: additive
rule: Adding a new value to an open enumeration such as `change_kind`, a county-published milestone status, or a vendor category. Handle an unknown value as a passthrough string rather than a parse failure.
- kind: additive
rule: Raising a plan's row cap or quota, or widening a lookback window.
- kind: breaking
rule: Removing or renaming a field, changing a field's type, or changing the meaning of an existing value. Never done inside v1.
- kind: breaking
rule: Removing an endpoint, adding a required parameter to an existing endpoint, or tightening an existing parameter's accepted values.
- kind: breaking
rule: Moving an endpoint behind a higher plan than the one it shipped under. A new endpoint may launch on any plan; an existing one does not move up.
x-ce-deprecation-policy:
- label: 12 months minimum notice
detail: A version is supported for at least 12 months after its successor is generally available. No endpoint inside a supported version is removed during that window.
- label: Announced in three machine-readable places
detail: 'A deprecated operation carries `deprecated: true` in the OpenAPI document, a `Deprecation` and a `Sunset` HTTP header (RFC 8594) on every response, and an entry in the changelog on /developers/status. Poll any one of them; you do not have to read an email to find out.'
- label: Successor named before removal
detail: Nothing is deprecated without a documented replacement that returns the same information. The replacement ships first, and both run concurrently for the whole notice period.
- label: Emergency exception, narrowly scoped
detail: The only change that can ship without notice is one required to stop unlawful or unlicensed disclosure of data — a field withdrawn because a source's terms changed, or a privacy obligation. Affected customers are contacted directly, and the reason is stated in the changelog.
x-ce-changelog:
- date: '2026-08-16'
kind: additive
summary: 'Added the meta namespace: /api/v1/openapi (machine-readable spec), /api/v1/meta/status, /api/v1/meta/dictionary, /api/v1/meta/usage, and a sandbox at /api/v1/meta/sandbox. Error responses on the new endpoints carry `docs_url` and `next_steps` alongside the existing `error` and `message`.'
- date: '2026-08-16'
kind: additive
summary: '`display_name` added to the association record: the canonical rendering of the filed name. `name` is unchanged and still the verbatim registry string.'
- date: '2026-08-11'
kind: additive
summary: Bulk export gained `format=json` alongside CSV, and `columns=` for selecting a subset of a resource's column spec.
- date: '2026-08-10'
kind: additive
summary: Bulk export resources `building-safety` and `report-card` added.
- date: '2026-08-03'
kind: additive
summary: Change feed endpoints /api/v1/changes and /api/v1/changes/summary released.
- date: '2026-06-15'
kind: additive
summary: v1 generally available.
x-ce-quota-policy:
window: calendar month, UTC
reset: First request on or after the first day of the next calendar month resets the counter.
overage: None. A key that reaches its included requests returns 429 until the reset or an upgrade; there is no automatic overage charge.
meteringUnit: One HTTP request against a /api/v1 endpoint, counted whatever the status code. Meta endpoints (/api/v1/meta/*, /api/v1/openapi) and the sandbox are not metered.
x-ce-plan-quotas:
free: 250
builder: 10000
growth: 50000
scale: 250000
enterprise: unmetered