Poland Court Judgments API – SAOS Case Law
polish-court-judgments-saosSearch Polish court judgments in the SAOS database by court type, date range, phrase, keywords, and judgment type; retrieve case numbers, judges, and optional full anonymised text.
Instructions
Searches Polish court judgments in the official SAOS database (System Analizy Orzeczeń Sądowych) by court type, date range, SAOS query phrase, subject keywords and judgment type; each item has case numbers, judges and keywords, and includeFullText adds the published anonymised text (charged at a higher rate). Coverage is uneven: common courts are current, Supreme Court data ends in 2016-06, the Constitutional Tribunal in 2015-12 and KIO in 2018-09, and administrative courts return nothing. Use it for bulk lists or onlyNew feeds; to read one judgment interactively use polish-law-mcp-server. Read-only: it only queries the public source and never writes to the registry; onlyNew merely keeps a stateKey memory in your own Apify account. Each call needs the APIFY_TOKEN env var and starts one paid run of the Apify Actor enterprising_hamster/polish-court-judgments-saos on your Apify account, billed pay-per-event per delivered item plus any Apify platform usage; the server waits up to 300 s for the run and returns JSON {items, truncated} with at most maxItems (max 100) items and 256 KiB.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "polish-court-judgments-saos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateTo | No | Inclusive end date, YYYY-MM-DD. Empty means no upper bound. | |
| phrase | No | Searches metadata and text using SAOS query language. Use double quotes for an exact phrase, for example "kredyt frankowy". | |
| onlyNew | No | Skip IDs retained in a named key-value store. Retains the most recent 50,000 delivered IDs. Does not detect edits. Avoid concurrent runs sharing stateKey. | |
| dateFrom | No | Inclusive start date, YYYY-MM-DD. Empty means no lower bound. | |
| keywords | No | Exact SAOS subject keywords. All supplied keywords must match (AND). Source keywords are available for common courts. | |
| maxItems | No | Hard cap on actual dataset rows. Skipped records do not count. Text filtering may require more search pages to fill this cap. | |
| stateKey | No | Persistent ID set key. Use 1–100 letters, digits, underscores, or hyphens. Use different keys for independent feeds. | |
| courtType | No | ANY searches all available courts. Coverage checked 2026-10-18: COMMON about 474k judgments through 2026; SUPREME latest June 2016; Constitutional Tribunal December 2015; National Appeal Chamber September 2018; ADMINISTRATIVE no results. SAOS is incomplete and freshness varies. | ANY |
| sortOrder | No | Sort by judgment date. The source may contain invalid or future dates. | newest |
| textFormat | No | Plain text preserves paragraphs and published anonymisation markers. HTML preserves source markup. | plain |
| maxTextChars | No | Full text character cap after formatting. Zero means unlimited. Capped HTML may end inside a tag. textLength reports the original formatted length. | |
| onlyWithText | No | Skip empty search snippets before fetching details, saving rows, or charging. Defaults to true with includeFullText and false for metadata. Set false explicitly to include empty snippets. A nonempty snippet does not guarantee usable full text. | |
| judgmentTypes | No | Include any selected judgment type (OR). Empty includes all types. | |
| commonCourtType | No | Optional. Requires courtType COMMON. Sent as ccCourtType. | |
| includeFullText | No | Fetch individual judgment details. Successful text costs $0.01 per delivered judgment; metadata and text failures cost $0.003. Search snippets alone are not full text. | |
| skipInvalidDates | No | Skip malformed dates, years outside 1900–2100, and dates after the UTC scrape date. Skipped records are not charged. | |
| maxRequestsPerSecond | No | Shared rate cap across search, details, and retries. Default 1 request/second; maximum 3. At most 2 requests in flight. |