vicious-gold•2mo ago
hello I created 2 actors payment on
hello I created 2 actors payment on result with my own ai api key
I have 2 problem I see that the api key was used and I don't see the run on apify analytics
second problem I wan don't allow free users to run the actor cause I am paying the api call fees
if this is not possible I am forced to disable this 2 actors
9 Replies
The first problem could be because not all users consent to share their runs with the developers, and insights might be not updated in real-time
For the second problem, yes you can know whether the running user is a paid Apify user.
But even for free users I believe it might be worth it to give them a small credit so they try your actor and see its result.
flat-fuchsia•2mo ago
I can't pay ai runs for them till now I paid 10 $ and revenu it's -0.16$
@msaidwolf just advanced to level 4! Thanks for your contributions! 🎉
flat-fuchsia•2mo ago
can you show me how to disable free users
you can check this env variable
if (process.env.APIFY_USER_IS_PAYING === '1')
But I also suggest is that you set some sort of rate limiting in your actor so free users would be allowed to run X amounts of external API callflat-fuchsia•2mo ago
@azzouzana can you share with me doc link please 🙂
Which doc?
Maybe this would help https://discord.com/channels/801163717915574323/1090592836044476426/1396480533416116255
Print all environment variables using a print statement in your preferred language. For example, these two might be useful for your case:
I assume APIFY_USER_IS_PAYING is a boolean value — if it’s empty, it means false, and if it contains 1 or any non-empty value, it means true.
The APIFY_USER_PRICING_TIER indicates the user’s specific pricing plan (in this case, “FREE”).

Something like this, but in your preferred language:
Python = JS =
Just do it in a separate actor as an exploration phase don’t include it in the final production actor. ⚠️