Javascript
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); }
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?