# LocationId Criterion

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

## Arguments

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

## Example

### PHP

```
$query->query = new Criterion\LocationId(62);
```

### REST API

**XML**

```
<Query>
    <Filter>
        <LocationIdCriterion>62</LocationIdCriterion>
    </Filter>
</Query>
```

**JSON**

```
"Query": {
    "Filter": {
        "LocationIdCriterion": "62"
    }
}
```
