how does someone use the api (python) to
# 💻creators-and-apify
a
how does someone use the api (python) to set the ACTOR_MAX_PAID_DATASET_ITEMS? i think there's a maxItems or do we, as the developer, need to add a limit variable and programmatically add it in the code to limit results I guess my question is this https://discord.com/channels/801163717915574323/1403051131344519318
l
Via API, it is
max_items
here https://docs.apify.com/api/client/python/reference/class/ActorClientAsync#call In your code, you need to implement something similar as this JS code https://github.com/metalwarrior665/max-paid-items-example/blob/master/src/push-data.ts We recommend switching to PPE though
a
Thank you. The issue was max_items vs maxItems and running it during call instead of input variable