Forum Discussion

jordanepotter's avatar
12 years ago

I need to know the number of each label in a given time frame.

We have a predefined list of labels for our q&a and require labels for each post. We want to know which labels are being used, and how that changes over time. We would like to get these numbers on command but if we could get every month statistics that would be great. I found a rest call to get the number of questions posted with that label: restapi/vc/boards/id/(BOARDID)/threads/for/labels/text/(LABEL)/top/count, but that just returns the total. I tried adding a date range like this to the end of the call: ?date_start=2009-07-01&date_end=2009-07-08, but that did not narrow it down. Is there a way to get what I am looking for?

1 Reply

  • AdamN's avatar
    AdamN
    Khoros Oracle
    12 years ago

    Hi jordanepotter,

     

    Unfortunately, I don't think there's a REST API call to give you exactly what you're looking for. One possibility would be to keep track of the count at various intervals, and then from the difference in those values you'd get a pretty good approximation of usage during that period. For example, you could poll daily, weekly, or montly at a certain time of day to get the total count, and then subtract from that the previous count.