Forum Discussion

allensmith81's avatar
2 months ago

Analytics API: nodeSubscriptions unexpected behaviour

Hi all,

I am using the Analytics API and I am trying to get a total count of subscriptions to all nodes of the community.

If I sent the following query to graphQL, I always get a null value:

nodeSubscriptions(constraints: {startTime: $startTime, endTime: $endTime}) {
    metric {
      value
    }
  }
}

Variables used are: (Yes I know its 3 months!)

{
  "startTime": 1719792000000,
  "endTime" : 1727740799000
}

However if I make this call

nodeSubscriptions(constraints: {startTime: $startTime, endTime: $endTime, conversationStyle: FORUM}) {
    metric {
      value
    }
  }
}

I successfully get a count of subscriptions, is this bug? or has nodeSubscriptions actually been disabled from pulling a count of the node subscriptions across the community?

Even if you had to specify conversationStyles for this call that wouldn't let you know how many subscriptions had been made to the category level. There is a nodeType of Category / GroupHub but that doesn't seem to do it either.

No RepliesBe the first to reply