Skip to main content
TrackJud TrackJud
· Updated on · 7 min read

Brazilian Lawsuit Search by State: Complete Guide to 12 State Courts

By TrackJud

How to search lawsuits in each Brazilian state: systems, peculiarities, coverage. Complete guide to TJSP, TJRJ, TJMG, TJBA, TJCE, TJDFT and more.

Brazilian state justice is fragmented by design: each state has its own State Court (TJ), each TJ picks its own technology stack, and local forensic calendars vary. For law firms, compliance teams, fintechs and M&A advisors operating across multiple states, lawsuit search becomes a logistical problem — which is exactly where unified API tools matter.

This guide maps the 12 states with courts covered by Vigilant, spanning systems (ESAJ vs PJE), local peculiarities, and how to query each. The list is not exhaustive — Brazil has 27 state TJs — but concentrates over 70% of national case volume.

Why “lawsuit search by state” is a problem

Until 2008, each court used its own system (or none). In 2008, CNJ published Resolution 65 standardizing the Unique Case Number (CNJ), creating a basis for interoperability. In parallel, two initiatives competed to become the de facto system:

  • ESAJ (Court Automation System) — developed by Softplan. Adopted by 7 state TJs.
  • PJE (Electronic Judicial Process) — developed by CNJ with TJRN. Adopted by 13 state TJs.

Neither fully won. Some states (Bahia, Ceará) keep both systems simultaneously for historical reasons. Others (like TJSP) resisted PJE migration and remain on ESAJ. The result: any cross-state query has to handle multiple systems, interfaces and calendars.

Covered courts by system

ESAJ (Softplan)

State courts on ESAJ share a similar interface: mandatory CAPTCHA on every search, paginated listing. Manual access is easy but doesn’t scale — above ~20 queries/day, manual work becomes the bottleneck.

TJStateInstancesNote
TJSPSão Paulo1st + 2ndLargest case volume in Brazil (~25% of national total)
TJACAcre1st + 2ndSmallest volume — ~150K cases
TJALAlagoas1st + 2ndCoastal concentration (real estate disputes)
TJAMAmazonas1st + 2ndRiver-based comarcas, continental territory
TJBABahia1st + 2ndDual system — also uses PJE (see below)
TJCECeará1st + 2ndDual system — also uses PJE

PJE (CNJ)

Courts on PJE tend to have a leaner and more stable UI — rarely require CAPTCHA on public searches. The architecture is event-driven, so digitally filed cases become visible within minutes (against up to 24h on ESAJ).

TJStateInstancesNote
TJRJRio de Janeiro1st + 2ndPJE since 2018, strong in real estate
TJMGMinas Gerais1st + 2ndSeparate subdomains per instance (pje and pje2)
TJDFTFederal District1st + 2ndSingle jurisdiction (capital only)
TJPEPernambuco1st + 2ndPJE since 2020
TJMAMaranhão1st + 2ndStrong agrarian and indigenous activity
TJAPAmapá1st + 2ndSmall volume, environmental focus

States with two systems running in parallel

Bahia (TJBA) and Ceará (TJCE) keep ESAJ and PJE active in parallel. The historical reason differs:

  • TJBA: ESAJ was deployed first in the capital (Salvador) and large comarcas. PJE came later, migrating interior comarcas first. Some comarcas remain on ESAJ.
  • TJCE: Fortaleza capital still uses ESAJ in many courts, while the interior migrated to PJE early.

Practical implication: complete due diligence on a Bahia or Ceará CPF requires querying BOTH systems. Naive scraping picks one and misses cases. Vigilant handles this internally — a single API call with “TJBA” or “TJCE” queries both systems and consolidates the return.

Forensic calendar by state

Each state has state holidays that suspend procedural deadlines. The most relevant:

StateState holiday suspending deadlinesDate
São PauloConstitutionalist RevolutionJuly 9
Rio de JaneiroSão SebastiãoJanuary 20
Minas GeraisMinas Gerais Magna DateMarch 25
BahiaBahia IndependenceJuly 2
CearáCeará Magna DateMarch 25
PernambucoPernambucan RevolutionMarch 6
AlagoasAlagoas Political EmancipationSeptember 16
MaranhãoMaranhão Adherence to IndependenceJuly 28
AcreAcre Creation / Elevation to StateJune 15 / August 6
AmazonasElevation to Province / Patron SaintSeptember 5 and 8
AmapáAmapá CreationSeptember 13

Beyond these, all courts suspend deadlines during the forensic recess (Dec 20 to Jan 20) and national holidays. Specific comarcas may have municipal patron-saint suspensions — always check the official calendar before critical deadlines.

Systems NOT in this guide

Important cases outside Vigilant’s current coverage:

  • Federal Justice (TRFs and JFs): independent system, cases against the Union, INSS, federal agencies. Vigilant covers TRF-1 (Federal District, MG, MA, among others) and TRF-3 (SP, MS) via the federal PJE system.
  • Labor Justice (TRTs): 24 regional labor courts. TRT coverage is not on Vigilant’s immediate roadmap.
  • Electoral Justice (TREs/TSE): electoral and party cases, independent system.
  • Military Justice (state and federal): own system.

For full company (corporate) due diligence, you may need to combine state TJ + TRT + local TRF. Vigilant simplifies the state part — the rest is still manual today.

How to choose which courts to query

Depends on the use case:

Due diligence on an individual residing in SP: TJSP is mandatory. If business activity in other states, add the TJ of that state (e.g. TJMG if they operate a factory in MG).

Due diligence on a company headquartered in RJ: TJRJ + TJSP (clients/suppliers in SP are common) + TJ of each branch’s state. For labor liability, add TRT-1 (via another tool — Vigilant doesn’t cover TRT).

Compliance for a national fintech: TJSP + TJRJ + TJMG cover ~50% of the client base. Add TJs of other states with geographic concentration.

M&A of a company with multi-state operations: All 12 Vigilant-covered courts, plus TRT-1/2/3/4 and TRF-1/3 as the operation requires.

Automating queries at volume

Above ~20 CPFs/day, manual queries become a bottleneck. Options:

  1. Vigilant API — a single REST call returns structured JSON from the 12 covered courts. Full OpenAPI 3.1 docs.
  2. Google Sheets + Vigilant — Apps Script integration for no-code batch due diligence. Practical guide at Vigilant + Google Sheets integration.
  3. Custom scraping — feasible but expensive to maintain (CAPTCHAs, layout changes, rate limits). Comparison at best Brazilian court data APIs.

For teams that need to continuously monitor new cases against a portfolio, Vigilant offers automated monitoring with email and webhook alerts — register the CPF once and receive notifications when new cases appear in any of the 12 courts.

Next steps

Each court listed above has its own reference page with detailed stats, step-by-step manual query guide, and local peculiarities — click the table links to access.

Frequently asked questions

What's the difference between querying TJSP and TJRJ?

The central difference is the system: TJSP uses ESAJ (interface with CAPTCHA on every query, developed by Softplan), TJRJ uses PJE (leaner interface, rarely requires CAPTCHA). The search logic is the same — CPF, CNPJ or name. Returned fields are similar. The main practical difference is latency and server resilience: PJE usually responds faster than ESAJ.

Can I query every Brazilian state at once?

Only through a unified API. Manually, you have to access each portal separately (and in some cases, even two portals per state — like TJBA and TJCE, which keep ESAJ and PJE simultaneously). Vigilant queries the 12 covered courts in a single API call and consolidates the return as structured JSON.

Does DataJud (CNJ) replace individual court queries?

No. DataJud is an aggregated base maintained by CNJ for statistical purposes — it contains case summaries without the detail needed for due diligence. For operational queries (parties, full movement history, case value), you need to access the originating court directly or use an API that scrapes it (like Vigilant).

How long does Vigilant take to query all states?

In parallel, about 60 seconds per court. If you query 5 courts in a single call, total response time is between 60s and 90s (the bottleneck is the slowest court). With caching active (<2 days), response becomes sub-second for recently queried data.

Are labor lawsuits in state courts (TJs)?

No. Labor cases go to Regional Labor Courts (TRTs), an independent system. Each state has its own numbered TRT (e.g. TRT-2 in SP, TRT-1 in RJ, TRT-3 in MG). Vigilant currently covers state TJs and some federal TRFs, but not TRTs — for labor liability, you need to query the corresponding TRT directly.

Want to try Vigilant?

Search lawsuits across 12 court sources with a single API call.

5 free credits

Search in these Brazilian courts

Each court page explains how to search cases and which Vigilant API fields apply.

Related articles

What's coming

We are building the future of Vigilant

See what we shipped and what is next — and tell us the feature that would make a difference for you. We prioritize by listening to users.

Labor courts (TRTs)Search by case number (CNJ)Monitoring by CNPJWebhook / API