I'm trying to create a Power Automate flow that will check total number of views of a document library. Using a Send an HTTP request to SharePoint - GET method with a Uri of _api/web/lists/getbytitle('LibraryName')/views I receive no errors but I also don't get the information I need. Are library views possible?
I do not think there is a direct REST API endpoint that provides the view count of documents or document libraries. One way you can do is by following the shared steps
Using SharePoint Search API (Workaround)
Although it won’t directly provide view counts, you can query for documents with certain metadata that may indicate how many times a document has been interacted with.
This can give you results on documents within the library, and you may have to filter or use metadata to infer activity, but it still won't directly give you the number of views.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.