Forum Discussion

tonongregory's avatar
10 years ago

[API] count total kudos on community filtered on date range

Hi

Is it possible to get the total of kudos given on the community on a date range ?

 

Following api does not permit it

https://community.lithium.com/t5/Community-API/bd-p/developers-rest-api?leaf-id=Community.kudos.count#Community.kudos.count

 

There is another way to get it ? (or a hidden method)

 

  • OlivierS's avatar
    OlivierS
    10 years ago

    tonongregory I think there is a way ...

     

    You can call pretty much any metrics (Admin Metrics) from the API v1 using the /name method.

     

    So, if this is what you're after: 

     

    Net Kudos Weight: The sum of the kudos weight for kudos given, minus the sum of kudos weight for kudos that have been revoked. 

     

    Try: 

    https://<your_community_url>/restapi/vc/metrics/name/net_kudos_weight

    https://<your_community_url>/restapi/vc/metrics/name/net_kudos_weight/?date_start=2015-02-01&date_end=2015-02-28

     

    You have to use ISO 8601 date.

     

    2015-03-02_1628.png

3 Replies