# members_count_history (timeseries)

| Required permit | Rate limit tokens cost | Available intervals |
| --- | --- | --- |
| Reporting:Api:Report:MembersCountHistory | 3 | 5m, 1h, 1d, 1w, 1mo |

This report allows you to get information about historical members count.

## Fields

### community_id

| Type | Filterable |
| --- | --- |
| Integer | <Icon icon="material-outline-done"/> (via `X-Customer` header) |

ID of member's community

### grouping_type

| Type | Filterable |
| --- | --- |
| Enum | <Icon icon="material-outline-done"/> |

Indicates aggregation group type.

This field is an enum, possible values are:
* optin_channel
* optin_subchannel
* optin_platform
* birth_year_group
* consent_true
* consent_false
* marketing_true
* marketing_false
* subunit_id
* group_id
* favorite_store
* country
* gender

### grouping_value

| Type | Filterable |
| --- | --- |
| String | <Icon icon="material-outline-done"/> |

Indicates aggregation group value.

## Query without aggregations

Query returns series with member counts with grouping labels.

```json
{
    "interval": "1d",
    "range_timezone": "Europe/Oslo",
    "time_buckets": [
        "2025-08-28T00:00:00.000+02:00",
        "2025-08-29T00:00:00.000+02:00"
    ],
    "series": [
        {
            "label": {
                "grouping_type": "gender",
                "grouping_value": "man"
            },
            "values": [
                11500,
                11709
            ]
        },
        {
            "label": {
                "grouping_type": null,
                "grouping_value": null
            },
            "values": [
                32272,
                35292
            ]
        },
        {
            "label": {
                "grouping_type": "optin_channel",
                "grouping_value": "android"
            },
            "values": [
                20402,
                408
            ]
        }
    ],
    "data_points": 66,
    "result_type": "timeseries"
}
```
