Check the health of your Apify actors' runs
check_apify_run_healthCheck Apify actor run health to surface failed, slow, empty, or stuck runs, returning per-actor verdicts, failure rates, and alert rows.
Instructions
Give your own Apify API token and the actors to check, or all. Returns one health row per actor for the window: run counts by status, failure rate, the latest run, median and slowest duration, slow runs, empty dataset runs, platform usage, a verdict (ok, warning, unhealthy, no_runs) with reasons, and a free alert row for each failed, timed out, aborted, empty, slow, or stuck run. With no token it writes one free row and reads nothing. Pay per event on Apify: 0.003 USD per actor checked.
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": "check_apify_run_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actors | No | Actor IDs, username/name, or Apify Console or Store URLs, one per line. Use the single word all to check every actor that started a run in the window. Store actors you run count too: their runs on your account are read. | |
| max_runs | No | Most runs to read from your run list, newest first, 100 to 50000 (default 10000). Each health row says when this limit cut the window short. | |
| api_token | No | Your own Apify API token, from Apify Console, Settings, API and Integrations. It is sent only to api.apify.com and is never stored, logged, or written to a row. A scoped token needs read access to actors, runs, and datasets. With no token, the run writes one free row and reads nothing. | |
| min_items | No | A succeeded run whose dataset holds fewer items than this counts as empty (default 1). Set 0 to skip the dataset check. | |
| alert_rows | No | yes or no (default yes). Writes a free row for each problem run, newest first, up to 20 per actor. | |
| max_actors | No | Most actors to check in one run, 1 to 1000 (default 100). With all, the actors with the most runs come first. | |
| slow_factor | No | A succeeded run that takes more than this many times the actor's median run time, and at least 30 s longer, counts as slow, 1.2 to 100 (default 2). Needs 3 or more succeeded runs in the window. | |
| lookback_hours | No | How far back to read runs, 1 to 2160 hours (default 24). Runs started in this window are counted. | |
| max_charge_usd | No | Optional. The run stops before a charge that would pass this amount. Rows already written stay, and one free row names the first actor not checked. | |
| max_failure_pct | No | An actor whose failed plus timed out runs pass this share of its finished runs is marked unhealthy, 0 to 100 (default 10). | |
| datasets_per_actor | No | How many of each actor's newest succeeded runs get their dataset item count read, 0 to 20 (default 3). | |
| include_idle_actors | No | yes or no (default no). With actors set to all, also checks every actor your account owns that started no run in the window; each gets the verdict no_runs and is charged like any other actor checked. | |
| count_aborted_as_failed | No | yes or no (default no). Aborted runs are often stopped by hand, so by default they lower the verdict to warning but do not count in the failure rate. |