Statistics
Count your listings per status, and count network listings per town, region, country and type for menus and pickers.
Two read-only counts: how many of your listings are in each status, and how listings spread across places and types, for location menus, filter dropdowns and place pickers. Both need the properties:read scope.
Count your listings per status
GET /properties/stats/counts
Every status is present, with 0 when you have none. Deleted listings are not counted.
Count listings by place and type
GET /properties/stats/aggregations
Counts every agency's active listings by default. Asking for your own listings, or for any status other than active, counts only your agency's.
| Query | Type | Meaning |
|---|---|---|
status | string | Default active; any other status counts your own listings only |
filterByOrganization | boolean | Count only your own listings |
countryCode, region, city | string, repeatable | Narrow the counts (countryCode=ES&countryCode=PT) |
q | string | Place-picker text: narrows towns and regions to names containing it (accents and case ignored) and adds matching communities |
Use the names in availableCities and availableRegions as the city and region filters of Search.
Search places
With q, the response also has communities: areas whose name, town or region contains q, most listings first, up to 50. One community name can exist in two towns, so each carries its town.
Freshness
Network-wide active counts are cached for 5 minutes, so a listing published a moment ago can take that long to appear. Counts of your own listings are always current.