Polish Legal Acts API – Dziennik Ustaw & ELI
polish-legal-acts-eliSearch and monitor Polish legal acts via the official Sejm ELI API by year, date range, title, keywords, act type, and in-force status; optionally include details and extracted text.
Instructions
Lists Polish legal acts from the official Sejm ELI API (Dziennik Ustaw or Monitor Polski), filtered by year or date range, title stem, ELI keywords, act type and in-force status; each item is act metadata, with includeDetails adding keywords, references, issuing bodies and inForce, and includeText adding extracted HTML/PDF text (no OCR, charged at a higher rate). Use it for bulk lists or monitoring of acts; to read one act or article 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-legal-acts-eli 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-legal-acts-eli"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Optional publication year; defaults to the current year when dateFrom is empty. Omit it to search across years within a date range. | |
| dateTo | No | Optional inclusive upper date bound in YYYY-MM-DD format. Must be on or after dateFrom. Omit unused date fields. | |
| onlyNew | No | Skip previously delivered ELI plus changeDate revisions stored in a named key-value store. Retains the latest 50,000 revisions. Use serial runs for each stateKey and an overlapping publication date range to revisit changed acts. | |
| actTypes | No | Exact Polish types, for example Ustawa, Rozporządzenie, or Obwieszczenie. One type is filtered by the API. Multiple types are matched locally with OR and can require more search pages. | |
| dateFrom | No | Inclusive lower date bound in YYYY-MM-DD format. Required when year is omitted. dateField selects the date being filtered. | |
| keywords | No | Official Polish ELI subject keywords, sent as a comma-separated keyword parameter. Empty means no keyword filter. | |
| maxItems | No | Hard cap on delivered dataset items. Seen revisions and filtered act types do not count toward this limit. | |
| stateKey | No | Independent revision set within the named polish-legal-acts-seen store. Use 1-100 letters, digits, underscores, or hyphens. Changing this key starts a new monitoring history. | |
| dateField | No | Promulgation uses pubDateFrom/pubDateTo, announcement uses dateFrom/dateTo, and effect uses dateEffectFrom/dateEffectTo in the ELI API. | promulgation |
| publisher | No | DU searches Dziennik Ustaw. MP searches Monitor Polski. | DU |
| sortOrder | No | Newest means descending API publication position; oldest means ascending. Across years this does not guarantee chronological date order. Use year for one year's positions. | newest |
| inForceOnly | No | Ask the ELI API to return only acts marked in force. Output inForce requires details when the search response omits it. | |
| includeText | No | Extract available HTML or PDF text. Successful text costs USD 0.008 per act. Missing or failed text costs the metadata rate of USD 0.002. No OCR is provided. | |
| maxTextChars | No | Zero means no user cutoff. An automatic ceiling of 8,000,000 characters and a JSON byte budget below the 9 MB dataset-item limit still apply. Positive values impose a smaller cutoff. textLength counts retained characters; textTruncated reports any truncation. | |
| titleContains | No | Optional title search. Polish inflection matters. Use the stem podatk for tax acts; podatek may return no matches. Omit this field for all titles. | |
| includeDetails | No | Fetch each act's details for keywords, references, issuing bodies, and inForce. Adds one request per act. Disable for search metadata only. | |
| maxRequestsPerSecond | No | Shared rate cap for search, details, text, and retries. Default 3 requests per second, maximum 10, with at most 2 requests in flight. Lower it during source outages. |