GET

Get Activity Counters


Retrieves activity counters for the specified site member, including all public counters and any private counters owned by the authenticated caller.

Note: Make sure to pass a memberId and not a contactId to identify the member. Any relationship between a member's memberId and contactId is coincidental.

Permissions
Manage Activity Counters
Read Activity Counters
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/members/v1/activity-counters/{memberId}

Path Params
memberIdstringRequired

Member ID whose counters will be returned.

Response Object
activityCountersArray <ActivityCounter>

Activity counters.

Get Activity Counters
Request
cURL
curl -X GET \ https://www.wixapis.com/members/v1/activity-counters/987110f7-5100-4beb-a948-de610fd18f00 \ -H 'Authorization: <AUTH>' \
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 private key", "public": false, "count": 10 }, { "key": "This is another public key", "public": true, "count": 10 } ] } ] }
Errors

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

Did this help?