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

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const dailyUsages = await client.dailyUsages.list();
for (const dailyUsage of dailyUsages) {
// Check the 'Returned output' tab for the result ☝️
console.log(dailyUsage);
}
}
run();
{
id: "412",
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,
}