Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Public info

Retrieve project's daily usage info

Returns

Returns an array of resource objects of type daily_usage.

Examples

GET https://site-api.datocms.com/daily-site-usages HTTP/1.1
Authorization: Bearer YOUR-API-TOKEN
Accept: application/json
X-Api-Version: 3
Terminal window
curl -g 'https://site-api.datocms.com/daily-site-usages' \
\
-H "Authorization: Bearer YOUR-API-TOKEN" \
-H "Accept: application/json" \
-H "X-Api-Version: 3"
await fetch("https://site-api.datocms.com/daily-site-usages", {
headers: {
Authorization: "Bearer YOUR-API-TOKEN",
Accept: "application/json",
"X-Api-Version": "3",
},
});
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: cache-control: max-age=0, private, must-revalidate
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 28
{
"data": [
{
"type": "daily_usage",
"id": "412",
"attributes": {
"date": "",
"cda_api_calls": 20,
"cma_api_calls": 20,
"cda_traffic_bytes": 20,
"cma_traffic_bytes": 20,
"assets_traffic_bytes": 20,
"mux_delivered_seconds": 20,
"mux_high_resolution_delivered_seconds": 20,
"mux_encoded_seconds": 20
}
}
]
}