> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetUserStatistics

> Call GetUserStatistics in the ABBYY FlexiCapture API to count the batches, documents, and pages a user processed within a given date range.

## What it does

Gets the number of batches, documents, and pages whose state changed to "Processed" within a certain time period.

## Definition

```
UserStatistics [] GetUserStatistics( int userId, long fromDate, long toDate );
```

## Parameters

<table width="100%"><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Type</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>userId</p></td><td><p>int</p></td><td><p>User ID</p></td></tr><tr><td><p>fromDate</p></td><td><p>long</p></td><td><p>The period start date. To convert values, use the following methods (C#):</p><pre><code>DateTime dtTime;
long lTime;
...
// conversion from DateTime to long
dTime = DateTime.FromFileTime(lTime);
...
// conversion from long to DateTime
lTime = dTime.ToFileTime();</code></pre></td></tr><tr><td><p>toDate</p></td><td><p>long</p></td><td><p>The period end date. To convert values, use the following methods (C#):</p><pre><code>DateTime dtTime;
long lTime;
...
// conversion from DateTime to long
dTime = DateTime.FromFileTime(lTime);
...
// conversion from long to DateTime
lTime = dTime.ToFileTime();</code></pre></td></tr></tbody></table>

## Returned value

| **Type**                                                           | **Description**                                                                                                                                                    |
| ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [UserStatistics](/flexi-capture/api/structures/user-statistics)\[] | A set of records, each containing information about the number of batches, documents or pages whose state changed to "Processed" within the specified time period. |
