I want to export sharepoint site usage report for last 30 days  or based on date range.

Do we have api ? 

OOB i can only get last 7 days. layouts/15/siteanalytics.aspx?view=19 enter image description here

1 Answer 1


You can use Site usage feature to view usage data for your site the last 7 days, last 30 days, and last 90 days.

enter image description here

enter image description here


  • Site admins, owners, members, and visitors can view site usage data
  • Site visitors cannot run external user reports or download the 90-day usage report
  • Guest users with Site Owner permissions will not have access to site analytics or site usage data.

More information, please refer to this article.

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.