---
title: "Group By Feature Collection Post"
method: POST
path: "/zonal_stats/group_by/feature_collection"
tags: ["zonal_stats"]
---

# Group By Feature Collection Post

`POST /zonal_stats/group_by/feature_collection`

Zonal Statistics Group By for Earth Engine FeatureCollection

## Request body

- GroupByFeatureCollection — Model for zonal_stats/pixel_count/feature_collection
  - `feature_collection_asset_id` string — Earth Engine FeatureCollection ID or Climate Engine Asset from [Climate Engine Assets](https://docs.climateengine.org/docs/build/html/climate_engine_assets.html)
  - `sub_choices` string, nullable — Column attribute values, e.g. Little Owyhee
  - `filter_by` string, nullable — Column attribute in the asset to use as filter: e.g. Name
  - `simplify_geometry` string, nullable — maxError in meters, see [ee.Feature.simplify](https://developers.google.com/earth-engine/apidocs/ee-feature-simplify)
  - `buffer` integer, nullable — Buffer in meters
  - `area_reducer` string — Statistic over region
  - `group_img_id` string — Image Id
  - `group_band` string — Group BandName
  - `group_img_type` string — What type of data is the group set
  - `summary_img_id` string — Image Id
  - `summary_band` string — Summary BandName
  - `mask_image_id` string, nullable — Asset ID of the mask image
  - `mask_band` string, nullable — Band name to use in mask image
  - `mask_value` number, nullable — Mask value.
  - `bins` string — Bins to use in calculations
  - `scale_img` string, nullable — What image to use as the reduce scale
  - `export_path` string, nullable — Google Cloud Bucket Export Path
  - `export_format` string, nullable — Export Format: json or csv

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/climateengine/apis/climate-engine-api-v1-climate-engine-pro.md) · [All operations](https://skmtc.net/climateengine/apis/climate-engine-api-v1-climate-engine-pro/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/climateengine/climate-engine-api-v1-climate-engine-pro/revisions/c7ba0a158a7b/schema)
