Select to view content in your preferred language

How to get number of views of a specific item?

1536
3
09-10-2019 04:10 AM
BartłomiejGajc
Emerging 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
Occasional Contributor

Bart,

Have you tried item.numViews?

BartłomiejGajc
Emerging 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
Occasional Contributor

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