GET
/
api
/
v1
/
usage
/
stats
Get usage statistics
const url = 'https://studyfetchapi.com/api/v1/usage/stats';
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}

Authorizations

x-api-key
string
header
required

API Key for authentication

Query Parameters

startDate
string

Start date for stats (ISO 8601)

endDate
string

End date for stats (ISO 8601)

userId
string

Filter by user ID

groupId
string

Filter by group ID

Response

200

Usage statistics retrieved