- Home
- Skills
- Testing & Debugging
- Actor Release Check: Apify Pay-Per-Event & Store Audit
More screenshots
Works with the AI Agents you already use
Actor Release Check: Apify Pay-Per-Event & Store Audit
by AGI Tools
Audit an Apify Actor before you publish or reprice it: charges past the spending limit, charges in error paths, events missing from the pricing, risky inputs and secrets, each with file and line.
$14.99
Actor Release Check: Apify Pay-Per-Event & Store Audit
Example session with this skill installed
Check my review scraper in leaky-actor/ before I switch it to pay per event. The pricing is in pricing.json and I exported two runs to runs.json. Tell me what I must fix before publishing.
- Read your context and instructions
- Compiled the actor release check
I ran the release check on leaky-actor/ with your pricing file and the two exported runs. It read the files only: nothing was run or sent anywhere.
2 blockers to fix before you publish: the charges never check your users' spending limit, and page-scraped is charged in the code but is not in your pricing, so that work is delivered free.
13 warnings are risks for you to decide on (a charge in an error handler, charges in a retry loop, a fixed store name, maxReviews without a maximum). Small runs lose money: RUN_B_example nets -$0.0166.
These are findings from reading the code, to confirm with a small paid test run; a clean report would not prove that billing is correct.
The full report (release-check/report.md; documentation links left out here):
Actor release check
Project: leaky-actor (the invented example shipped with the skill)
Result: 2 blocker(s), 13 warning(s), 9 note(s)
Read-only: the Actor was not run and nothing was sent anywhere. Each finding cites the file and line it comes from; nothing here is a guarantee that the Store or a reviewer will accept the Actor.
Events charged in code: page-scraped, review-scraped
Blockers (2)
- B2 Event 'page-scraped' is charged in code but not in the pricing. The platform ignores charges for unknown events: the work is delivered free.
Where:src/main.py:21,src/main.py:24
Fix: Add the event to the pricing or fix the name (names are case-sensitive). - B3 Charges ignore the user's spending limit. The code charges events but never checks whether the user's maximum total charge was reached (ChargeResult, chargeable counts, or push_data with a charged event). Work and results after the limit are delivered unpaid, or the run keeps working for nothing.
Where:src/main.py:21,src/main.py:24,src/main.py:29
Fix: Check the ChargeResult (eventChargeLimitReached / event_charge_limit_reached) or the remaining chargeable count before each unit of work, and stop when it is 0.
Warnings (13)
- A1 Memory value 300 is not a power of two from 128. The platform accepts 128, 256, 512, 1024 ... MB.
Where:.actor/actor.json
Fix: Use a power of two. - A2 String field 'productUrl' has no editor. String fields need an editor (textfield, textarea, ...); the build may fail.
Where:.actor/input_schema.json: productUrl
Fix: Add "editor": "textfield". - A2 Default of 'sort' is not one of its values. Default 'recent', allowed ['newest', 'helpful'].
Where:.actor/input_schema.json: sort
Fix: Fix the default. - A5 Base image 'apify/actor-python' is not pinned. A new upstream image can change or break the next build.
Where:Dockerfile:1
Fix: Use a version tag such as apify/actor-python:3.12. - A5 1 Python dependencies are not pinned. Builds made on different days get different versions.
Where:requirements.txt:1 apify
Fix: Pin with == (or use a lock file). - B2 Priced event 'page-opened' is never charged. The Store shows it to users but the code never charges it.
Fix: Remove it from the pricing or charge it where its work is done. - B5 Charge inside an error handler. Users are charged when the work failed.
Where:src/main.py:24
Fix: Charge only after the result is produced. - B6 Results may be charged twice. The synthetic event apify-default-dataset-item charges every item written to the default dataset, and the code also charges custom events (page-scraped, review-scraped).
Where:pricing: apify-default-dataset-item
Fix: Remove the synthetic event or stop charging a custom event per result. - B7 Charge inside a retry loop without an idempotency key. A retried attempt can charge the same unit twice.
Where:src/main.py:21
Fix: Pass an idempotency key that identifies the unit (e.g. the result ID). - B7 Charge inside a retry loop without an idempotency key. A retried attempt can charge the same unit twice.
Where:src/main.py:24
Fix: Pass an idempotency key that identifies the unit (e.g. the result ID). - C3 Field 'apiKey' looks like a secret but is not marked isSecret. Secret fields are encrypted and hidden in the Console and logs.
Where:.actor/input_schema.json: apiKey
Fix: Add "isSecret": true. - C4 Fixed named storage 'review-state'. Actors run with limited permissions by default and can open only named storages they created themselves. If another Actor in the same account (a development copy, a renamed or older Actor) created a storage with this name first, every run that opens it fails with 'Insufficient permissions'.
Where:src/main.py:13
Fix: Use a name unique to this Actor and keep development and production names apart; do not reuse a name another Actor already created. - D3 Integer 'maxReviews' has no maximum. A typo such as 100000 makes a run (and its charges) far larger than intended.
Where:.actor/input_schema.json: maxReviews
Fix: Add a "maximum" that fits your pricing.
Notes (9)
- A3 No dataset schema. Without views the Output tab shows raw JSON only.
Fix: Add storages.dataset with at least one view. - B4 One charge call for a whole batch. Apify's SDK guide prefers one charge per unit (with an idempotency key) so a crash or the spending limit never leaves a batch half paid.
Where:src/main.py:29
Fix: Charge per unit, or check chargeable counts before producing the batch. - C1 1 print/console calls. Apify's logger hides secrets that appear in log lines; print and console.log do not.
Where:src/main.py:31
Fix: Use Actor.log (Python) or log from 'apify' (JavaScript). - D1 Description is 17 characters. Very short descriptions say little; very long ones are cut in cards.
Where:.actor/actor.json
Fix: Aim for about 100-250 characters. - D2 README does not cover: input, output, pricing or cost, limits or FAQ. Visitors decide from the README; AI agents read it to choose tools.
Where:README.md
Fix: Add a short section for each. - D2 README is short (17 words). Short pages rank and convert worse.
Where:README.md
Fix: Add examples of input and output. - D2 README does not explain the events users pay for. Pay-per-event users want to know what each event costs and when it is charged.
Where:README.md
Fix: Add a table: event, price, when it is charged, an example run cost. - D3 Required field 'productUrl' has no prefill or default. A Store visitor who clicks Start without editing gets an input error.
Where:.actor/input_schema.json: productUrl
Fix: Add a "prefill" that gives a small, cheap first run. - D3 default of 'maxReviews' is 5000. The first run from the Store form would process a lot; a small first run converts better and costs the visitor less.
Where:.actor/input_schema.json: maxReviews
Fix: Use a small prefill (10-100).
Unit economics (2 runs, commission 20%)
| Run | Status | Events | Revenue | Your platform cost | Net |
|---|---|---|---|---|---|
| RUN_A_example | SUCCEEDED | apify-default-dataset-item 400, review-scraped 400 | $0.6000 | $0.0420 | $0.4380 |
| RUN_B_example | SUCCEEDED | apify-default-dataset-item 12, review-scraped 12 | $0.0180 | $0.0310 | -$0.0166 |
Total: revenue $0.6180, cost $0.0730, net $0.4214; runs at a loss: RUN_B_example
net = revenue x (1 - commission) - platform usage paid by you; owner runs are not revenue. Check the current commission in your Apify publishing terms.
Connects securely to your tools. The creator never sees your data.
About this skill
Pay-per-event Actors lose money and goodwill in a few places. This skill runs a real program over the Actor project folder and reports each problem with the file, the line and the fix:
- Spending limit: charges that keep going after the user's maximum charge (no ChargeResult check, no chargeable count).
- Charging on failure or twice: charges inside
except/catchblocks, or in retry loops without an idempotency key. - Pricing mismatches: events charged in code but missing from the pricing (the work becomes free), priced but never charged, or charged twice through the synthetic dataset-item event.
- Store form traps: work-size fields without a maximum, large defaults, required fields without a prefill.
- Limited permissions: storages opened with a fixed name, which fail when another Actor (for example a development copy) created that name first.
- Secrets and builds: tokens and keys in code, input fields that should be
isSecret, unpinned base images and dependencies,printinstead of the logger. - Listing gaps: title and description length, README sections, events not explained.
- Unit economics: with exported runs, your prices become revenue, platform cost and net per run.
What it does not do. It reads files only: it never runs the Actor, never imports its code, never calls the Apify API and needs no token. Findings come from static analysis. They are things to confirm, not observed production behaviour, and a clean report does not guarantee correct billing, security or Store approval.
How it differs from Apify's own checks. apify validate-schema checks schema files against the specification, and the Actor quality score rates a published Actor from its Store data. This skill reads the source before you publish and covers the billing and permission faults neither looks at. Use it together with apify validate-schema.
The same files always give the same report (Markdown and JSON), and the exit code (0 no blocker, 1 blocker, 2 unreadable project) can gate CI. Python 3.9+, standard library only. Includes an invented example Actor and its expected report, and 47 tests.
Not affiliated with or endorsed by Apify or Agensi. Built by AGI Tools.
Static analysis only: charges built from variables or wrappers can hide a problem or cause a false alarm. Every finding cites the line so you can judge.
Python and JavaScript/TypeScript Actors only. Comments and docstrings are ignored for charge detection; symbolic links and files over 2 MB are skipped and listed.
Verified on Linux with Python 3.9, 3.11, 3.12 and 3.13; Windows and macOS not verified yet.
Unit economics use a 20% commission by default; check your current publishing terms. Owner runs are not revenue.
A clean report is not a guarantee of correct billing, security or Store approval.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Software
Python 3.9+
Permissions
File Scopes
What's inside
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.