Count repositories matching filters
client.rawRepos.count(RawRepoCountParams { filters } body, RequestOptionsoptions?): RawRepoCountResponse { count, truncated }
POST/raw/repos/count
Count repositories in the database matching filters. Counts are capped at minimum (10k) and maximum (1M). Requires RAW service. Credits: 1 per request.
Parameters
Returns
Count repositories 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.rawRepos.count({ filters: { field: 'field', op: 'Eq', value: 'string' } });
console.log(response.count);{
"count": 0,
"truncated": true
}Returns Examples
{
"count": 0,
"truncated": true
}