Skip to content
SynupAPI
Get an API key
GETapi.synup.com/api/v4/locations/package-count

Location 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.

Requires an API key. Send it as Authorization: API <your-key> — see Getting started.

Parameters

Query

NameTypeRequiredDescription
filterInputstringoptionalJSON-encoded filter object. Defaults to an empty filter (all locations).
selectionTypestringoptionalWhether to include all matching locations or an explicit selection.
locationIdsarrayoptionalLocation IDs to include when selectionType is SELECTED_ITEMS.
archivedbooleanoptionalFilter by archived state (true/false).
approvedbooleanoptionalFilter by approved state (true/false).
archivalScheduledAtbooleanoptionalReturn only locations scheduled for archival.

Headers

NameTypeRequiredDescription
Synup-VersionstringrequiredAPI version date (YYYY-MM-DD).

Request

Request
curl -X GET 'https://api.synup.com/api/v4/locations/package-count?filterInput=&selectionType=&locationIds=&archived=&approved=&archivalScheduledAt=' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Responses

StatusDescription
200Successful response
401Unauthorized - Invalid or missing API key
Example response (generated from the schema)
{
  "data": {
    "locationPackageCount": {
      "freemiumCount": 0,
      "premiumCount": 0
    }
  }
}

Response body

NameTypeRequiredDescription
dataobjectoptional
data.locationPackageCountobjectoptional
data.locationPackageCount.freemiumCountintegeroptionalNumber of freemium-tier locations.
data.locationPackageCount.premiumCountintegeroptionalNumber of premium-tier locations.