Users Endpoint

Query and export user data via REST API

Users Endpoint

Query and export user data from your UXCam account.

Endpoints

EndpointDescription
GET /v2/userList users (qualitative data)
GET /v2/user/analyticsAggregate user analytics (quantitative data)

List Users

Returns detailed user data including device info, engagement metrics, and custom properties.

Request

curl "https://api.uxcam.com/v2/user" \
  -H "X-App-Id: YOUR_APP_ID" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -G \
  --data-urlencode 'page=1' \
  --data-urlencode 'page_size=50' \
  --data-urlencode 'filters=[{"attribute":"device_country","operator":"equal","value":"USA"}]'

Response

{
  "success": true,
  "data": [
    {
      "uxcamUserId": "60f7e1a43d4dcd370b7e0b02",
      "userId": "user_123",
      "url": "https://app.uxcam.com/app/.../users/...",
      "property": {
        "alias": "Anonymous User",
        "kUXCam_UserIdentity": "user_123"
      },
      "usage": {
        "registeredOn": "2022-11-12T06:48:43Z",
        "lastseenOn": "2023-01-11T06:27:48Z",
        "totaluser": 12,
        "totaluserTime": 475.85,
        "totalGesture": 152,
        "screenCount": 92
      },
      "location": {
        "country": "USA",
        "city": "New York"
      },
      "device": {
        "model": "SM-A525F",
        "platform": "android"
      }
    }
  ]
}

User Analytics

Returns aggregated statistics for users matching your query.

Request

curl "https://api.uxcam.com/v2/user/analytics" \
  -H "X-App-Id: YOUR_APP_ID" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -G \
  --data-urlencode 'filters=[{"attribute":"device_country","operator":"equal","value":"USA"}]' \
  --data-urlencode 'group_by=[{"attribute":"device_manufacturer","max_group_number":50}]'

Response

{
  "success": true,
  "data": [
    {
      "user_count": 2993,
      "session_new_users_count": 173,
      "avg_user_session_count": 16.68,
      "avg_user_session_duration": 1402.01
    }
  ]
}

User Attributes

AttributeTypeDescription
uxcamuseridStringUXCam's internal user ID
user_nameStringRandom alias (not real name)
user_first_seen_onDateTimeFirst session timestamp
user_session_durationIntegerTotal time in app (seconds)
user_gesture_countIntegerTotal interactions
user_rage_gesture_countIntegerTotal rage taps
user_custom_propertyJSONYour custom properties
device_countryStringCountry from IP
device_platformString"android" or "ios"

For the complete attribute list, see the full Users documentation.


See Also