POST

Query Activity Counters


Returns up to 100 public activity counters for the provided filter and paging.

Only counters that are marked as public are returned.

Supported fields for filtering:

  • memberId

Supported operations:

Comparison:

  • $eq
  • $ne
  • $in

Logical:

  • $and
  • $not
  • $or
Permissions
Manage Activity Counters
Read Activity Counters
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/members/v1/activity-counters/query

Body Params
queryQuery

Query options.

Response Object
activityCountersArray <ActivityCounter>

Retrieved activity counters.


metadataMetadata

Paging metadata.

Retrieving counters with member id

Request
cURL
curl -X POST \ https://www.wixapis.com/members/v1/activity-counters/query \ -H 'Authorization: <AUTH>' \ -d '{ "query": { "filter": { "memberId": "987110f7-5100-4beb-a948-de610fd18f00" } } }'
Response
JSON
{ "activityCounters": [ { "memberId": "987110f7-5100-4beb-a948-de610fd18f00", "appId": "7eb67052-4478-416e-b444-eff7accf6cea", "counters": [ { "key": "This is public key", "public": true, "count": 3 } ] }, { "memberId": "987110f7-5100-4beb-a948-de610fd18f00", "appId": "fb70a122-6276-4bbd-9cc6-ea9bc452b2a1", "counters": [ { "key": "This is another public key", "public": true, "count": 10 } ] } ], "metadata": { "count": 2, "offset": 0, "total": 2 } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?