# ContentTypeGroupId Criterion

> For the complete documentation index, see [llms.txt](https://doc.ibexa.co/en/saas/llms.txt).

ContentTypeGroupId Search Criterion

The `ContentTypeGroupId` Search Criterion searches for content based on the ID of its content type group.

## Arguments

- `value` - int(s) representing the content type group ID(s)

## Example

You can use this Search Criterion over the REST API, in the payload of the [`POST /views`](https://doc.ibexa.co/en/saas/api/rest_api/rest_api_reference/rest_api_reference.html#tag/Views/operation/ibexa.rest.views.create) request:

**XML**

```xml
<Query>
    <Filter>
        <ContentTypeGroupIdCriterion>1</ContentTypeGroupIdCriterion>
    </Filter>
</Query>
```

**JSON**

```json
"Query": {
    "Filter": {
        "ContentTypeGroupIdCriterion": [1, 2]
    }
}
```

## Use case

You can use the `ContentTypeGroupId` Criterion to query all Media content items. The default ID for the Media content type group is 3.
