GET
/
jurisdictions
/
{geo_id}
/
metrics
/
monthly
curl --request GET \
  --url https://api.shovels.ai/v2/jurisdictions/{geo_id}/metrics/monthly \
  --header 'X-API-Key: <api-key>'
{
  "items": [
    {
      "geo_id": "jkl012",
      "tag": "all",
      "permit_count": 180,
      "contractor_count": 60,
      "avg_construction_duration": 75,
      "avg_approval_duration": 21,
      "total_job_value": 75000000,
      "avg_inspection_pass_rate": 82,
      "date": "2023-01-01",
      "property_type": "residential"
    }
  ],
  "size": 1,
  "next_cursor": "c29tZS1jdXJzb3I",
  "pagination_type": "cursor"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

geo_id
string
required

Filter by the specified jurisdiction ID.

Query Parameters

metric_from
string
required

Start date for metrics (inclusive)

metric_to
string
required

End date for metrics (inclusive)

property_type
string
required

Filter by property type

tag
string
required

Filter by tag

cursor
string | null

Cursor for pagination

page
integer | null

Page number for offset-based pagination (only used if cursor is not provided)

Required range: x >= 1
size
integer
default:50

Number of items per page

Required range: 1 <= x <= 100

Response

200
application/json

Successfully retrieved monthly jurisdiction metrics

Schema for Jurisdiction Metrics in list response.