Javascript
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); }
API Key for authentication
Summary period
hourly
daily
monthly
Start date for summary (ISO 8601)
End date for summary (ISO 8601)
Group results by
user
group
model
endpoint
Usage summary retrieved
Was this page helpful?