Sorry, no results found for "".
The time period upon which counters will be returned
"today"
Return only today's data
Return data for the current month
Return data for the past month
Returns a resource object of type usage_counter
import { buildClient } from "@datocms/cma-client-node";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const usageCounterId = "cda_access_token_id_requests";
const usageCounter = await client.usageCounters.find(usageCounterId);
// Check the 'Returned output' tab for the result ☝️ console.log(usageCounter);}
run();
{ id: "cda_access_token_id_requests", result: [{ value: "", counter: 20 }] }