ParseForge Scrapers

Brazil CNJ Court Cases Scraper

parseforge/brazil-cnj-court-scraper

OtherLead generation

Scrapes Brazilian court cases from the CNJ DataJud index. Filter by tribunal, case number, or class name. Returns each case as a flat row.

Run this scraper See the API call
Total users
5
Monthly active
2
Total runs
128
Bookmarked
0
Rating
Not rated yet
Last modified
9 days ago

Overview

ParseForge

Brazil CNJ Court Cases Scraper

Scrape Brazilian court cases from any CNJ tribunal, up to a million per run. Each case comes with its number, class, tribunal, and full metadata. No login or API key. Export to CSV, JSON, Excel, or XML.

Brazil's official court data is spread across dozens of tribunal portals, each with its own search interface. This Actor reads the public CNJ DataJud index directly, so you can pull cases from STF, STJ, TJSP, TRTs, TREs, and more in one fixed schema. Filter by case number or class name, and get every match as a flat row.

Who uses it What they scrape Brazil CNJ Court Cases for
Lawyers and law firms Monitor cases for clients or opposing parties across multiple tribunals
Legal researchers Build datasets of case metadata for empirical legal studies
Journalists Track high-profile cases and judicial activity by tribunal
Legal tech developers Feed case data into analytics dashboards or alerting systems

What it does

This Actor collects Brazilian court cases from the CNJ DataJud index by tribunal, case number, or class name, and returns each one as a flat row.

  • 🏛️ Tribunal selection: choose from 90+ CNJ tribunals, including STF, STJ, TST, TSE, all TRFs, TJs, TRTs, TREs, and military courts.
  • 🔍 Case number filter: enter a full 20-digit unified process number to retrieve that specific case.
  • 📂 Class name filter: partial match on the procedural class, like "Recurso Especial" or "Agravo".
  • 📊 Flat row output: each case is returned as a single record with consistent fields, ready for CSV, JSON, Excel, or XML export.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with Brazil CNJ Court Cases data

⚖️ Monitor a specific case.

A lawyer enters the 20-digit process number and gets the case metadata from the CNJ index for client updates.

📈 Track caseload by tribunal.

A legal researcher selects a tribunal like TJSP and collects recent cases to analyze filing trends.

🔎 Find cases by class.

A journalist filters by class name like "Recurso Especial" to identify relevant appeals across tribunals.

🗂️ Build a case database.

A legal tech developer runs the actor on multiple tribunals to populate a searchable case repository.

Why choose this scraper

What you get
No API registration Uses the public CNJ DataJud index, no OAuth or app setup
All tribunals in one One actor covers STF, STJ, TJSP, TRTs, TREs, and more
Flexible filtering Target by tribunal, case number, or class name
Scalable Collect up to 1,000,000 cases per run

How it compares

This actor focuses on the CNJ DataJud index for case metadata, while the competitors below offer different scopes: one is a due diligence report by CNPJ, and the other tracks cases by lawyer OAB or party name.

Feature ParseForge Brazil CNPJ Due Diligence Report - Company Background Check Brazil Court Scraper - Lawyer Caseloads & Case Tracking
Scrapes CNJ DataJud index Yes Not listed Not listed
Filter by tribunal Yes Not listed Not listed
Filter by case number Yes Not listed Yes
Filter by class name Yes Not listed Not listed
Search by lawyer OAB Not listed Not listed Yes
Due diligence report by CNPJ Not listed Yes Not listed

Configure the run

Drive the Actor from a tribunal, a case number, and a class name, alone or together, and filters run as each case is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

{
 "maxItems": 10,
 "tribunal": "tjsp"
}

A larger pull:

{
 "maxItems": 200,
 "tribunal": "tjsp"
}

Pricing

Pay-per-result: $0.021 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $2.10
1,000 results $21.00
10,000 results $210.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Brazil CNJ Court Cases Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to Brazil CNJ Court Cases through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/brazil-cnj-court-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check your filters. If you entered a case number, make sure it is the full 20-digit unified number. If you used a class name, try a broader partial match. Also verify the selected tribunal.

The run is slow or times out.

Reduce maxItems or narrow your filters. The CNJ index can be large, and querying many cases may take time.

I get an error about invalid tribunal.

Select a tribunal from the dropdown list in the input. The actor only accepts the aliases listed in the enum.

The output is missing some fields.

The CNJ index may not have all fields for every case. The actor returns whatever is available in the public data.

Can I search by party name or lawyer?

No, this actor only supports filtering by tribunal, case number, and class name. For party or lawyer search, consider a different actor like the Brazil Court Scraper by Jungle Synthesizer.

FAQ

Question Answer
What is CNJ DataJud? DataJud is the public database maintained by the Conselho Nacional de Justiça (CNJ) that aggregates case metadata from all Brazilian courts. This actor reads that index directly.
Which tribunals are supported? All 90+ tribunals in the CNJ index, including STF, STJ, TST, TSE, STM, TRFs, TJs, TRTs, TREs, and military courts. You select one per run from the dropdown.
Can I search by case number? Yes, enter the full 20-digit unified process number (numeroProcesso) to retrieve that specific case. The field is optional.
Can I filter by case class? Yes, use the classe field for a partial match on the procedural class name, such as "Recurso Especial" or "Agravo".
How many cases can I collect? You can set maxItems up to 1,000,000 cases per run. The actor will stop after reaching that limit.
What data does each case include? Each case returns metadata from the CNJ index, including the case number, class, tribunal, and other fields. The exact fields are shown in the sample output.
Do I need an API key or login? No, the actor uses the public CNJ DataJud index, so no registration or authentication is required.
What export formats are supported? You can export the results to CSV, JSON, Excel, or XML from the Apify platform.
Is this actor affiliated with CNJ? No, this is an independent scraper that accesses publicly available data. It is not endorsed by or affiliated with the Conselho Nacional de Justiça.
Can I run this on a schedule? Yes, you can schedule recurring runs on Apify to monitor new cases or updates automatically.

Related actors

Browse the full ParseForge collection for more scrapers.

🆘 Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Conselho Nacional de Justiça. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
maxItems integer How many court cases to collect per run. 10
tribunal string (92 options) CNJ tribunal alias. Each tribunal has its own DataJud index. tjsp
numeroProcesso string Full Brazilian unified case number (20 digits). Optional. not set
classe string Partial match on classe.nome (e.g. "Recurso Especial"). Optional. not set

Pricing

from $19.00 per 1,000 results

Charged forWhat it isPrice each
result Single result in the default dataset. $0.019 to $0.021

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST · run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~brazil-cnj-court-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run Brazil CNJ Court Cases Scraper on Apify All scrapers