v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Rum Audience Management

Get user facet info

Get facet information for user attributes including possible values and counts

post/api/v2/product-analytics/users/facet_info

Request body

Example request

{
  "data": {
    "attributes": {
      "facet_id": "first_browser_name",
      "limit": 10,
      "search": {
        "query": "user_org_id:5001 AND first_country_code:US"
      },
      "term_search": {
        "value": "Chrome"
      }
    },
    "id": "facet_info_request",
    "type": "users_facet_info_request"
  }
}

Response

Successful response with facet information

Example response

{
  "data": {
    "attributes": {
      "result": {
        "values": [
          {
            "count": 4892,
            "value": "Chrome"
          },
          {
            "count": 2341,
            "value": "Safari"
          },
          {
            "count": 1567,
            "value": "Firefox"
          },
          {
            "count": 892,
            "value": "Edge"
          },
          {
            "count": 234,
            "value": "Opera"
          }
        ]
      }
    },
    "id": "facet_info_response",
    "type": "users_facet_info"
  }
}