# ContentTypeId Criterion

The [`ContentTypeId` Search Criterion](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-ContentTypeId.html) searches for content based on the ID of its content type.

## Arguments

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

## Example

### PHP

```
$query->query = new Criterion\ContentTypeId([44]);
```

### REST API

**XML**

```
<Query>
    <Filter>
        <ContentTypeIdCriterion>44</ContentTypeIdCriterion>
    </Filter>
</Query>
```

**JSON**

```
"Query": {
    "Filter": {
        "ContentTypeIdCriterion": 44
    }
}
```
