---
title: "Count Feature Collection Post"
method: POST
path: "/zonal_stats/count/feature_collection"
tags: ["zonal_stats"]
---

# Count Feature Collection Post

`POST /zonal_stats/count/feature_collection`

Zonal Statistics for Earth Engine FeatureCollection over temporal (time dependent) dataset

## Request body

- CountFeatureCollection — Model for zonal_stats/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)
  - `area_reducer` string — Statistic over region
  - `buffer` integer, nullable — Buffer in meters
  - `dataset` string — Dataset name
  - `variable` string — Variable name
  - `operator` string — Threshold operator
  - `output` string — Output type
  - `value_1` number
  - `value_2` number, nullable
  - `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.
  - `start_date` string
  - `end_date` string
  - `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/versions/3630d1137e51/schema)
