企业微信(WeCom)-连接微信 icon

企业微信(WeCom)-连接微信

企业微信连接微信功能 - 微信客服、客户联系、家校应用、政民沟通

Actions172

客户联系 → [统计管理] 获取「群聊数据统计」数据

AI-generated

Summary

Fetches WeCom group chat statistics for a date range, aggregated either by group owner or by day. Use owner aggregation to rank or page through owners’ group counts, or daily aggregation to inspect statistics over time.

Inputs

  • statistic_type — Aggregation mode: by group owner (default) or by natural day.
  • day_begin_time (required) — Start date. WeCom accepts dates from yesterday back to 180 days ago; the UI recommends setting the start to midnight.
  • day_end_time — End date; defaults to the start date when empty. The date range can span at most 30 days.
  • owner_userid_list — Comma-, pipe-, or newline-separated group owner UserIDs. Leave empty to query all owners visible to the app; the UI warns that this can fail with error 81017 if that scope exceeds 1,000 people. Up to 100 owners are supported.
  • order_by — For owner aggregation, sort by new group count (default), total groups, new group members, or total group members.
  • order_asc — For owner aggregation, sort ascending when true; defaults to descending.
  • offset — For owner aggregation, pagination offset; defaults to 0.
  • limit — For owner aggregation, requested page size from 1 to 1,000; defaults to 500.

Output shape

A list of WeCom group chat statistics records.

The result fields and whether daily aggregation returns multiple records are not shown by the supplied source pack. Owner aggregation supports offset and limit pagination.

Links

Discussion