{
  "openapi": "3.0.1",
  "info": {
    "title": "Brazil Court Scraper - Lawyer Caseloads & Case Tracking",
    "description": "Track Brazilian court cases three ways: by a lawyer's OAB registration, by process number, or by case-law keyword. Returns parties, counsel with OAB, procedural class, judging body, filing date and dated movements. Built for tracking active and ongoing cases, including matters with no ruling yet.",
    "version": "0.1",
    "x-build-id": "Qm5XN2AkwxfgEY2GM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jungle_synthesizer~brazil-jusbrasil-court-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jungle_synthesizer-brazil-jusbrasil-court-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/jungle_synthesizer~brazil-jusbrasil-court-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jungle_synthesizer-brazil-jusbrasil-court-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/jungle_synthesizer~brazil-jusbrasil-court-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jungle_synthesizer-brazil-jusbrasil-court-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",
        "required": [
          "maxItems"
        ],
        "properties": {
          "sp_intended_usage": {
            "title": "What is the intended usage of this data?",
            "minLength": 1,
            "type": "string",
            "description": "What will this data feed? E.g. lead lists, KYB checks, price tracking."
          },
          "sp_improvement_suggestions": {
            "title": "How can we improve this crawler for you?",
            "minLength": 1,
            "type": "string",
            "description": "Provide any feedback or suggestions for improvements."
          },
          "sp_contact": {
            "title": "Contact email (optional)",
            "minLength": 1,
            "type": "string",
            "description": "We'll personally help with your use case. No spam."
          },
          "resumeCursor": {
            "title": "Resume cursor (continue a previous run)",
            "type": "string",
            "description": "Leave empty for a fresh crawl. To CONTINUE a previous run where it stopped — without paying again for records you already received — paste the `resumeCursor` value from that run's Output (the run's OUTPUT key). Resume promptly: the previous run's data expires with your account's retention window (free tier: your ~10 most recent runs)."
          },
          "oab": {
            "title": "Lawyer OAB Registration",
            "type": "array",
            "description": "Bar registrations, e.g. 183919/SP. Returns every case tied to them.",
            "items": {
              "type": "string"
            }
          },
          "processNumber": {
            "title": "Process Number (CNJ)",
            "type": "array",
            "description": "CNJ process numbers. Masked or unmasked both work.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Case Law Keyword Search",
            "type": "array",
            "description": "Keywords to search published decisions. Each entry is its own search.",
            "default": [
              "responsabilidade civil"
            ],
            "items": {
              "type": "string"
            }
          },
          "courts": {
            "title": "Filter by Court",
            "type": "array",
            "description": "Narrow the keyword search to these courts. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "STF",
                "STJ",
                "TST",
                "TSE",
                "STM",
                "TRF1",
                "TRF2",
                "TRF3",
                "TRF4",
                "TRF5",
                "TRF6",
                "TJAC",
                "TJAL",
                "TJAM",
                "TJAP",
                "TJBA",
                "TJCE",
                "TJDFT",
                "TJES",
                "TJGO",
                "TJMA",
                "TJMG",
                "TJMS",
                "TJMT",
                "TJPA",
                "TJPB",
                "TJPE",
                "TJPI",
                "TJPR",
                "TJRJ",
                "TJRN",
                "TJRO",
                "TJRR",
                "TJRS",
                "TJSC",
                "TJSE",
                "TJSP",
                "TJTO",
                "TRT1",
                "TRT2",
                "TRT3",
                "TRT4",
                "TRT5",
                "TRT6",
                "TRT7",
                "TRT8",
                "TRT9",
                "TRT10",
                "TRT11",
                "TRT12",
                "TRT13",
                "TRT14",
                "TRT15",
                "TRT16",
                "TRT17",
                "TRT18",
                "TRT19",
                "TRT20",
                "TRT21",
                "TRT22",
                "TRT23",
                "TRT24",
                "TRE-AC",
                "TRE-AL",
                "TRE-AM",
                "TRE-AP",
                "TRE-BA",
                "TRE-CE",
                "TRE-ES",
                "TRE-GO",
                "TRE-MA",
                "TRE-MG",
                "TRE-MS",
                "TRE-MT",
                "TRE-PA",
                "TRE-PB",
                "TRE-PE",
                "TRE-PI",
                "TRE-PR",
                "TRE-RJ",
                "TRE-RN",
                "TRE-RO",
                "TRE-RR",
                "TRE-RS",
                "TRE-SC",
                "TRE-SE",
                "TRE-SP",
                "TRE-TO",
                "TJMMG",
                "TJMSP"
              ],
              "enumTitles": [
                "STF — Supremo Tribunal Federal",
                "STJ — Superior Tribunal de Justiça",
                "TST — Tribunal Superior do Trabalho",
                "TSE — Tribunal Superior Eleitoral",
                "STM — Superior Tribunal Militar",
                "TRF1 — Tribunal Regional Federal da 1ª Região",
                "TRF2 — Tribunal Regional Federal da 2ª Região",
                "TRF3 — Tribunal Regional Federal da 3ª Região",
                "TRF4 — Tribunal Regional Federal da 4ª Região",
                "TRF5 — Tribunal Regional Federal da 5ª Região",
                "TRF6 — Tribunal Regional Federal da 6ª Região",
                "TJAC — Tribunal de Justiça — Acre",
                "TJAL — Tribunal de Justiça — Alagoas",
                "TJAM — Tribunal de Justiça — Amazonas",
                "TJAP — Tribunal de Justiça — Amapá",
                "TJBA — Tribunal de Justiça — Bahia",
                "TJCE — Tribunal de Justiça — Ceará",
                "TJDFT — Tribunal de Justiça — Distrito Federal",
                "TJES — Tribunal de Justiça — Espírito Santo",
                "TJGO — Tribunal de Justiça — Goiás",
                "TJMA — Tribunal de Justiça — Maranhão",
                "TJMG — Tribunal de Justiça — Minas Gerais",
                "TJMS — Tribunal de Justiça — Mato Grosso do Sul",
                "TJMT — Tribunal de Justiça — Mato Grosso",
                "TJPA — Tribunal de Justiça — Pará",
                "TJPB — Tribunal de Justiça — Paraíba",
                "TJPE — Tribunal de Justiça — Pernambuco",
                "TJPI — Tribunal de Justiça — Piauí",
                "TJPR — Tribunal de Justiça — Paraná",
                "TJRJ — Tribunal de Justiça — Rio de Janeiro",
                "TJRN — Tribunal de Justiça — Rio Grande do Norte",
                "TJRO — Tribunal de Justiça — Rondônia",
                "TJRR — Tribunal de Justiça — Roraima",
                "TJRS — Tribunal de Justiça — Rio Grande do Sul",
                "TJSC — Tribunal de Justiça — Santa Catarina",
                "TJSE — Tribunal de Justiça — Sergipe",
                "TJSP — Tribunal de Justiça — São Paulo",
                "TJTO — Tribunal de Justiça — Tocantins",
                "TRT1 — Tribunal Regional do Trabalho da 1ª Região",
                "TRT2 — Tribunal Regional do Trabalho da 2ª Região",
                "TRT3 — Tribunal Regional do Trabalho da 3ª Região",
                "TRT4 — Tribunal Regional do Trabalho da 4ª Região",
                "TRT5 — Tribunal Regional do Trabalho da 5ª Região",
                "TRT6 — Tribunal Regional do Trabalho da 6ª Região",
                "TRT7 — Tribunal Regional do Trabalho da 7ª Região",
                "TRT8 — Tribunal Regional do Trabalho da 8ª Região",
                "TRT9 — Tribunal Regional do Trabalho da 9ª Região",
                "TRT10 — Tribunal Regional do Trabalho da 10ª Região",
                "TRT11 — Tribunal Regional do Trabalho da 11ª Região",
                "TRT12 — Tribunal Regional do Trabalho da 12ª Região",
                "TRT13 — Tribunal Regional do Trabalho da 13ª Região",
                "TRT14 — Tribunal Regional do Trabalho da 14ª Região",
                "TRT15 — Tribunal Regional do Trabalho da 15ª Região",
                "TRT16 — Tribunal Regional do Trabalho da 16ª Região",
                "TRT17 — Tribunal Regional do Trabalho da 17ª Região",
                "TRT18 — Tribunal Regional do Trabalho da 18ª Região",
                "TRT19 — Tribunal Regional do Trabalho da 19ª Região",
                "TRT20 — Tribunal Regional do Trabalho da 20ª Região",
                "TRT21 — Tribunal Regional do Trabalho da 21ª Região",
                "TRT22 — Tribunal Regional do Trabalho da 22ª Região",
                "TRT23 — Tribunal Regional do Trabalho da 23ª Região",
                "TRT24 — Tribunal Regional do Trabalho da 24ª Região",
                "TRE-AC — Tribunal Regional Eleitoral — Acre",
                "TRE-AL — Tribunal Regional Eleitoral — Alagoas",
                "TRE-AM — Tribunal Regional Eleitoral — Amazonas",
                "TRE-AP — Tribunal Regional Eleitoral — Amapá",
                "TRE-BA — Tribunal Regional Eleitoral — Bahia",
                "TRE-CE — Tribunal Regional Eleitoral — Ceará",
                "TRE-ES — Tribunal Regional Eleitoral — Espírito Santo",
                "TRE-GO — Tribunal Regional Eleitoral — Goiás",
                "TRE-MA — Tribunal Regional Eleitoral — Maranhão",
                "TRE-MG — Tribunal Regional Eleitoral — Minas Gerais",
                "TRE-MS — Tribunal Regional Eleitoral — Mato Grosso do Sul",
                "TRE-MT — Tribunal Regional Eleitoral — Mato Grosso",
                "TRE-PA — Tribunal Regional Eleitoral — Pará",
                "TRE-PB — Tribunal Regional Eleitoral — Paraíba",
                "TRE-PE — Tribunal Regional Eleitoral — Pernambuco",
                "TRE-PI — Tribunal Regional Eleitoral — Piauí",
                "TRE-PR — Tribunal Regional Eleitoral — Paraná",
                "TRE-RJ — Tribunal Regional Eleitoral — Rio de Janeiro",
                "TRE-RN — Tribunal Regional Eleitoral — Rio Grande do Norte",
                "TRE-RO — Tribunal Regional Eleitoral — Rondônia",
                "TRE-RR — Tribunal Regional Eleitoral — Roraima",
                "TRE-RS — Tribunal Regional Eleitoral — Rio Grande do Sul",
                "TRE-SC — Tribunal Regional Eleitoral — Santa Catarina",
                "TRE-SE — Tribunal Regional Eleitoral — Sergipe",
                "TRE-SP — Tribunal Regional Eleitoral — São Paulo",
                "TRE-TO — Tribunal Regional Eleitoral — Tocantins",
                "TJMMG — Tribunal de Justiça Militar — Minas Gerais",
                "TJMSP — Tribunal de Justiça Militar — São Paulo"
              ]
            }
          },
          "maxItems": {
            "title": "Max Items",
            "type": "integer",
            "description": "Maximum number of cases to return. Repeats of one case count once.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}