Apify Run Health Monitor
Pricing
from $2.55 / 1,000 actor checkeds
Apify Run Health Monitor
Check your own Apify actors for failed, timed out, slow, and empty runs, on your own Apify API token. One health row per actor with run counts, failure rate, durations, empty dataset checks, and usage, plus a free alert row for each problem run.
Pricing
from $2.55 / 1,000 actor checkeds
Rating
0.0
(0)
Developer
Mamba Labs
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 hours ago
Last modified
Categories
Features
Share
Give your own Apify API token and the actors to check, or the word all. The actor reads your run list and your newest datasets from the Apify API and returns one health row per actor: runs by status, failure rate, the latest run, median and slowest run time, slow runs, empty dataset runs, and platform usage, with a verdict of ok, warning, unhealthy, or no_runs and the reasons in plain sentences. Each failed, timed out, aborted, empty, slow, or stuck run also gets a free alert row with its Console link. You pay 0.003 USD per actor checked; alert rows are free.
Features
- Works with your own Apify API token. The token goes only to api.apify.com in an Authorization header and is never stored, logged, or written to a row.
- One health row per actor, so a schedule of this actor plus a filter on
verdictis a daily health report. - Empty output checks: the dataset item count of each actor's newest succeeded runs, against your
min_items. - Slow and stuck run checks against each actor's own median run time.
- Store actors you run are checked too: your own runs of them are in your run list.
- A free alert row per problem run, with the run ID, the task that started it, and the Console link.
How the data is read
Plain HTTPS calls to the Apify API on your token: GET /v2/users/me to check the token, GET /v2/actor-runs for every run started in the window (newest first, 1,000 per page), GET /v2/acts/{id} for each actor's name, and GET /v2/datasets/{id} for the item count of the newest succeeded runs. No proxy, no browser, no other developer's actor, and no Mamba Labs key. The run reads only what your token can read.
This actor was tested with fixtures of the documented API responses and with the refused token path. No buyer token was used to build it: the first buyer's token is the live test. If a field reads wrong for your account, the alert row's Console link shows the source run.
Input
| Field | Type | Default | What it does |
|---|---|---|---|
actors | array | 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. | |
api_token | string | 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. | |
lookback_hours | string | 24 | How far back to read runs, 1 to 2160 hours (default 24). Runs started in this window are counted. |
max_failure_pct | string | 10 | An actor whose failed plus timed out runs pass this share of its finished runs is marked unhealthy, 0 to 100 (default 10). |
min_items | string | 1 | A succeeded run whose dataset holds fewer items than this counts as empty (default 1). Set 0 to skip the dataset check. |
datasets_per_actor | string | 3 | How many of each actor's newest succeeded runs get their dataset item count read, 0 to 20 (default 3). |
slow_factor | string | 2 | 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. |
count_aborted_as_failed | string | 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. |
alert_rows | string | yes | yes or no (default yes). Writes a free row for each problem run, newest first, up to 20 per actor. |
include_idle_actors | string | 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. |
max_actors | string | 100 | Most actors to check in one run, 1 to 1000 (default 100). With all, the actors with the most runs come first. |
max_runs | string | 10000 | 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. |
max_charge_usd | string | 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. |
Output
| Field | Type | What it holds |
|---|---|---|
row_type | string | One of: actor_health, alert, run_summary. run_summary is the one free row written when the input is refused. |
actor_id | string | The checked actor's Apify ID. |
actor_name | string | username/name of the checked actor, or what you typed when it was not found. |
actor_title | string | The actor's display title. |
window_start | string | Start of the checked window, UTC. Runs started at or after this time are counted. |
window_end | string | End of the checked window, UTC: when this run read the run list. |
runs_total | integer | Runs of this actor started in the window, any status. |
runs_succeeded | integer | Runs in the window that succeeded. |
runs_failed | integer | Runs in the window that failed. |
runs_timed_out | integer | Runs in the window that hit their timeout. |
runs_aborted | integer | Runs in the window that were aborted. |
runs_active | integer | Runs in the window that were ready or running when this run read them. |
failure_rate_pct | number | Failed plus timed out runs as a share of finished runs in the window. Aborted runs count only when count_aborted_as_failed is yes. |
last_run_id | string | The newest run of this actor in the window. |
last_run_status | string | Status of the newest run: SUCCEEDED, FAILED, TIMED-OUT, ABORTED, READY, or RUNNING. |
last_run_started_at | string | When the newest run started, UTC. |
last_success_at | string | When the newest succeeded run in the window finished, UTC. |
median_duration_secs | number | Median run time of the succeeded runs in the window, in seconds. |
slowest_duration_secs | number | Longest run time of a finished run in the window, in seconds. |
slow_runs | integer | Succeeded runs that took more than slow_factor times the median and at least 30 s longer. Needs 3 or more succeeded runs. |
datasets_checked | integer | Succeeded runs whose dataset item count was read: the newest datasets_per_actor of them. |
empty_dataset_runs | integer | Checked succeeded runs that returned fewer than min_items items. |
last_success_item_count | integer | Items in the dataset of the newest succeeded run, when it was checked. |
usage_usd | number | Sum of Apify's usageTotalUsd over the runs in the window, as the run list reports it. |
verdict | string | ok, warning, unhealthy, or no_runs. See reasons for why. |
reasons | array | Plain sentences that explain the verdict, one per finding. |
alert_count | integer | Runs in the window with a problem: failed, timed out, aborted, empty dataset, slow, or still running past the slow limit. |
console_url | string | The actor's runs page in the Apify Console. |
alert_kind | string | On alert rows: failed, timed_out, aborted, empty_dataset, slow_run, or still_running. |
run_id | string | On alert rows: the run with the problem. |
run_status | string | On alert rows: the run's status. |
run_task_id | string | On alert rows: the saved task that started the run, if any. |
run_started_at | string | On alert rows: when the run started, UTC. |
run_finished_at | string | On alert rows: when the run finished, UTC. |
run_duration_secs | number | On alert rows: run time in seconds. |
run_item_count | integer | On alert rows: items in the run's dataset, when it was checked. |
run_usage_usd | number | On alert rows: Apify's usageTotalUsd for the run. |
run_console_url | string | On alert rows: the run's page in the Apify Console. |
row_status | string | ok, or why this row carries no data: no_results, no_change, partial, blocked, or error. |
error_reason | string | Why the row is not ok. A refused input reads input_invalid: followed by what to fix. |
billable_events_json | string | What this row was billed as, for example {"actor-checked":1}. {} means free. |
scraped_at | string | When the row was written, UTC. |
Pricing
Pay per event. Alert rows, the row for a missing or refused token, actors not found, and refused input are free.
| Event | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|
actor-checked, one actor checked, with its alert rows | $0.003 | $0.00285 | $0.0027 | $0.00255 |
apify-actor-start, once per run (one per GB of memory; the default 256 MB is one) | $0.002 | $0.002 | $0.002 | $0.002 |
Per 1,000 rows of actor-checked: $3.00 on the free plan, $2.55 on Gold.
Free plan cap: 1.50 USD of evaluation a month, about 500 rows. Any paid Apify plan removes the cap, and it resets on the 1st. The run stops before a charge that passes your maximum charge per run in Apify or your max_charge_usd input.
Mamba Labs pays the platform costs of your run, Apify proxy traffic included.
Usage examples
Daily health report. Set actors to all, lookback_hours to 24, and schedule the actor once a day. Filter the dataset on verdict = unhealthy, or on row_type = alert for the runs to look at.
One scraper's empty runs this week. Set actors to username/actor-name, lookback_hours to 168, and datasets_per_actor to 20.
Clay. Number and yes or no inputs are text fields, which is what Clay sends. A list input takes a JSON list, so put the column inside a one item list, for example ["apify/web-scraper"].
MCP. The Mamba Labs MCP server @mambalabsdev/mcp-apify-run-health-monitor exposes this actor to Claude and other MCP clients.
Error handling
| Case | What you get |
|---|---|
| Missing or unreadable input | One free row, row_type run_summary, error_reason starting input_invalid: with what to fix. The run ends successfully and charges nothing but the run start |
| No token | One free row, error_reason starting no_key:. Nothing is read |
| Token refused (HTTP 401) | One free row, error_reason starting key_refused:, and the run stops |
| Token without permission (HTTP 403) | One free row, error_reason starting permission_denied:, and the run stops. A scoped token needs read access to actors, runs, and datasets |
| An actor you named is not visible to the token | One free row, error_reason starting not_found: |
| No run started in the window | One free row, error_reason starting no_runs: |
| A dataset past its retention period | That run is left unchecked; datasets_checked counts only the datasets read |
| The charge limit is reached | The run stops before the next health row and writes one free row starting not_checked: that names the first actor not checked |
| The run is close to its timeout | The actor stops starting new work 90 seconds before the timeout and delivers what it has |
Limitations
- Runs are grouped by actor. Saved tasks are not checked on their own; an alert row names the task that started the run.
usage_usdis Apify'susageTotalUsdfrom the run list. It is platform usage, not the pay per event charges of Store actors you ran.- Item counts are read for the newest
datasets_per_actorsucceeded runs per actor only, 3 by default, to keep the run short. - Slow run checks need 3 or more succeeded runs in the window.
- With
all, an actor with no run in the window is listed only wheninclude_idle_actorsis yes. max_runscaps the run list read, 10,000 by default. A health row says so when the cap cut the window short.
Mamba Labs actor suite
Built by Mamba Labs.