Count users matching filters
client.rawUsers.count(RawUserCountParams { filters } body, RequestOptionsoptions?): RawUserCountResponse { count, truncated }
POST/raw/users/count
Count users in the database matching filters. Counts are capped at minimum (10k) and maximum (1M). Requires RAW service. Credits: 1 per request.
Parameters
Returns
Count users matching filters
import Bountylab from '@bountylab/bountylab';
const client = new Bountylab({
apiKey: process.env['BOUNTYLAB_API_KEY'], // This is the default and can be omitted
});
const response = await client.rawUsers.count({ filters: { field: 'field', op: 'Eq', value: 'string' } });
console.log(response.count);{
"count": 0,
"truncated": true
}Returns Examples
{
"count": 0,
"truncated": true
}