# ContentId Criterion

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

## Arguments

- `value` - int(s) representing the Content ID(s)

## Example

### PHP

```
$query->query = new Criterion\ContentId([62, 64]);
```

### REST API

**XML**

```
<Query>
    <Filter>
        <ContentIdCriterion>1,52</ContentIdCriterion>
    </Filter>
</Query>
```

**JSON**

```
"Query": {
    "Filter": {
        "ContentIdCriterion": "1,52"
    }
}
```
