# Location add-on count

```http
GET https://api.synup.com/api/v4/locations/add-on-count
```

Returns how many locations in the filtered set have the specified add-on enabled vs disabled, along with counts for other add-ons in the same product umbrella. Scope the set with `filterInput`/`selectionType`/`locationIds`, identical to Filter locations.

Source: https://developer.synup.com/api/locations/location-add-on-count

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `addOnId` | string | required | ID of the add-on to count enablement for. |
| `filterInput` | string | optional | JSON-encoded filter object. Defaults to an empty filter (all locations). |
| `selectionType` | string | optional | Whether to include all matching locations or an explicit selection. |
| `locationIds` | array | optional | Location IDs to include when selectionType is SELECTED_ITEMS. |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Synup-Version` | string | required | API version date (YYYY-MM-DD). |

## Example request

```bash
curl -X GET 'https://api.synup.com/api/v4/locations/add-on-count' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json'
```

## Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized - Invalid or missing API key |
