Poll a background guard_text run (free read)
get_run_resultsPoll a guard_text run by run ID to get its status and one page of result rows; continue with nextOffset until finished, without rescanning or re-billing.
Instructions
WHAT: Read-only follow-up to guard_text(waitForFinish=false): returns the run status and one page of its result rows. It scans nothing itself. WHEN TO USE: only after guard_text returned run.run_id (large batches, many documentUrls or PDFs); poll until run.finished is true and page with nextOffset. Rows already written are returned while the run is RUNNING. WHEN NOT TO USE: to scan or redact (guard_text; a synchronous guard_text call already returns its rows, so there is nothing to poll). To restore placeholders in the rows' output_text after the LLM step, restore_placeholders (free). Cannot read runs of other Actors. BEHAVIOR: GET requests to your Apify account only (actor, run, dataset); never starts, aborts or re-bills a run. Typically <1 s; poll every 10-30 s. To stop a run early, abort it in the Apify console (run.console_url); this server has no abort tool. COST: free; needs the APIFY_TOKEN that started the run. The run was billed once, per document and finding, when it ran. RETURNS: run.status is READY | RUNNING | SUCCEEDED | FAILED | ABORTED | TIMED-OUT; finished=true for the last four, after which total no longer changes (FAILED/TIMED-OUT runs still return the rows they wrote). Rows are exactly the ones guard_text returns, including placeholder_map with ORIGINAL values if requested. Errors: APIFY_TOKEN_MISSING, RUN_NOT_FOUND, RUN_NOT_FOR_THIS_ACTOR, APIFY_TOKEN_INVALID, APIFY_RUN_LOOKUP_FAILED / APIFY_DATASET_READ_FAILED (retryable). PARAMETERS: runId comes from guard_text run.run_id. Pages are in write order; total counts rows written so far, so keep calling with nextOffset until it is null and finished is true. EXAMPLE: {"runId":"a1B2c3D4e5F6g7H8i"} -> {"run":{"status":"SUCCEEDED","finished":true},"count":1,"total":1,"items":[{"type":"document","risk_level":"high",...}]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Optional page size, integer 1-1000, default 100. Example: 250 | |
| runId | Yes | Required. Apify run ID (letters and digits) from guard_text run.run_id. Example: "a1B2c3D4e5F6g7H8i" | |
| offset | No | Optional integer >= 0, default 0; use nextOffset from the previous page. Example: 100 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | run_id, status, finished, dataset_id, started_at, finished_at, console_url | |
| count | Yes | Rows in this page | |
| items | Yes | Dataset rows: type=document or type=error | |
| total | Yes | Rows written by the run so far | |
| nextOffset | Yes | Offset of the next page, or null |