itemAnalytics resource type


APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

The itemAnalytics resource provides analytics about activities that took place on an item. This resource is currently only available on SharePoint and OneDrive for Business.

You can also use the getActivitiesByInterval API to retrieve analytics over a custom time range or interval.

Note: The itemAnalytics resource is not yet available in all national deployments.

JSON representation

  "allTime": {"@odata.type": "microsoft.graph.itemActivityStat"},
  "lastSevenDays": {"@odata.type": "microsoft.graph.itemActivityStat"}


Property Type Description
allTime itemActivityStat Analytics over the item's lifespan.
lastSevenDays itemActivityStat Analytics for the last seven days.