# Location package count

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

Returns the number of locations in the filtered set by package tier — freemium vs premium. Scope the set with `filterInput`/`selectionType`/`locationIds`, identical to Filter locations.

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

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `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. |
| `archived` | boolean | optional | Filter by archived state (true/false). |
| `approved` | boolean | optional | Filter by approved state (true/false). |
| `archivalScheduledAt` | boolean | optional | Return only locations scheduled for archival. |

## 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/package-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 |
