2020-10-26 17:08:22 -04:00
---
2020-11-17 10:09:28 -05:00
stage: Manage
group: Optimize
2020-11-26 01:09:20 -05:00
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-10-26 17:08:22 -04:00
---
2021-09-15 11:10:13 -04:00
# Group Activity Analytics API **(PREMIUM)**
2020-03-17 14:09:44 -04:00
2020-07-23 14:10:06 -04:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26460) in GitLab 12.9.
2020-03-17 14:09:44 -04:00
## Get count of recently created issues for group
```plaintext
GET /analytics/group_activity/issues_count
```
Parameters:
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `group_path` | string | yes | Group path |
Example request:
```shell
2020-05-27 20:08:37 -04:00
curl --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/analytics/group_activity/issues_count?group_path=gitlab-org"
2020-03-17 14:09:44 -04:00
```
Example response:
```json
2020-03-19 14:09:17 -04:00
{ "issues_count": 10 }
2020-03-17 14:09:44 -04:00
```
## Get count of recently created merge requests for group
```plaintext
GET /analytics/group_activity/merge_requests_count
```
Parameters:
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `group_path` | string | yes | Group path |
Example request:
```shell
2020-05-27 20:08:37 -04:00
curl --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/analytics/group_activity/merge_requests_count?group_path=gitlab-org"
2020-03-17 14:09:44 -04:00
```
Example response:
```json
2020-03-19 14:09:17 -04:00
{ "merge_requests_count": 10 }
2020-03-17 14:09:44 -04:00
```
2020-04-03 05:09:31 -04:00
## Get count of members recently added to group
```plaintext
GET /analytics/group_activity/new_members_count
```
Parameters:
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `group_path` | string | yes | Group path |
Example request:
```shell
2020-05-27 20:08:37 -04:00
curl --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/analytics/group_activity/new_members_count?group_path=gitlab-org"
2020-04-03 05:09:31 -04:00
```
Example response:
```json
{ "new_members_count": 10 }
```