CENDOJ Spanish Case Law Search: Court Decisions & ECLI avatar

CENDOJ Spanish Case Law Search: Court Decisions & ECLI

Pricing

from $0.63 / 1,000 decisions

Go to Apify Store
CENDOJ Spanish Case Law Search: Court Decisions & ECLI

CENDOJ Spanish Case Law Search: Court Decisions & ECLI

Search Spanish court decisions in CENDOJ by phrase, court, region, decision type and date. Export ROJ, ECLI, summaries, PDF links, key passages and full judgment text for legal research.

Pricing

from $0.63 / 1,000 decisions

Rating

0.0

(0)

Developer

Cliqto Media

Cliqto Media

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Features

Limited permissions

Share

Search Spanish case law in CENDOJ, the official judicial documentation centre of the General Council of the Judiciary, by phrase, ROJ, ECLI, court, jurisdiction, region, decision type and date. Get one row per court decision with ROJ, ECLI, court, date, summary, PDF link and, if you want, the full judgment text and key passages.

It is for lawyers, legal researchers, compliance teams and legal-tech builders. The smallest run is one search phrase, such as despido improcedente, with 10 decisions.

CENDOJ Spanish case law search: phrase and filters in, decisions with ROJ, ECLI, summary and full text out

Table of contents

What it does

The Actor runs your search in the public CENDOJ case-law search at poderjudicial.es. It saves each Spanish court decision it finds as one Dataset row. A row has the ROJ and ECLI identifiers, the court, the decision date, the decision type (Sentencia, Auto and others), the CENDOJ summary and the official PDF link.

You can narrow the search by court, jurisdiction (area of law), autonomous community, decision type and date range. You can run up to 20 search phrases in one run. With Include full judgment text on, the Actor also reads the official PDF and returns the selectable text and the paragraphs that contain your search words.

The Actor reads only public decisions. It does not log in, and it does not add decisions that CENDOJ does not publish.

Good fit

  • Find recent Supreme Court or regional court decisions on one legal issue, such as unfair dismissal or mortgage costs.
  • Build a list of decisions with ROJ, ECLI and PDF links for a legal memo or a case-law database.
  • Get the full text and key paragraphs of known decisions from their CENDOJ links.
  • Track new decisions on a topic with a scheduled run sorted by newest first.

👉 Try it now: open the input form

How it works

  1. The Actor opens the public CENDOJ search form and sends your phrase and filters to it.
  2. It reads the result pages. CENDOJ shows at most 200 results for one search, so for more than 200 decisions the Actor splits your date range into smaller searches.
  3. It saves each decision once (no duplicates by ROJ, ECLI or link). With full text on, it downloads the official PDF and extracts its text.
  4. It writes a run summary with the number of CENDOJ matches, saved decisions and the reason the run stopped.

👉 Try it now: open the input form

Quick start

Input form: box 1 is the search phrase, box 2 is the optional filters, box 3 is Maximum decisions

  1. Search phrase (box 1) is already filled with despido improcedente. Change it to your topic, a ROJ or an ECLI.

  2. Optional: open Filters and pick courts, jurisdictions, decision types, regions, dates or the order (box 2). Leave them empty to search all of CENDOJ.

  3. Keep Maximum decisions at 10 for a first test (box 3).

  4. Start the run.

  5. Open the Output tab. Check the ROJ and ECLI columns (box 1), read the Summary column (box 2) and use Export to download the table (box 3).

    Output table: ROJ, ECLI, decision date, court, summary and PDF link for each decision

Expected result: 10 rows, newest decisions first, each with a ROJ, ECLI, date, court, summary and an official PDF link. In our test runs this usually took about 10 seconds, and up to a minute when CENDOJ was slow.

👉 Try it now: open the input form

Use cases

Buyer jobInput pathOutput entityKey fieldsNext integration
Research case law on one legal issuequery, courts, jurisdictionsCourt decisionroj, ecli, court, date, summaryExport to Excel or CSV
Collect Supreme Court doctrine for a periodcourts, dateFrom, dateTo, maxItemsCourt decisionroj, date, resolutionType, pdfUrlLegal research database via API
Read the reasoning of known decisionsdecisionUrls, keyPassages, passageTermsDecision with full textfullText, keyPassages, ecliYour own review or AI summary step
Feed a legal AI assistant with sourcesquery, includeFullText, keyPassagesDecision with full textfullText, keyPassages, urlMCP or API
Watch for new decisions on a topicquery, sortOrder: recentlyAddedCourt decisionroj, date, urlApify schedule and Slack or Notion summary

👉 Try it now: open the input form

Input

Input fields

FieldPlain nameTypeRequiredDefault / prefillAllowed valuesEffectExampleRecommendation
querySearch phrasestringnoprefill despido improcedentetext up to 500 charactersFull-text search in CENDOJ. A ROJ or ECLI searches that exact identifier.cláusula sueloUse Spanish legal terms.
searchTermsMore search phrasesarray of stringsnoemptyup to 20 phrasesEach phrase is a separate search with its own maxItems.["gastos hipotecarios"]Group related topics in one run.
courtsCourtsarraynoempty (all courts)CENDOJ court codes from the listLimits the search to these courts.["11|12|13|14|15|16"] (Tribunal Supremo, all chambers)Pick from the list in the form.
jurisdictionsJurisdictionsarraynoempty (all)CIVIL, PENAL, CONTENCIOSO, SOCIAL, MILITAR, ESPECIALLimits the area of law.["SOCIAL"]Use with a phrase for precise results.
resolutionTypesDecision typesarraynoempty (all)SENTENCIA, SENTENCIA CASACION, SENTENCIA OTRAS, AUTO, AUTO RECURSO, AUTO ADMISION, AUTO INADMISION, AUTO ACLARATORIO, AUTO OTROS, ACUERDOLimits the type of decision.["SENTENCIA"]Choose SENTENCIA for judgments only.
regionsRegionsarraynoempty (all of Spain)19 autonomous communities and cities, such as MADRID, CATALUÑA, PAÍS VASCOLimits to courts in these regions.["MADRID"]Use for regional courts (TSJ, Audiencia Provincial).
dateFromDecision date fromstringnoemptyYYYY-MM-DDDecisions on or after this date.2024-01-01Set a range for large topics.
dateToDecision date tostringnoempty (today)YYYY-MM-DD, not before dateFromDecisions on or before this date.2024-12-31
sortOrderOrderstringnonewestnewest, oldest, relevance, recentlyAddedOrder of decisions in each search.oldestrecentlyAdded is best for monitoring.
maxItemsMaximum decisionsintegernodefault 10, prefill 101–300; 1–20 with full textMaximum saved decisions for each search phrase.250Start with 10.
includeFullTextInclude full judgment textbooleannofalsetrue, falseDownloads the official PDF and returns its text.trueCosts more; use for decisions you will read.
keyPassagesKey passages per decisionintegerno00–10Returns this many paragraphs that contain your search words.2Needs full text or decision links.
passageTermsWords for key passagesarray of stringsnoemptyup to 20 words or phrasesPicks passages by these words instead of the search phrase.["indemnización"]Use when the search phrase is broad.
decisionUrlsDecision linksarray of stringsnoemptyup to 20 CENDOJ openDocument linksGets the full text of these exact decisions.["https://www.poderjudicial.es/search/AN/openDocument/0ee79af283d5d4baa0a8778d75e36f0d/20261119"]Clear the search phrase to fetch only these.
deliveryConnectorSend results toMCP connectornoemptyyour Slack, Notion or other connectorPosts a short summary after the run.Optional.
deliveryTargetNotion page or channelstringnoemptyNotion page link or Slack channel IDWhere the summary goes.Needed for Notion.

Empty input runs the example search despido improcedente with 10 decisions. Filters without a phrase search all decisions that match the filters. Repeated phrases and links are used once. Unknown fields are ignored and listed in the run summary.

Interacting settings

WhenInput AInput BEffective behaviorExampleCost/result effect
Several phrasesquerysearchTermsEach phrase is its own search; each gets up to maxItems decisions. A decision found by two phrases is saved once.2 phrases, maxItems 10Up to 20 rows
More than 200 resultsmaxItems above 200dateFrom / dateToThe Actor splits the date range into smaller searches until it has enough decisions.maxItems 250Tested: 250 rows from date slices in 26–55 s
Full textincludeFullTextmaxItemsmaxItems must be 20 or less.maxItems 5Each row with text is charged as a full-text decision
Key passageskeyPassagesincludeFullText or decisionUrlsPassages come from the full text, so one of those is needed.keyPassages 2No extra charge
Passage wordspassageTermsquerypassageTerms replace the search phrase for picking passages.["indemnización"]None
Decision links onlydecisionUrlsquery emptyOnly the linked decisions are fetched; no search runs.2 links2 full-text rows
Charge limitMax cost per runmaxItemsThe run stops at your cost limit and keeps the rows already saved.stopReason is CHARGE_LIMIT

Input examples

{
"query": "despido improcedente",
"maxItems": 10
}

Expected behavior: one CENDOJ search, newest decisions first. Expected output: 10 decisions with roj, ecli, court, date and summary. Limit or cost note: no PDF is downloaded; each row is one decision event.

Supreme Court decisions with full text

{
"query": "despido improcedente",
"courts": ["11|12|13|14|15|16"],
"includeFullText": true,
"keyPassages": 2,
"maxItems": 5
}

Expected behavior: searches the Tribunal Supremo, then reads each PDF. Expected output: 5 decisions with fullText, 2 keyPassages each and fullTextStatus: "available". Limit or cost note: up to 20 decisions per phrase in this mode; each row with text is one decision-full-text event.

{
"decisionUrls": [
"https://www.poderjudicial.es/search/AN/openDocument/0ee79af283d5d4baa0a8778d75e36f0d/20261119"
],
"keyPassages": 2,
"passageTerms": ["indemnización"]
}

Expected behavior: no search; the Actor reads the linked PDF. Expected output: one decision with roj, ecli, court, fullText and 2 passages about indemnización. Limit or cost note: up to 20 links. A link that gives no text is saved for free with fullTextStatus: "unavailable".

👉 Try it now: open the input form

Output

Output fields

FieldMeaningTypeCan be empty?Example / enumSource / notes
rojROJ, the Spanish case-law identifierstringrarelySTS 4557/2026CENDOJ result row
ecliEuropean Case Law IdentifierstringrarelyECLI:ES:TS:2026:4557CENDOJ result row
courtCourt, with chamber when knownstringrarelyTribunal Supremo. Sala de lo SocialFor regional courts the search row has no chamber, so it shows the court only, such as Tribunal Superior de Justicia. Full text adds the chamber.
jurisdictionArea of lawstringyesSOCIALFilled for Tribunal Supremo rows, when you filter by one jurisdiction, or from the full text. Otherwise null.
dateDecision datestringrarely2026-11-11YYYY-MM-DD
resolutionTypeDecision typestringrarelySentencia, AutoCENDOJ result row
summaryCENDOJ summary or matching excerptstringyesEfectos del desistimiento…Text from the result page
keyPassagesParagraphs with your search wordsarrayyes["2. En la demanda…"]Only with keyPassages above 0 and full text
fullTextSelectable text of the official PDFstringyesJURISPRUDENCIA Roj: STS 4557/2026…Only with full text or decision links
fullTextStatusFull-text resultstringnonot_requested, available, unavailableunavailable means the PDF could not be read
pdfUrlOfficial PDF linkstringnohttps://www.poderjudicial.es/search/AN/openDocument/…poderjudicial.es only
urlDecision linkstringnosame as pdfUrlUse this to open the decision
searchTermPhrase that found the rowstringyesdespido improcedentenull for decision links
sourceSource namestringnoCENDOJ
fetchedAtWhen the row was savedstringno2026-11-20T04:08:22.357ZISO time

Output entities and surfaces

SituationDataset/API/KVS/live viewResult shapeUser action
Normal itemDataset, table view DecisionsOne decision per rowOpen, export or use url
Domain-empty resultDataset empty; RUN_SUMMARY in the Key-value storestatus: "not_found", sourceMatches: 0Check the phrase spelling and filters
Partial resultDataset rows and RUN_SUMMARYstatus: "partial", stopReason such as FULL_TEXT_UNAVAILABLE or CHARGE_LIMIT; some rows have fullTextStatus: "unavailable"Read stopReason; retry the missing links with decisionUrls
Technical failure or retryRun status Failed and RUN_SUMMARYstatus: "error" and a stopReason code, such as PROXY_UNAVAILABLE or UNEXPECTED_SEARCH_RESPONSERun again later; open an issue with the run ID if it repeats

RUN_SUMMARY also shows sourceMatches (how many decisions CENDOJ found), savedCount, terms (matches and saved rows for each phrase) and dateSlices (how many date splits were used). The run fails only when an error happens before any row is saved.

Output example

{
"roj": "STS 4557/2026",
"ecli": "ECLI:ES:TS:2026:4557",
"court": "Tribunal Supremo. Sala de lo Social",
"jurisdiction": "SOCIAL",
"date": "2026-11-11",
"resolutionType": "Sentencia",
"summary": "Efectos del desistimiento ante el Juzgado de lo Social de la acción de reclamación de indemnización …",
"keyPassages": [
"2. En la demanda que ha dado origen a las presentes actuaciones, la parte actora reclama, como pretensión principal, …",
"2. Como ha quedado reseñado en la precedente fundamentación jurídica, …"
],
"fullText": "JURISPRUDENCIA Roj: STS 4557/2026 - ECLI:ES:TS:2026:4557 Órgano: Tribunal Supremo. Sala de lo Social Sede: Madrid …",
"fullTextStatus": "available",
"pdfUrl": "https://www.poderjudicial.es/search/AN/openDocument/0ee79af283d5d4baa0a8778d75e36f0d/20261119",
"url": "https://www.poderjudicial.es/search/AN/openDocument/0ee79af283d5d4baa0a8778d75e36f0d/20261119",
"searchTerm": "despido improcedente",
"source": "CENDOJ",
"fetchedAt": "2026-11-20T04:08:22.357Z"
}

This is one trimmed row from the "Supreme Court decisions with full text" example. Long text is cut with …. Without full text, keyPassages and fullText are null and fullTextStatus is not_requested. A null field means CENDOJ did not show that value for this decision.

Send results to Slack or Notion

Pick your connector in the optional deliveryConnector field. After the run saves its data, the Actor posts a short summary (up to 25 decisions with ROJ and date, and a link to the full dataset) there. Put a Notion page link or a Slack channel ID in deliveryTarget: in Notion every run is added on top of that one page, so your workspace does not fill up with new pages. Without a page link, Notion delivery is skipped and the run summary says so. A delivery error never fails the run and costs nothing extra. Connect a service once in Apify Console → MCP connectors.

Use case → fields

Buyer jobInput pathOutput entityKey fieldsNext integration
Legal memo with sourcesquery, courtsCourt decisionroj, ecli, urlExport to Excel
Read the reasoningincludeFullText, keyPassagesDecision with full textkeyPassages, fullTextYour review or AI step
Topic monitoringquery, sortOrderCourt decisionroj, date, summarySlack or Notion summary

👉 Try it now: open the input form

Pricing

Pricing unit

You pay per saved decision, plus a small start fee. Platform usage is included in these prices.

EventWhen it is chargedFree planBronzeSilverGold and above
Actor startOnce per run, one event per GB of memory (minimum one)$0.009$0.009$0.009$0.009
DecisionA saved decision with metadata and links$0.0009$0.00081$0.00072$0.00063
Decision with full textA saved decision with extracted PDF text$0.01$0.009$0.008$0.007

The start fee scales with run memory: the default 256 MB run is one start event. A search with no matches costs only the start fee. If a PDF cannot be read, the row is charged as a normal decision, not as full text. A decision link that gives no text is saved for free. Key passages cost nothing extra. A failed run is charged only for the start and for rows already saved.

Cost examples

Prices below use the Free plan.

ScenarioInput scopeExpected item/event countBase chargeOptional chargeStop/cap behavior
First search1 phrase, maxItems 1010 decisions$0.009 + 10 × $0.0009 = $0.018noneStops at 10
Large export1 phrase, maxItems 250250 decisions$0.009 + 250 × $0.0009 = $0.234noneTested: 26–55 s
Full text1 phrase, maxItems 5, full text on5 full-text decisions$0.0095 × $0.01 = $0.05Up to 20 per phrase
No matchesphrase with no results0$0.009nonestatus: "not_found"

Set Maximum cost per run in the run options to stop the run at your budget. The rows saved before the limit stay in the Dataset.

👉 Try it now: open the input form

Limits

  • The Actor reads only what the public CENDOJ search shows. It does not include unpublished or anonymised-away data, and it does not log in.
  • CENDOJ shows at most 200 results for one search. Above 200, the Actor splits the date range. A single day with more than 200 matching decisions can still give fewer rows than maxItems; the run summary then shows limitReached: "SOURCE_WINDOW".
  • maxItems is per phrase: up to 300 without full text and up to 20 with full text. This is the size we tested: 900 decisions (3 phrases × 300) in 3–4 minutes. For larger exports, run several date ranges. You pay only for decisions that were saved.
  • Each request waits up to 12 seconds (search pages up to 30 seconds). Search pages are capped at 2 MiB; a larger answer stops the run with RESPONSE_LIMIT.
  • When CENDOJ does not answer, the Actor retries the request up to 3 times in a row on new proxy sessions, the third time through a Spanish residential proxy. A run allows 10 retries in total. If CENDOJ still does not answer, the run stops with SOURCE_NETWORK_ERROR and keeps the decisions already saved.
  • A full-text PDF that fails with a network error is downloaded once more (fullTextRetries in the run summary). If it fails again, the row is saved with fullTextStatus: "unavailable" at the price of a decision without full text.
  • The run also stops at the run timeout (300 seconds by default) or at your maximum charge, and keeps what it saved. The run summary shows limitReached: "CHARGE_LIMIT" for the charge limit.
  • For regional and lower courts (TSJ, Audiencia Provincial and others), the search row has no chamber. court then shows only the court name and jurisdiction is null. Filter by one jurisdiction or turn on full text to fill them.
  • Full text works only for PDFs with selectable text. A scanned or very large PDF (over 120 pages or 512 KB) returns fullTextStatus: "unavailable".
  • Decision links must be official poderjudicial.es openDocument links. Other links are saved for free with fullTextStatus: "unavailable".
  • The summary is the text CENDOJ shows. It is not a legal analysis.
  • This Actor is not made by or linked to CENDOJ or the General Council of the Judiciary (CGPJ). Check the CENDOJ terms for how you may reuse decisions.

👉 Try it now: open the input form

API, export and integrations

  • API: start a run with the Apify API and the same JSON input as in the form. Rows are in the run's default Dataset; the summary is the RUN_SUMMARY record in its Key-value store.
  • Export: download the Dataset as JSON, CSV, Excel, XML or HTML from the Output tab or the API.
  • Scheduling: create an Apify schedule with sortOrder: "recentlyAdded" to get new decisions on a topic every day or week.
  • Webhooks / no-code: use an Apify webhook on run success to send the Dataset to Make, Zapier, n8n or your own endpoint. Use url and ecli as stable keys.
  • SDK / MCP / agent: call the Actor from the Apify JavaScript or Python client, or from an AI agent through the Apify MCP server.

Use with AI agents (MCP)

  • MCP server URL with only this Actor: https://mcp.apify.com?tools=cliqtomedia/cendoj-case-law.

  • Smallest useful input:

    { "query": "despido improcedente", "maxItems": 10 }
  • Key output fields: roj and ecli (decision identifiers), court and date (who decided and when), summary (short text), keyPassages (paragraphs with the search words, with full text on) and url (official decision link).

  • Measured runs: 10 decisions for $0.018 and 5 decisions with full text for $0.059 (Free plan). Most runs took 10–15 seconds, and up to a minute when CENDOJ was slow.

  • Limits: up to 20 phrases per run; maxItems up to 300, or 20 with full text; keyPassages needs full text or decisionUrls.

👉 Try it now: open the input form

Troubleshooting

No decisions found

Symptom: the Dataset is empty and RUN_SUMMARY shows status: "not_found". Likely reason: no CENDOJ decision matches the phrase and filters. Check: try the same phrase in Spanish with fewer filters, or a wider date range. Action: remove a filter or change the phrase. This run costs only the start fee.

Fewer rows than Maximum decisions

Symptom: the run saved fewer rows than maxItems. Likely reason: CENDOJ has fewer matches, more than 200 matches fall on one day, or the run reached your cost limit. Check: sourceMatches, terms[].sourceMatches, limitReached and stopReason in RUN_SUMMARY. Action: narrow the date range, raise Maximum cost per run or split the search into several phrases.

Full text is missing

Symptom: some rows have fullTextStatus: "unavailable" and stopReason is FULL_TEXT_UNAVAILABLE. Likely reason: the PDF is scanned, too large, or CENDOJ did not send it in time. After repeated PDF errors the Actor stops trying and saves metadata rows. Check: open the url of that row in your browser. Action: run again later with those links in decisionUrls. These rows were charged as normal decisions, not full text.

The run failed

Symptom: the run status is Failed and RUN_SUMMARY shows status: "error". Likely reason: CENDOJ was unavailable or changed its search page (for example PROXY_UNAVAILABLE, UNEXPECTED_SEARCH_RESPONSE or FILTER_UNAVAILABLE), or the input is not valid (INVALID_INPUT, with a message that names the field). Check: the stopReason and message fields in RUN_SUMMARY. Action: fix the named input field, or run again later. If it repeats, open an issue with the run ID.

👉 Try it now: open the input form

FAQ

Do I need a CENDOJ account or an API key?

No. CENDOJ case law is public. You need only an Apify account.

Can I search by ROJ or ECLI?

Yes. Put the ROJ (for example STS 4557/2026) or the ECLI (for example ECLI:ES:TS:2026:4557) in Search phrase. The Actor sends it to the exact identifier field of CENDOJ.

Why is jurisdiction empty for some rows?

CENDOJ result rows for regional and lower courts do not name the chamber. Filter by one jurisdiction, or turn on full text, and the field is filled.

How fresh are the results?

Each run reads the live CENDOJ search, so you get what CENDOJ shows at that moment. CENDOJ adds decisions some days or weeks after the decision date. Use sortOrder: "recentlyAdded" to see the newest additions.

Does a search with no results cost money?

Only the start fee ($0.009 at the default memory). No decision is charged.

Can I get more than 300 decisions?

One phrase saves up to 300 decisions per run, and one run can have up to 20 phrases. For more decisions on one topic, split the date range across several runs with dateFrom and dateTo.

👉 Try it now: open the input form

Support

For a bug, question or feature request, open the Actor's Issues tab on Apify. Include the run ID, your input (without private data) and the stopReason from RUN_SUMMARY. Never send tokens, cookies or billing data.

⭐ Found it useful? Rate this Actor. Something wrong? Report a problem — we fix reported problems.

👉 Try it now: open the input form