Export SharePoint Site Collection site usage report

%3CLINGO-SUB%20id%3D%22lingo-sub-2269894%22%20slang%3D%22en-US%22%3EExport%20SharePoint%20Site%20Collection%20site%20usage%20report%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269894%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I%20want%20to%20export%20sharepoint%20site%20usage%20report%20for%20last%2030%20days%26nbsp%3B%20or%20based%20on%20date%20range.%3C%2FP%3E%3CP%3EDo%20we%20have%20api%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3EOOB%20i%20can%20only%20get%20last%207%20days.%20layouts%2F15%2Fsiteanalytics.aspx%3Fview%3D19%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22harshdamaniahd_0-1618311219233.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F272414iB82683AFD5450199%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22harshdamaniahd_0-1618311219233.png%22%20alt%3D%22harshdamaniahd_0-1618311219233.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2269894%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hi, 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

harshdamaniahd_0-1618311219233.png

 

 

2 Replies
Yes, SharePoint usage data is exposed through SharePoint Online REST API
i tried many apis but no api returns me pagee that were viewed in last 30 days