tmarshall
5 years agoAdvisor
Message stats via APIv2
When viewing a message in our the community there are stats on that message that give context to the moderators to focus on those topics. We would like to bring those stats in via APIv2 and include Replies, Date of topic, views, Kudos, 'in conversation
I'm able to get a few of the data points but not all in my APIv2 query.
https://community/api/2.0/search?q=SELECT id,replies.count(*),metrics.views,kudos.sum(weight),conversation.messages_count FROM messages where id = '1774748'
Question
The kudos.sum(weight) only brings back 3 rather than the total number of kudos.
I'm not sure how to sum up the number of unique users in the topic?
Appreciate the help on how to bring back the same stats in an APIv2 call.
Thanks,
Tim