get_activity
Retrieve recent activity for the current Nextcloud user, covering file changes, shares, and calendar events. Filter by type, object, or time to monitor what happened.
Instructions
Get the recent activity feed for the current Nextcloud user.
Activities track what happened across Nextcloud: file changes, shares, calendar events, comments, and more.
Filters include "all", "self" (your actions), "by" (others' actions), "files", "files_sharing", "files_favorites", "calendar", "comments" and more, depending on the installed apps; list_activity_filters lists them.
To get activities for a specific file or object, provide both object_type and object_id (e.g., object_type="files", object_id=742), and leave activity_filter at "all". This also clears the returned activities' notifications, as the web interface does when it shows a file's activity.
Args: activity_filter: Activity filter id (default: "all"). limit: Maximum number of activities to return (1-200, default: 30). since: Activity ID to paginate from. Use the "since" value from the previous call's pagination to fetch the next page. Default 0 = newest. object_type: Filter by object type (e.g., "files"). Must be used together with object_id. object_id: Filter by object ID. Must be used together with object_type. sort: Sort order: "desc" (newest first, default) or "asc" (oldest first). search: Only activities whose file path contains this text (2-255 characters after trimming, case-insensitive), which leaves out activities without a file. start: Only activities at or after this time: an ISO 8601 date (from its start, UTC) or a time with a time zone. end: Only activities at or before this time: an ISO 8601 date (to its end, UTC) or a time with a time zone. actor: Only activities done by this user ID. search, start, end and actor need Nextcloud 35 (Activity 8); on older servers they are refused rather than ignored.
Returns: JSON object with "data" (list of activities) and "pagination" (count, has_more, since). Use since value for the next page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| sort | No | desc | |
| actor | No | ||
| limit | No | ||
| since | No | ||
| start | No | ||
| search | No | ||
| object_id | No | ||
| object_type | No | ||
| activity_filter | No | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |