GET
/
api
/
v1
/
usage
/
summary
Get usage summary
const url = 'https://studyfetchapi.com/api/v1/usage/summary';
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

period
enum<string>
required

Summary period

Available options:
hourly,
daily,
monthly
startDate
string
required

Start date for summary (ISO 8601)

endDate
string
required

End date for summary (ISO 8601)

groupBy
enum<string>

Group results by

Available options:
user,
group,
model,
endpoint

Response

200

Usage summary retrieved