Skip to main content
GET
/
jurisdictions
/
{geo_id}
/
metrics
/
monthly
Get Jurisdiction 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"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

geo_id
string
required

Filter by the specified jurisdiction ID.

Query Parameters

metric_from
string<date>
required

Start date for metrics (inclusive)

metric_to
string<date>
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

size
integer
default:50
Required range: 1 <= x <= 100

Response

Successfully retrieved monthly jurisdiction metrics

Schema for cursor-paginated jurisdiction monthly metrics response.

items
JurisdictionsMetricsMonthlyRead · object[]
required

The list of items returned in the response following given criteria.

size
integer
required

The number of items returned in the response.

next_cursor
string | null
required

The cursor for retrieving the next page of results.