A place's building statistics
GETapi.baseray.ai/v1/public/places/{country}/{slug}/stats
How many buildings a place has, how old and how tall they are, its tallest buildings and rooftop solar counts.
Path parameters
countrycz | dk | rorequiredcz(Czechia) orro(Romania).slugstringrequired- The place's slug, from
/public/places.
Response 200
OK
namestringrequiredcountystring or nullrequiredbuildingsintegerrequiredaddressedintegerrequired- Buildings with an address from an address record.
builtobjectrequiredknownintegerrequired- Buildings whose construction year or era is known.
byEraarray of objectrequirederastringrequiredcountintegerrequired
before1978Sharenumber or nullrequired- Share (0–1) of buildings with a known year built before 1978.
floorsobjectrequiredknownintegerrequired- Buildings whose floors are known.
histogramarray of objectrequiredfloorsstringrequired- A floor count or a range, e.g.
1or10+. countintegerrequired
blocks4plusintegerrequired- Buildings of four or more floors.
tallestarray of objectrequiredidstring (uuid)requiredslugstringrequiredheightnumber or nullrequired- Height in metres; null where the building is ranked by its floors because no height is measured.
labelstringrequired
solarobject or any or nullrequired- Rooftop solar counts; null where no roof in the place has been checked.
checkedRoofsintegerrequired- Roofs checked for solar panels.
withPanelsintegerrequired- Of them, roofs with panels.
imageryYearsarray of integerrequired- Years of the photos the roofs were checked on.
roofAreaTotalM2numberrequired- Total roof area in m².
registeredCompaniesintegerrequired- Companies with their registered office in the place.
updatedAtstring (date)required
Errors
- 404
- No such page (
not_found). - 429
- Too many requests from this address in a minute (
rate_limited); retry afterRetry-Afterseconds. - 503
- The building catalogue is unavailable right now (
unavailable); retry afterRetry-Afterseconds.
Every error has the same shape. Error codes.