import ModerationAPI from '@moderation-api/sdk';
const client = new ModerationAPI({
secretKey: process.env['MODAPI_SECRET_KEY'], // This is the default and can be omitted
});
const response = await client.queue.getStats('id');
console.log(response.actionStats);
Get detailed statistics about a moderation queue including review times, action counts, and trends
JavaScript
Copy
import ModerationAPI from '@moderation-api/sdk';
const client = new ModerationAPI({
secretKey: process.env['MODAPI_SECRET_KEY'], // This is the default and can be omitted
});
const response = await client.queue.getStats('id');
console.log(response.actionStats);