Xeno
Xeno•4w ago

Does Apify handle Maximum charged

Does Apify handle Maximum charged results automatically or this needs to be added to the code?
2 Replies
Xeno
XenoOP•3w ago
I am using the sample code @azzouzana provided for limiting items. It was helpful and I never knew about it. max_items_env = os.getenv('ACTOR_MAX_PAID_DATASET_ITEMS') MAX_ITEMS = int(max_items_env) if max_items_env and max_items_env.isdigit() else None I believe it works as through the Input on the website, I can limit the number of records pushed back to the user. I have a user stating the limit can be added on the dashboard but cannot be passed through the API. Looks like there is a maxItems property that can be used - https://docs.apify.com/api/client/js/reference/interface/ActorStartOptions but does that not get passed to the ACTOR_MAX_PAID_DATASET_ITEMS? Documentation suggests that it does - Value can be accessed in actor run using ACTOR_MAX_PAID_DATASET_ITEMS environment variable.
MEE6
MEE6•3w ago
@Xeno just advanced to level 6! Thanks for your contributions! 🎉

Did you find this page helpful?