Get usage summary
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://studyfetchapi.com/api/v1/usage/summary', 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/summary \
--header 'x-api-key: <api-key>'import requests
url = "https://studyfetchapi.com/api/v1/usage/summary"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)Usage Tracking
Get usage summary
GET
/
api
/
v1
/
usage
/
summary
Get usage summary
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://studyfetchapi.com/api/v1/usage/summary', 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/summary \
--header 'x-api-key: <api-key>'import requests
url = "https://studyfetchapi.com/api/v1/usage/summary"
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
Summary period
Available options:
hourly, daily, monthly Start date for summary (ISO 8601)
End date for summary (ISO 8601)
Group results by
Available options:
user, group, model, endpoint Response
200
Usage summary retrieved
Was this page helpful?