I am trying to retrieve the view count of modern SharePoint site page using PowerShell search API.

But the view count on the page and count of viewsLifeTime is different.\

PowerShell output:

enter image description here

SharePoint Page:

enter image description here

Can anyone let me know how can I get view count of page and also page visits count?

Are there any managed properties to get this count? Please help.

  • 1
    Check this thread on GitHub if it helps. And the related UserVoice. Commented Oct 13, 2020 at 11:40
  • Thank you for your quick response.
    – Swetha
    Commented Oct 14, 2020 at 10:55
  • You're welcome. let me know if it clears your doubts or resolves your issue. Commented Oct 14, 2020 at 11:50
  • Yes, It cleared my doubt. Thank You.
    – Swetha
    Commented Oct 14, 2020 at 13:45

1 Answer 1


As per this GitHub Issue:

The managed properties ViewLifeTime, ViewLifeTimeUniqueUsers and ViewsRecent, are not the same properties used within the Social bar, that is using a different source. The reason of this behavior is that, classic usage and modern (on the social bar) are from two different sources and we cannot make any comparison between each other.

So, technically its stored or processed from different places. Search query gets it from Search index, But In Social bar Page view, it basically uses Microsoft Internal api (based on fiddler traces ) to fetch Page views (not sure where/how it is being processed). As per the information received by Microsoft support, Microsoft api which fetches Social bar Page view count is not Public api (at least for now), so there is no Official documented api present yet.

Another Interesting fact is that, OOTB News web part also shows Page view count. When I checked the fiddler traces, It basically uses Search query to fetch News pages, but to fetch View count it uses Microsoft internal api again. So OOTB news web part apparently not use Search Managed property (ViewLifeTime, ViewLifeTimeUniqueUsers).

If you want Microsoft to support this then you can vote on below UserVoice:

Official documented Api needed to fetch modern Pages View count

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.