Count matching lawsuits
Counts how many lawsuits match the filter, excluding those your company has already retrieved. Free and synchronous — use it before creating a paid query.
Authorizations
Replace with the actual API key requirement for your Miner API deployment.
Body
Mirrors requestLawsuitsInputSchema in @judit-io/miner-shared (strict object).
Cross-field rules (enforced server-side):
- If both
amount_minandamount_maxare set,amount_min≤amount_max. - For
sentence-execution:budget_yearsandnaturesmust be absent. - For
judgement-bond:tagsmust be absent. amount_tiercannot be used together withamount_minoramount_max.
judgement-bond, sentence-execution Minimum lawsuit amount filter (cannot be combined with amount_tier)
Maximum lawsuit amount filter (cannot be combined with amount_tier)
0-100k, 100k-250k, 250k-500k, 500k-750k, 750k-1.5M, 1.5M+ Only when kind is judgement-bond
Only when kind is judgement-bond
alimentary, common Only when kind is sentence-execution
precatory_dispatched, possible_precatory, possible_approved_calculation Caps how many lawsuits are included in a find request (/requests/create only).
x >= 1Response
Count stored; response includes totals and optional echo of filters.