GET
/
counties
/
{geo_id}
/
metrics
/
current
Get County Current Metrics
curl --request GET \
  --url https://api.shovels.ai/v2/counties/{geo_id}/metrics/current \
  --header 'X-API-Key: <api-key>'
{
  "items": [
    {
      "geo_id": "MDEyMzQ1Njc4OWFiY2RlZg==",
      "tag": "solar",
      "permit_count": 250,
      "contractor_count": 85,
      "avg_construction_duration": 90,
      "avg_approval_duration": 25,
      "total_job_value": 125000000,
      "avg_inspection_pass_rate": 78,
      "permit_active_count": 160,
      "permit_in_review_count": 90,
      "property_type": "commercial"
    }
  ],
  "size": 1,
  "pagination_type": "cursor"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

geo_id
string
required

Filter by the specified county ID.

Query Parameters

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

Current metrics for the county

Schema for County Metrics in list response.

items
CountiesMetricsCurrentRead · object[]
required

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

page
integer
required

The page number of the response.

size
integer
required

The number of items returned in the response.

next_page
integer | null
required

The next page number of the response.

pagination_type
string
default:offset
Allowed value: "offset"