{
  "openapi": "3.0.1",
  "info": {
    "title": "Peru Arbitration Rulings Scraper - Annulment & Enforcement",
    "description": "Scrape Peru's Poder Judicial rulings on arbitral award annulment and enforcement (laudos arbitrales, anulación de laudo): grounds, outcomes, full text and PDFs for 6,000+ rulings. Filter by year, chamber, ground. Export CSV, Excel, JSON. No login or API key.",
    "version": "0.1",
    "x-build-id": "Nd8YvUorbQPKbXGKs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~peru-laudos-arbitrales-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-peru-laudos-arbitrales-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/recordsdata~peru-laudos-arbitrales-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-peru-laudos-arbitrales-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/recordsdata~peru-laudos-arbitrales-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-peru-laudos-arbitrales-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What do you want to get?",
            "enum": [
              "rulings",
              "statistics"
            ],
            "type": "string",
            "description": "Rulings = one row per court ruling (default). Statistics = counts grouped by year, outcome, chamber and more, for example annulment success rate per year. Example: Rulings.",
            "default": "rulings"
          },
          "searchTexts": {
            "title": "Search words (optional)",
            "type": "array",
            "description": "Spanish words or phrases searched in the full text of rulings, one per line. Example: anulación de laudo, debido proceso. Each term is its own search, results are merged. Leave empty to list every ruling.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Ready-made topics (optional)",
            "type": "array",
            "description": "Pick topics such as due process, motivation, jurisdiction or public procurement. Each topic expands to several Spanish legal terms, with and without accents, and merges results.",
            "items": {
              "type": "string",
              "enum": [
                "due-process",
                "motivation",
                "jurisdiction",
                "public-contracting",
                "construction",
                "interim-measures",
                "foreign-awards",
                "enforcement",
                "costs",
                "arbitrators",
                "public-order",
                "banking-finance",
                "mining-energy",
                "pre-trial-evidence",
                "limitation-periods"
              ],
              "enumTitles": [
                "Due process and right of defense",
                "Lack of reasoning in the award",
                "Jurisdiction and arbitrability",
                "Public procurement arbitration",
                "Construction and works contracts",
                "Interim measures",
                "Foreign awards and exequatur",
                "Enforcement of awards and guarantees",
                "Arbitration costs and fees",
                "Arbitrators: recusation and impartiality",
                "Public policy and review of the merits",
                "Banking and finance",
                "Mining and energy",
                "Pre-trial evidence and conciliation",
                "Time limits and appeals"
              ]
            }
          },
          "includeAccentVariants": {
            "title": "Also search without accents",
            "type": "boolean",
            "description": "The portal is accent-sensitive and indexes many words only without accents (corrupcion finds thousands, corrupción finds nothing). Keep on to search both spellings.",
            "default": true
          },
          "years": {
            "title": "Years (optional)",
            "type": "array",
            "description": "Year of the ruling. Example: 2024 and 2025. Leave empty for all years. One search runs per year.",
            "items": {
              "type": "string",
              "enum": [
                "2026",
                "2025",
                "2024",
                "2023",
                "2022",
                "2021",
                "2020",
                "2019",
                "2018",
                "2017",
                "2016",
                "2015",
                "2014",
                "2013",
                "2012",
                "2011",
                "2010",
                "2009",
                "2008",
                "2007",
                "2006",
                "2005",
                "2004",
                "2003",
                "2002",
                "2001",
                "2000",
                "1999",
                "1998",
                "1982"
              ]
            }
          },
          "dateFrom": {
            "title": "Ruling date from (YYYY-MM-DD)",
            "type": "string",
            "description": "Earliest ruling date. Example: 2024-01-01."
          },
          "dateTo": {
            "title": "Ruling date to (YYYY-MM-DD)",
            "type": "string",
            "description": "Latest ruling date. Example: 2025-12-31."
          },
          "subjects": {
            "title": "Subject (materia, optional)",
            "type": "array",
            "description": "Keep rulings whose subject contains one of these texts, one per line. Example: ANULACION DE LAUDOS ARBITRALES, EJECUCION DE LAUDOS ARBITRALES, RECONOCIMIENTO DE LAUDO ARBITRAL EXTRANJERO-EXEQUATUR, EJECUCION DE GARANTIAS. Clear it to search all subjects.",
            "items": {
              "type": "string"
            }
          },
          "outcomes": {
            "title": "Outcome (optional)",
            "type": "array",
            "description": "Plain-language outcome derived from the official resolution type. Claim granted/dismissed refers to the annulment or enforcement claim; confirmed/reversed refers to appeal orders.",
            "items": {
              "type": "string",
              "enum": [
                "claim-granted",
                "claim-dismissed",
                "partially-granted",
                "claim-inadmissible",
                "confirmed-on-appeal",
                "reversed-on-appeal",
                "other"
              ],
              "enumTitles": [
                "Claim granted (fundada)",
                "Claim dismissed (infundada)",
                "Partially granted (fundada en parte)",
                "Claim inadmissible (improcedente)",
                "Confirmed on appeal",
                "Reversed on appeal",
                "Other"
              ]
            }
          },
          "annulmentGrounds": {
            "title": "Annulment ground, Art. 63.1 (optional)",
            "type": "array",
            "description": "Keep rulings whose official summary or keywords name one of these grounds of Article 63.1 of the Arbitration Law (DL 1071): a) invalid agreement, b) defense and due process, c) procedure, d) beyond the submission, e) non-arbitrable, f) time limit, g) other. Only explicit mentions count.",
            "items": {
              "type": "string",
              "enum": [
                "a",
                "b",
                "c",
                "d",
                "e",
                "f",
                "g"
              ],
              "enumTitles": [
                "a) Invalid arbitration agreement",
                "b) Right of defense / due process",
                "c) Procedure or arbitral rules breached",
                "d) Matters beyond the submission",
                "e) Non-arbitrable matter",
                "f) Time limit",
                "g) Other grounds"
              ]
            }
          },
          "caseNumbers": {
            "title": "Case numbers (optional)",
            "type": "array",
            "description": "Case number or its first digits, one per line. Example: 00164-2026 or 000293-2023. Prefix match.",
            "items": {
              "type": "string"
            }
          },
          "chambers": {
            "title": "Chambers (optional)",
            "type": "array",
            "description": "Chamber (sala) name contains, one per line. Example: 1° SALA COMERCIAL.",
            "items": {
              "type": "string"
            }
          },
          "resolutionTypes": {
            "title": "Official resolution types (optional)",
            "type": "array",
            "description": "Exact official type, one per line. Example: Sentencia infundada or Auto de vista que confirma (A ejecución).",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Official keywords (optional)",
            "type": "array",
            "description": "Keep rulings tagged with one of these official keywords, one per line. Example: Causal b). Case and accent insensitive.",
            "items": {
              "type": "string"
            }
          },
          "summaryContains": {
            "title": "Summary contains (optional)",
            "type": "string",
            "description": "Keep rulings whose official summary contains this text. Example: debido proceso."
          },
          "statisticsBy": {
            "title": "Group statistics by",
            "type": "array",
            "description": "Dimensions combined in each statistics row. Example: year and outcome. The Actor reads every matching ruling (about 3 per second), so a full run takes a while.",
            "items": {
              "type": "string",
              "enum": [
                "year",
                "subject",
                "chamber",
                "outcome",
                "resolutionType",
                "ground"
              ],
              "enumTitles": [
                "Year",
                "Subject",
                "Chamber",
                "Outcome",
                "Official resolution type",
                "Annulment ground"
              ]
            },
            "default": [
              "year",
              "outcome"
            ]
          },
          "maxItems": {
            "title": "Max items (rulings or statistic rows)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum rulings or statistic rows to return. Free plan: 10 items (preview). Paid: up to 1,000,000. Example: 10 for a test, 500 for a full pull.",
            "default": 10
          },
          "sortBy": {
            "title": "Sort rulings by",
            "enum": [
              "date",
              "caseNumber",
              "year",
              "subject",
              "resolutionType",
              "chamber"
            ],
            "type": "string",
            "description": "Column used to order portal results. Example: Ruling date.",
            "default": "date"
          },
          "sortDirection": {
            "title": "Sort direction",
            "enum": [
              "DESC",
              "ASC"
            ],
            "type": "string",
            "description": "Newest first is the default. Choose ascending for oldest first.",
            "default": "DESC"
          },
          "includePdfText": {
            "title": "Add full text of each ruling",
            "type": "boolean",
            "description": "Downloads the signed PDF of every ruling and adds its full text, page count and caption lines. Slower, and billed as an extra event per ruling with a text layer.",
            "default": false
          },
          "maxTextChars": {
            "title": "Max characters of full text (per ruling)",
            "minimum": 1000,
            "maximum": 2000000,
            "type": "integer",
            "description": "Longer texts are cut with an ellipsis; the row reports the real length in textChars. Only used with full text on. Example: 300000.",
            "default": 300000
          },
          "savePdfFiles": {
            "title": "Save the original PDFs",
            "type": "boolean",
            "description": "Stores each PDF in the run key-value store and adds a download link. Billed as an extra event per saved file.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new rulings (monitor mode)",
            "type": "boolean",
            "description": "Only new results: skip every ruling this same search already returned in an earlier run, so scheduled runs return just the new rulings, and you are not charged for skipped ones. Max Items then means N new rulings. Applies to ruling rows only; statistics mode always recomputes.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Label that keeps several independent monitors for the same search, for example \"annulments-weekly\". Leave empty for the default monitor.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget rulings already seen",
            "type": "boolean",
            "description": "Clears the stored list of seen rulings for this search and monitor name before the run, so every ruling counts as new again. Use once, then turn it off.",
            "default": false
          },
          "concurrency": {
            "title": "Parallel sessions (1 to 6)",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Portal sessions reading result pages at the same time. Each reads about one page of 10 rulings every 4 seconds. Example: 3 (default).",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Required. The portal blocks datacenter IPs and works with Peruvian residential IPs, so the default is Apify Residential proxy in Peru. Leave as is.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "PE"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}