JavaScript
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}}; fetch('https://studyfetchapi.com/api/v1/usage/stats', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
API Key for authentication
Start date for stats (ISO 8601)
End date for stats (ISO 8601)
Filter by user ID
Filter by group ID
Usage statistics retrieved
Was this page helpful?