TJBA
Bahia State Court (TJBA)
Search Bahia state court (TJBA) cases by Brazilian CPF in 60s. Both ESAJ and PJE systems queried in one call, full case history consolidated. Free signup credits.
- State
- Bahia
- Region
- Nordeste
- Supported systems
- ESAJ + PJE
- Instances
- Trial and appeals
Advertised coverage. Sealed cases are not accessed.
Open official portalThe Bahia State Court (TJBA) is one of the few Brazilian tribunals that keeps TWO systems simultaneously: ESAJ (older cases and some comarcas) and PJE (newer cases and most of the interior). This creates an important peculiarity: complete due diligence on a Bahia-based party requires querying BOTH systems. TJBA covers 417 municipalities and is among the largest Northeast tribunals by volume.
TJBA at a glance
- Over 3.5 million active cases
- 417 comarcas covering the entire state of Bahia
- TWO active systems: ESAJ (legacy) + PJE (new)
- Around 800 active judges
- Strong concentration of corporate, agribusiness and family cases
- Gradual ESAJ→PJE migration still underway in part of the interior
TJBA lawsuit search by CPF
/cpopg/open.do (1st) and /cposg/ (2nd) with CAPTCHA. On PJE, "Consulta Pública" without CAPTCHA. Coverage includes all 417 Bahia comarcas (Salvador, Feira de Santana, Vitória da Conquista, Ilhéus, Itabuna, Juazeiro, Barreiras). To avoid fragmentation, the Vigilant API queries BOTH systems in one call and consolidates without duplicates (CNJ-based deduplication).How to search lawsuits at TJBA
Via the Vigilant API, a single REST call with a CPF returns the court's cases as structured JSON. You can also query through the web dashboard or via Google Sheets.
- 1
Identify the correct system
If the case is recent (post-2019), it's likely on PJE (pje.tjba.jus.br). If it's old or in a comarca not yet migrated, it's on ESAJ (esaj.tjba.jus.br). When unsure, query BOTH.
- 2
Query TJBA ESAJ
Open esaj.tjba.jus.br/cpopg/open.do for 1st instance or /cposg/ for 2nd. Use document search (CPF). ESAJ requires CAPTCHA on every query.
- 3
Query TJBA PJE
Open pje.tjba.jus.br. Choose "Public Search" and look up by CPF. Rarely asks for CAPTCHA. Allows filtering by comarca if needed.
- 4
Consolidate results from both systems
Cases may appear only in one of the systems — manual consolidation is required. For a unified view, Vigilant queries TJBA ESAJ and PJE in one call and returns combined results in chronological order.
- 5
For bulk due diligence, use Vigilant
A single API call with "TJBA" in the courts array queries both systems internally and returns structured JSON with no duplicates. Essential for M&A and compliance on Bahia-based companies.
Local quirks & calendar
TJBA suspends deadlines on Bahia state holidays: July 2 (Bahia Independence), plus national ones. The forensic recess follows the standard (Dec 20 to Jan 20). The central peculiarity is the coexistence of ESAJ and PJE — naive scraping grabs only one of them and misses cases. Some interior comarcas (e.g. Feira de Santana, Vitória da Conquista, Ilhéus) migrated to PJE earlier; others still keep ESAJ active.
Manual portal vs Vigilant API
| Aspect | Manual portal | Vigilant API |
|---|---|---|
| System coverage | Requires 2 searches (ESAJ + PJE) | 1 call covers both |
| Time per query | 10-15 min (summing the 2 systems) | ~60s |
| Deduplication | Manual | Automatic (by CNJ) |
| Cost | Staff cost | R$ 0.10 per court (covers both) |
| Format | Mixed HTML | Structured consolidated JSON |
Who queries TJBA
Related tools
Free utilities to validate CPF, decode CNJ numbers, and more before you call the API.
Related guides
Deeper reading on topics that matter for TJBA queries.
ESAJ vs PJE 2026: Which Brazilian Courts Use Each + Unified API
ESAJ covers 7 Brazilian states, PJE covers 13. Learn which system each court uses and query all 24 courts with a single API call.
Brazilian lawsuit search by CPF: how to query court cases across 10 states
Practical guide to searching lawsuits by CPF across Brazilian courts. State coverage, real costs, time, LGPD compliance, and how to automate high-volume queries. Updated April 2026.
Brazilian Legal Due Diligence 2026: 24-Court API + Checklist
Complete judicial DD guide for Brazil: M&A, credit, KYC. Manual vs API costs, LGPD/OAB coverage, actionable checklist.
Frequently asked questions about TJBA
Both. It's one of the few Brazilian tribunals that keeps two active systems — ESAJ for legacy cases and comarcas not yet migrated, PJE for new cases and most of the interior. For full due diligence, query both.
By filing date and comarca. Recent cases (post-2019) tend to be on PJE. Older cases remain on ESAJ until full migration. When in doubt, query both — or use Vigilant which unifies them.
Yes — in a single API call. The result comes consolidated (no duplicates by CNJ) and chronologically ordered. You don't need to worry about which system has which case.
Suspends deadlines on July 2 (Bahia Independence) and national holidays. Forensic recess follows the standard. Check the [TJBA official calendar](https://www5.tjba.jus.br) before critical deadlines.
417 comarcas across the state, from Salvador to inland cities like Juazeiro, Barreiras and Luís Eduardo Magalhães. A CPF query automatically covers all comarcas.
No — labor cases in Bahia are tried at TRT-5 (Regional Labor Court of the 5th Region), a system independent from TJBA. Vigilant covers TJBA but not TRT-5 at this time.
Via Vigilant continuous monitoring — receive alerts when new cases appear in ESAJ or PJE. Frequencies: 6h, 12h, daily, weekly.
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.
Integrate TJBA into your workflow
Free sign-up with 5 test credits. OpenAPI 3.1 documentation ready at vigilant.trackjud.com.br/api/docs.