Skip to main content
GET
/
cities
/
{geo_id}
/
metrics
/
current
Get City Metrics Current
curl --request GET \
  --url https://api.shovels.ai/v2/cities/{geo_id}/metrics/current \
  --header 'X-API-Key: <api-key>'
{
  "items": [
    {
      "geo_id": "MDEyMzQ1Njc4OWFiY2RlZg==",
      "tag": "solar",
      "permit_count": 1234,
      "contractor_count": 78,
      "avg_construction_duration": 45,
      "avg_approval_duration": 7,
      "total_job_value": 987654321,
      "avg_inspection_pass_rate": 90,
      "permit_active_count": 345,
      "permit_in_review_count": 56,
      "property_type": "residential"
    }
  ],
  "size": 1
}

Authorizations

X-API-Key
string
header
required

Path Parameters

geo_id
string
required

Filter by the specified city ID.

Query Parameters

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

Current metrics for the city

Schema for cursor-paginated city current metrics response.

items
CitiesMetricsCurrentRead · 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.