---
title: "Get Area Stats"
method: POST
path: "/api/v1/intelligence/area-stats"
tags: ["Intelligence"]
---

# Get Area Stats

`POST /api/v1/intelligence/area-stats`

## Request

- Base URL: `https://api.casaintelligence.com.au` (the document declares no server; this is the origin it was published from)
- URL: `https://api.casaintelligence.com.au/api/v1/intelligence/area-stats`
- Auth: HTTP bearer

Compute DA statistics within a user-drawn polygon.
Accepts polygon vertices as [[lat, lng], ...] and returns
aggregate stats, zone breakdown, and development type distribution.
Uses PostGIS ST_Contains for spatial filtering.

## Request body

- AreaStatsRequest: Request body for polygon area statistics.
  - `polygon` array[], required: Polygon vertices as [[lat, lng], ...], minimum 3 points
    - number[]
  - `lga` string, nullable: Optional LGA filter

## Response `200`

Successful Response

- AreaStatsResponse: Statistics for DAs within a drawn polygon area.
  - `total_das` integer
  - `approved` integer
  - `refused` integer
  - `pending` integer
  - `approval_rate_pct` number, nullable
  - `avg_days` integer, nullable
  - `zone_breakdown` ZoneBreakdownEntry[]
    - `zone_code` string, required
    - `zone_name` string, nullable
    - `da_count` integer
    - `approved` integer
    - `refused` integer
  - `top_development_types` DevTypeBreakdownEntry[]
    - `development_type` string, required
    - `count` integer
  - `avg_infra_charge` number, nullable
  - `polygon_area_ha` number, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/casaintelligence/apis/casa-intelligence-engine.md) · [All operations](https://skmtc.dev/casaintelligence/apis/casa-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/casaintelligence/apis/casa-intelligence-engine/revisions/71d711039de0?raw)
