Get usage statistics
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));curl --request GET \
--url https://studyfetchapi.com/api/v1/usage/stats \
--header 'x-api-key: <api-key>'import requests
url = "https://studyfetchapi.com/api/v1/usage/stats"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)Usage Tracking
Get usage statistics
GET
/
api
/
v1
/
usage
/
stats
Get usage statistics
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));curl --request GET \
--url https://studyfetchapi.com/api/v1/usage/stats \
--header 'x-api-key: <api-key>'import requests
url = "https://studyfetchapi.com/api/v1/usage/stats"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)Authorizations
API Key for server-to-server authentication. Resolves to the owning organization.
Query Parameters
Start date for stats (ISO 8601)
End date for stats (ISO 8601)
Filter by user ID
Filter by group ID
Response
200
Usage statistics retrieved
Was this page helpful?