SOLVED

Is there an SharePoint API endpoint for views?

Copper Contributor

I'm trying to automate collection of metrics for articles on our SharePoint sites. There are some good articles on doing this for likes and comments using the SharePoint API and Power Automate, but I can't find any endpoints to do the same for the number of views each article received. Anyone know if there's an endpoint that has views?

1 Reply
best response confirmed by HopkinsRaz (Copper Contributor)
Solution

@HopkinsRaz You can use SharePoint search API to get page views. Check below threads for more information:

  1. https://sharepoint.stackexchange.com/questions/299085/how-to-find-the-page-views-in-the-sharepoint
  2. https://github.com/SharePoint/sp-dev-docs/issues/2808
  3. https://github.com/SharePoint/sp-dev-docs/issues/5072

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

1 best response

Accepted Solutions
best response confirmed by HopkinsRaz (Copper Contributor)
Solution

@HopkinsRaz You can use SharePoint search API to get page views. Check below threads for more information:

  1. https://sharepoint.stackexchange.com/questions/299085/how-to-find-the-page-views-in-the-sharepoint
  2. https://github.com/SharePoint/sp-dev-docs/issues/2808
  3. https://github.com/SharePoint/sp-dev-docs/issues/5072

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

View solution in original post