Peru Jurisprudencia Nacional Scraper - Court Rulings, Text/PDFs
Pricing
from $7.73 / 1,000 resolution records
Peru Jurisprudencia Nacional Scraper - Court Rulings, Text/PDFs
Scrape Peru's Poder Judicial jurisprudencia portal: 686,572 Supreme and Superior Court rulings (casaciones, sentencias, autos) by topic, court, district, year or date, with summary, keywords, full text and PDFs. Export CSV, Excel, JSON, XML. No login or API key.
Pricing
from $7.73 / 1,000 resolution records
Rating
0.0
(0)
Developer
RecordsData
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Share
⚖️ Peru Jurisprudencia Nacional Scraper - Court Rulings, Text/PDFs
Peru Jurisprudencia Nacional Scraper extracts court rulings (jurisprudencia) from the official Poder Judicial portal of Peru: Corte Suprema and Cortes Superiores, with case number, appeal type, summary (sumilla), claims, keywords, PDF link and optional full text. Export CSV, Excel, JSON or XML. No login, no API key. Priced from $0.01 per ruling. Monitor mode returns only rulings new since your last run.
Peruvian case law is public, but the Poder Judicial portal shows 10 rulings per page, with no export. This Actor replays the portal's own search and returns structured rows. On 2026-10-06 the portal reported 686,572 resolutions site-wide.
📋 What does Peru Jurisprudencia Nacional Scraper do?
- Searches the full content of resolutions with Spanish words and phrases, in the Corte Suprema, the Cortes Superiores or both.
- Ready-made topics (24, such as mining, corruption, labor, tax, arbitration and human rights), each expanded into several legal terms with and without accents.
- Filters by district, specialty, chamber, appeal type, resolution type, year, case number, keyword and claim text.
- Date range (
dateFrom,dateTo), even though the portal has no date filter. - Full text and PDFs (optional): extracts the text layer and page count of each signed PDF and can store the original file.
- Search facets and court directory: result counts per year, court level, specialty, appeal type or district, and every court with its portal ID.
- Monitor mode (
onlyNew): only rulings new since your last run.
📊 What data can you extract from the Poder Judicial jurisprudence portal?
One row per resolution. Values the portal does not provide are N/A (not applicable to that court) or Not Disclosed (blank at the source).
| Field | Description |
|---|---|
recordType | resolution, facet or court-directory |
resolutionId | Portal UUID of the resolution (also the PDF key) |
court | Corte Suprema or Corte Superior |
caseNumber | Case or appeal number (for example 000881-2022 or 21288-2018-0-1801-JR-LA-09) |
appealType | Casación, Apelación, Recurso de Nulidad, Queja, Amparo... |
resolutionType | Auto, Ejecutoria Suprema, Sentencia de Vista |
resolutionDate, resolutionYear | ISO date and year |
specialty | Legal specialty (Superior Courts and filtered Supreme searches) |
chamber | Sala Suprema or Órgano Jurisdiccional |
claims | Claims or offenses as published (array) |
domesticLaw | Domestic norms cited, Supreme Court only (array) |
summary | Official summary (sumilla) |
keywords | Official keywords (array) |
caseSequence, caseYear, incidentCode, courtCode, instanceCode, specialtyCode, unitNumber | Parts of the case number (Superior Courts) |
pdfUrl | Official PDF link |
matchedQuery | Which search produced the row |
fullText, textChars, pdfPages, pdfSizeKb, captionFields, parties | Added when "Add full text of each ruling" is on |
pdfFileUrl | Download link of the stored PDF, when "Save the original PDFs" is on |
scrapedAt, error | Scrape timestamp (UTC). error appears only on failed rows, with the message |
🧾 Sample output of a Corte Suprema ruling
Real row from a cloud run on 2026-10-06 (search "minería ilegal", Corte Suprema, full text and PDFs on). Long texts are shortened.
{"recordType": "resolution","resolutionId": "88014d57-134b-4b24-a52c-05c33ccb5e8c","court": "Corte Suprema","caseNumber": "000881-2022","appealType": "Casación","resolutionType": "Ejecutoria Suprema","resolutionDate": "2026-05-13","resolutionYear": 2026,"chamber": "Sala Penal Permanente","claims": ["Delito de minería ilegal. Art. 307.a"],"summary": "La presencia, en el cauce de un río, de herramientas como las halladas -motores, bombas de succión, tracas, caballetes, tolvas ... (shortened)","keywords": ["nulo el juicio oral", "delito de mineria"],"pdfUrl": "https://jurisprudencia.pj.gob.pe/jurisprudenciaweb/ServletDescarga?uuid=88014d57-134b-4b24-a52c-05c33ccb5e8c","fullText": "1\nCORTE SUPREMA\nDE JUSTICIA\nDE LA REPÚBLICA\nSALA PENAL PERMANENTE\nCASACIÓN N.° 881-2022 ... (shortened)","textChars": 20796,"pdfPages": 11,"pdfFileUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/pdf-88014d57-134b-4b24-a52c-05c33ccb5e8c","scrapedAt": "2026-10-06T22:55:20.987Z"}
💰 How much does it cost to scrape Peruvian court rulings?
Pay per event. Prices at the Free plan tier, read from the live Actor on 2026-10-07 (paid Apify plans get lower per-ruling prices: $0.008665 Bronze, $0.008 Silver, $0.007735 Gold and above).
| Event | Price | When it is charged |
|---|---|---|
| Resolution record | $0.010 | One ruling saved to the dataset |
| Resolution full text | $0.010 | Only for rulings whose PDF has a text layer, when full text is on |
| Resolution PDF file | $0.010 | Each original PDF stored in the key-value store, when save PDFs is on |
| Search facet record | $0.015 | One count row in Search facets mode |
| Court directory record | $0.010 | One court, specialty and chamber row |
A search-only run costs about $10 per 1,000 rulings (1,000 x $0.010). Worked example at Free-tier prices: 1,000 rulings with full text and stored PDFs cost 1,000 x ($0.010 + $0.010 + $0.010) = $30.00, less the full text charge for any scanned PDF without a text layer. You are not charged for failed, empty or error rows: a search with no matches ends successfully and charges nothing (verified in a cloud run on 2026-10-06), and the Actor stops cleanly at your maximum charge limit. Free users get a 10-item preview.
🚀 How to scrape the Poder Judicial jurisprudencia portal (3 steps)
- Create a free Apify account at console.apify.com.
- Open the Input tab, type search terms or pick a topic, and choose the courts, years or districts. Optional: switch on Add full text of each ruling and Save the original PDFs.
- Click Run. Download the dataset as CSV, Excel, JSON or XML, or call it from the API.
⚙️ Input of the Peru jurisprudencia scraper
| Field | Meaning |
|---|---|
searchTexts | Words searched in the full content. Every word of one term must appear. |
topics | Ready-made topic searches (24 topics). |
courts | supreme (default) and/or superior. |
years, districts, specialties, chambers, appealTypes, resolutionTypes | Filters. |
dateFrom, dateTo | Resolution date window (YYYY-MM-DD). |
maxItems | Rulings to return. Default 10. |
includePdfText, savePdfFiles | Add full text, store the original PDFs. |
onlyNew, stateKey, resetSeen | Monitor mode: only rulings not returned by an earlier run of the same search (default off). |
mode | resolutions (default), searchFacets or courtDirectory. |
Example:
{ "topics": ["mining"], "courts": ["supreme"], "years": ["2024", "2025"], "maxItems": 100 }
The default proxy is Apify Residential in Peru, because the portal answers HTTP 403 to datacenter IPs.
🔔 Only new results (monitor mode)
Turn on onlyNew and the Actor skips every ruling this same search already returned in an earlier run, so a scheduled run delivers just what is new. Skipped rulings are not charged. Use stateKey for separate monitors and resetSeen to start over.
- The seen
resolutionIdlist lives in a named key-value store,peru-jurisprudencia-seen, in your own Apify account. - A search is identified by its courts, terms, topics, filters, dates and
stateKey. ChangingmaxItemskeeps the same monitor; changing a term, court, year or date starts a new one. maxItemsmeans "up to N new rulings". A ruling is marked as seen only after it was saved and charged.onlyNewis ignored in facet and directory modes. The list keeps the 200,000 most recent ids per monitor.
Example: { "topics": ["mining"], "courts": ["supreme"], "onlyNew": true, "maxItems": 100, "stateKey": "mining-weekly" } on a weekly schedule, with a webhook on "Run succeeded" to send new rows to Slack, email or Google Sheets. Runs with zero new rulings cost nothing.
📈 Peru jurisprudencia scraper vs alternatives
Checked on 2026-10-06 and 2026-10-07.
| This Actor | Portal by hand | Other Store actors | |
|---|---|---|---|
| Peruvian jurisprudencia (Suprema and Superiores) | yes | 10 rulings per page | none found for this portal |
| Export | CSV, Excel, JSON, XML, API | none | n/a |
| Full text from PDF | yes | one PDF at a time | n/a |
| Date range, topic presets, facets | yes | no date filter | n/a |
| Price per record | $0.010 | free but manual | legaltech/cendoj (Spain) $0.001, scrapers_lat/datajud-scraper (Brazil) $0.008, parseforge/india-supreme-court-scraper $0.021, parseforge/justia-case-law-scraper (US) $0.032 |
The Spanish case-law actor costs less per record, the Indian and US ones cost more, and none of them covers this portal. Our $0.01 sits in the middle of that range. The closest Peruvian legal actor, scrapers_lat/remaju-peru-scraper, covers judicial auctions, a different dataset.
💼 Use cases for Peruvian court ruling data
- Legal research: compare Supreme Court criteria by chamber and year.
- Compliance: monitor corruption and environmental rulings that mention a company.
- Legal AI: build retrieval corpora with full text and keywords.
- Court analytics: chart rulings per year with search facets.
🔌 Run via API, schedule and integrations
Send the dataset to Make, Zapier, n8n, Slack, Airbyte or Google Sheets.
curl -X POST "https://api.apify.com/v2/acts/recordsdata~peru-jurisprudencia-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \-H "Content-Type: application/json" \-d '{"searchTexts":["minería ilegal"],"courts":["supreme"],"maxItems":50}'
🤖 Peru jurisprudencia scraper MCP server for AI agents (Claude, Cursor, VS Code)
Connect this actor to any MCP client through the Apify MCP server. This URL exposes only this actor as a tool:
https://mcp.apify.com?tools=RecordsData/peru-jurisprudencia-scraper
Config for clients that take a JSON MCP config:
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=RecordsData/peru-jurisprudencia-scraper"}}}
Example agent prompt: "Use the Peru jurisprudencia scraper to get the 50 most recent Corte Suprema rulings about consulta previa, with summaries and PDF links."
Choose this tool when an agent needs Peruvian court rulings as structured rows, or ruling counts per year via search facets. It takes the same input as the actor (searchTexts, topics, courts, years, maxItems, mode); keep maxItems small for agent runs.
⚖️ Is it legal to scrape Peruvian court rulings?
The Actor reads the public "Jurisprudencia Nacional Sistematizada" portal of the Poder Judicial del Peru, with no login and no bypass of access controls. Superior Court PDFs often name the parties. Peru's personal data protection law is Ley 29733, and you are responsible for complying with it when you store, publish or process names from the data. Consult a lawyer for your specific use.
❓ Frequently asked questions
How many rulings can I get from the Peru jurisprudencia portal?
The Peru Jurisprudencia Nacional Scraper reads the Poder Judicial portal, which reported 686,572 resolutions site-wide on 2026-10-06. A default Supreme Court search covered 210,895 rulings on 2026-10-04, and "include autos calificatorios" raised that to 590,037. The Superior Courts added 94,632. Set maxItems to cap a run.
Why does "minería" return different results than "mineria"?
The Poder Judicial portal is accent-sensitive, and its index holds many words only without accents. The Peru Jurisprudencia Nacional Scraper therefore searches both spellings by default (includeAccentVariants) and merges the results, de-duplicated by resolution id, so you get one combined list of rulings instead of two partial ones.
How are multiple search terms combined in the Peru jurisprudencia scraper?
Words inside one term must all appear in the ruling. Separate terms in searchTexts run as separate searches on the Poder Judicial portal, and the Peru Jurisprudencia Nacional Scraper merges them and removes duplicates by resolution id. Topics work the same way, since each topic expands into several legal terms.
How do I filter Peruvian court rulings by date?
Set dateFrom and dateTo in the Peru Jurisprudencia Nacional Scraper. The Poder Judicial portal has no date filter of its own, so with the default newest-first sort the Actor locates the date window with a page search and reads only those pages, instead of crawling every ruling.
Can I filter Peruvian rulings by claim or offense?
Yes. Use the "Claim or offense contains" input of the Peru Jurisprudencia Nacional Scraper. It is applied after the rows are read from the Poder Judicial portal, so combine it with a search term or a topic to keep the run focused on the rulings you need.
Does the Peru jurisprudencia scraper return the full text of rulings?
Yes, switch on "Add full text of each ruling" in the Peru Jurisprudencia Nacional Scraper. It extracts the text layer of each signed PDF. Scanned PDFs without a text layer are reported as N/A (scanned PDF without a text layer), and the full text event is not charged for them.
Are party names included in the Peru jurisprudencia data?
Only when they appear as labeled caption lines in the PDF, such as DEMANDANTE or DEMANDADO, and then under parties when full text is on. In our 10-ruling Corte Superior sample, 1 of 10 had them. The Peru Jurisprudencia Nacional Scraper does not invent names that the PDF does not label.
Why did the Peru jurisprudencia scraper return 0 results?
The Poder Judicial portal has no match for your words. Try the accent-free spelling, fewer words, or a broader court or year. Zero matches end as succeeded with no charge. If the portal itself failed or blocked the run and no ruling could be read, the Peru Jurisprudencia Nacional Scraper ends as failed instead, also with no charge.
Why does the Peru jurisprudencia scraper use Peruvian residential proxies?
The Poder Judicial jurisprudencia portal answers HTTP 403 to datacenter IPs and works with Peruvian residential IPs, so the Peru Jurisprudencia Nacional Scraper defaults to Apify Residential in Peru.
How fast is the Peru jurisprudencia scraper?
A 10-ruling run with full text and PDFs took about 45 seconds in the cloud on 2026-10-06, and a 300-ruling Supreme Court run took 97 seconds. A Search facets run for one term across all years took about 4 minutes, because the Peru Jurisprudencia Nacional Scraper reads one portal search per year.
How do I get only new rulings since my last run?
Set onlyNew to true in the Peru Jurisprudencia Nacional Scraper and schedule the Actor. Each run returns only rulings that the same search has not returned before, and skipped rulings are free. Use stateKey to keep separate monitors and resetSeen to start over from zero.
Do I need an account or API key for the Poder Judicial portal?
No. The Poder Judicial jurisprudencia portal is public, so the Peru Jurisprudencia Nacional Scraper needs no portal login and no API key. You only need an Apify account to run the Actor, and free users get a 10-item preview per run.
🔗 Want more legal and public-records data? Other RecordsData scrapers
- Peru Laudos Arbitrales Scraper for Peruvian arbitration awards and annulment rulings.
- DataJud Scraper for Brazilian court cases across 91 courts.
- SECOP Colombia Procurement Scraper for Colombian public contracts.
🆘 Support
Open an issue in the Issues tab or write to contact.punkrecordsdata@gmail.com. Independent tool, not affiliated with the Poder Judicial del Peru.
Last updated: 2026-10-11