How to get number of views of a specific item?

435
3
09-10-2019 04:10 AM
BartłomiejGajc
New Contributor

I can search for specific type of content but what I need is number of views for each item. This class arcgis.gis.Item does not have this property, or? The thing is that our users publish huge datasets and do not use them being not aware of the credits being spent by the Organization. How to detect these items? I know how to get the size of an item but do not know number of views. 

Thanks,

Bart

Tags (1)
0 Kudos
3 Replies
Per_Åke_MattiasWallin
New Contributor III

Bart,

Have you tried item.numViews?

BartłomiejGajc
New Contributor

Hi, thanks! Does this attribute has a parameter like in .usage where you can find number of views for a specific period? 

0 Kudos
Per_Åke_MattiasWallin
New Contributor III

You cannot pass any parameters to the numViews so if you want to use date ranges you have to continue to use .usage.

0 Kudos