> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/users/_getactivitylog.md).

# \_getActivityLog

Gathers the Logs of a User's Activity within the format of how many requests were done each minute, within each hour, all on a specified day.

### Parameters

#### from

Epoch time for the exact day to be checked.

#### user\_id

The ID of an exact User who will have their Activity recorded, unless this parameter is set to 0, in which all User Activity regardless of ID is returned.

#### activity\_type

Sets the type of activity which will be returned:

* 0 = All
* 1 = Reads
* 2 = Writes

### Example

(Epoch time being the 10th of June, 12:00am, 2026):

```
FM_api('Users_getActivityLog',[
    'from'=>'1781049600',
    'user_id'=>'113763',
    'activity_type'=>'2'
    ]
);
```

### Results

#### On Success

```
{"logs":[{"d":"1781110740","n":"1"},{"d":"1781102340","n":"3"},{"d":"1781097360","n":"2"},{"d":"1781097960","n":"1"},{"d":"1781102280","n":"3"},{"d":"1781109900","n":"3"},{"d":"1781110500","n":"3"},{"d":"1781101200","n":"11"},{"d":"1781097720","n":"2"},{"d":"1781109840","n":"7"},{"d":"1781110140","n":"10"},{"d":"1781092800","n":"6"},{"d":"1781092860","n":"1"},{"d":"1781097840","n":"5"},{"d":"1781109300","n":"5"},{"d":"1781093040","n":"1"},{"d":"1781110080","n":"4"},{"d":"1781093580","n":"6"},{"d":"1781098020","n":"4"},{"d":"1781101140","n":"3"},{"d":"1781097300","n":"4"},{"d":"1781110380","n":"5"},{"d":"1781110920","n":"1"},{"d":"1781111100","n":"1"},{"d":"1781092740","n":"5"},{"d":"1781097240","n":"2"},{"d":"1781108280","n":"5"}],"sessions":["1fbc39c3b6d00aa3"]}
```

#### On Failure

If the "from" parameter is not set or has an integer value less than 0:

```
{"error":"missing or invalid parameter: from"}
```
