Search cases by filters
search_casesFind public court cases in Brazil by court, TPU class or subject codes, court unit, or filing date range. Returns case summaries without movements; at least one filter is required.
Instructions
Search one court's public cases by procedural class, subject, court unit and/or filing date range. Class and subject use numeric codes from CNJ's Unified Procedural Tables (TPU); className does a text match instead. Returns case covers without movements. At least one filter is required. Paginate with nextCursor. Expect 20-60 s latency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| court | Yes | DataJud court alias, e.g. 'tjsp', 'trf1', 'trt2', 'tre-sp', 'stj'. Optional when looking up a case number: the origin court is derived from the number. Pass it explicitly to read the record held by a higher court (e.g. 'stj'), since appeals keep the origin case number. | |
| cursor | No | `nextCursor` from a previous call | |
| filedTo | No | Filed on or before (YYYY-MM-DD) | |
| classCode | No | TPU class code, e.g. 1116 | |
| className | No | Words in the class name, e.g. 'Execução Fiscal' | |
| filedFrom | No | Filed on or after (YYYY-MM-DD) | |
| subjectCodes | No | TPU subject codes; matches cases with any of them | |
| courtUnitCode | No | Court unit (órgão julgador) code |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| court | Yes | ||
| total | Yes | ||
| results | Yes | ||
| nextCursor | Yes | Pass as `cursor` to fetch the next page |