Crawlsmith

JusBrasil Court Scraper

Extract Brazilian court decisions and jurisprudence (STJ, STF, state TJ, federal TRF, labour TST) from JusBrasil.com.br — full ementa and acórdão text, court, judging body, rapporteur, dates and process data. Ideal for legal research, law firms, legal-tech and NLP.

What it does

This scraper automatically searches Brazilian jurisprudence and collects structured, ready-to-use data for every court decision it finds. No manual browsing, no copy-paste — just set your keywords and hit Start.

Two modes of operation:

  1. Discovery Mode — Enter a search term (e.g. "responsabilidade civil") or a CNJ process number, optionally pick a court, and the scraper gathers matching decisions across as many result pages as you need.
  2. Direct URL Mode — Paste specific JusBrasil search or decision URLs and the scraper extracts exactly those.

Who uses it

Use Case How It Helps
Lawyers & Law Firms Build precedent files in minutes — find the rulings that support your case across every major court
Legal Researchers & Academics Collect large, structured samples of case law for studies, papers and citation analysis
Legal-Tech & NLP Teams Feed clean ementa and acórdão text into models for classification, summarization and search
Journalists & Analysts Track how courts rule on a topic over time and surface patterns across tribunals
Compliance & Risk Teams Monitor judicial trends on liability, consumer law and regulatory matters

Input

11 options. Required ones are marked.

Option What it does
Search query Keywords to search Brazilian jurisprudence for, e.g. "responsabilidade civil", "dano moral", "improbidade administrativa".
Court / tribunal filter Restrict the search to a single court.
Fetch full decision text When on (default), each decision is opened to collect the full ementa, acórdão ruling text, judging body, rapporteur, dates, references and an AI summary.
Process number (CNJ) Look up a specific case by its CNJ process number, e.g. "0001234-56.2020.8.26.0100".
Start URLs (optional) Direct JusBrasil URLs to scrape — either jurisprudence search pages (…/jurisprudencia/busca?q=…) or individual decision pages (…/jurisprudencia/stj/123456789/…).
Maximum results Stop after collecting this many decision records across all search pages.
Max search pages Safety cap on how many result pages to paginate through per search before stopping.
Max concurrency How many searches to process in parallel (each runs its own stealth browser).
Max request retries How many times to retry clearing Cloudflare / loading a page before giving up.
Debug: dump rendered HTML Save the rendered HTML of each page to the key-value store (for troubleshooting parser issues).
Proxy configuration JusBrasil blocks datacenter IPs at the Cloudflare layer — RESIDENTIAL proxies are required.

Output fields

35 fields, grouped the way the dataset views show them. Export to JSON, CSV, Excel or pull them through the API.

Overview

  • Title
  • Court
  • Judging Body
  • Rapporteur
  • Judged
  • Published
  • URL

Legal & Parties

  • Court
  • Court Name
  • Instance
  • Class
  • Process #
  • Body
  • Rapporteur
  • Parties
  • Lawyers (OAB)
  • Claim Value
  • Judged
  • Published

Decision Content

  • Title
  • Court
  • Ementa
  • AI Summary
  • Ruling Text
  • Full-Text File

Full Details

  • title
  • court
  • courtName
  • instance
  • state
  • proceduralClass
  • processNumber
  • judgingBody
  • judge
  • subject
  • decisions
  • decisionSummary
  • type
  • isMeritDecision
  • isAdmissibilityDecision
  • isMandatoryPrecedent
  • isHistoryPrecedent
  • lawyers
  • parties
  • claimValue
  • publicationDate
  • judgmentDate
  • inteiroTeorFile
  • lawReferences
  • decisionReferences
  • relatedProcesses
  • readingTimeMinutes
  • docId
  • score
  • slug
  • keywords
  • processUrl
  • sourceType
  • source
  • scrapedAt

Example output

One record, shortened. Real runs return one row like this per result.

{
  "title": "Superior Tribunal de Justiça STJ - RECURSO ESPECIAL: REsp XXXXX RS",
  "court": "STJ",
  "courtName": "Superior Tribunal de Justiça",
  "instance": "Superior Court",
  "state": null,
  "proceduralClass": "REsp XXXXX RS",
  "processNumber": null,
  "type": "ACORDAO",
  "docId": "1554600400",
  "judgingBody": "T2 - SEGUNDA TURMA",
  "judge": "Ministro RICARDO VILLAS BÔAS CUEVA",
  "subject": "ADMINISTRATIVO. RECURSO ESPECIAL. RESPONSABILIDADE CIVIL DO ESTADO POR OMISSÃO. MORTE EM DECORRÊNCIA DE DISPARO DE ARMA DE FOGO...",
  "decisions": [
    "Vistos e relatados estes autos em que são partes as acima indicadas, acordam os Ministros da Turma, por unanimidade, dar provimento ao recurso..."
  ],
  "decisionSummary": "No recurso especial, a parte buscou a condenação ao pagamento de indenização por danos morais e materiais decorrentes...",
  "keywords": "Constituição Federal de 1988, Art. 37; Lei nº 8.078/1990",
  "parties": [],
  "lawyers": [],
  "claimValue": null,
  "isMeritDecision": false,
  "isAdmissibilityDecision": false,
  "isMandatoryPrecedent": false,
  "isHistoryPrecedent": false,
  "judgmentDate": "2022-05-24",
  "publicationDate": "DJe 24/06/2022",
  "readingTimeMinutes": 75,
  "inteiroTeorFile": "STJ_RESP_1708325_c4d00.pdf",
  "lawReferences": [],
  "decisionReferences": [],
  "relatedProcesses": [],
  "processUrl": "https://www.jusbrasil.com.br/jurisprudencia/stj/1554600400",
  "slug": "recurso-especial-resp-1708325-rs-2015-0273254-9",
  "score": 0,
  "sourceType": "jurisprudencia",
  "source": "jusbrasil",
  "scrapedAt": "2026-06-29T14:56:20.895Z"
}

How to run it

  1. 1. Open the scraper on Apify and sign in (free plan works).
  2. 2. Fill in the input: search terms, URLs or filters, and a result limit.
  3. 3. Run it, then download JSON, CSV or Excel, or pull the dataset through the API.
  4. 4. Schedule it to get fresh data daily or weekly.

FAQ

Which courts are covered? +

The STF, STJ and TST (superior courts), every state Court of Justice (TJSP, TJRJ, TJMG, TJRS, TJPR and the rest), and all five Federal Regional Courts (TRF1–TRF5) — anything indexed in JusBrasil's jurisprudence collection.

Can I search by process number? +

Yes — enter a CNJ process number instead of keywords and the scraper looks it up. Note that for anonymous access some process numbers are masked by the source.

Why are some fields (lawyers, parties, full process number) empty? +

JusBrasil shows full ementa and acórdão text publicly, but masks certain personal details (party names, lawyers, complete process numbers) unless you are logged in. The scraper returns everything that is publicly available.

Do I get the full decision text or just a summary? +

Both. You get the full ementa and acórdão text, plus a plain-language AI summary. Turn off "Fetch Full Text" for a faster run that returns just the listing-level fields.

Can I export the data? +

Yes — JSON, CSV, Excel, XML, HTML, RSS. You can also push data directly to Google Sheets, Zapier, Make, or any webhook/API endpoint.

How often should I run this? +

For fresh case law, run daily or weekly. You can schedule automatic runs on Apify with just a few clicks.

Does it work with proxies? +

Yes — Brazilian residential proxies are recommended and used by default for the best results, via Apify's built-in proxy service.

Need something this scraper does not do?

Extra fields, a different filter, a recurring feed into your database or a one-off bulk export.

Ask for a custom version

Related scrapers