OSM Feature Counts

Mix and totals from GET /v2/osm_features/count. Omit group_by for a scalar total (one bar). Set it to split the mix. The map is a sample around the camera center after you click a bar, not the histogram total.

Tag histogramsCity countsgroup_by

Style

Presets

GET /v2/osm_features/count counts OSM features that match your tags in a spatial window (bbox, within, or location plus radius). Omit group_by for a scalar COUNT(*). Set it to histogram the values of that key. The map starts on Stockholm Municipality. Counts use the current viewport bbox. Changing tags, group_by, type, or way_shape only edits the draft. Run counts the view on screen.

comma is AND; | is OR. Use parentheses to group: (a,b)|c. Put quotations around special tag values like "Ben & Jerry's".

OSM type
way_shape

Histogram

Press Run to count the current map view.

GET /v2/osm_features/count

Same spatial and tag filters as GeoJSON. Tagged counts use a larger window so a city or country count is legal. Omit group_by for a scalar total (one bar for the filter set). When set, use a classifying key such as amenity or cuisine, not name. Live snippet below matches the last Run, including the bbox that was counted.