Xeno
Xeno2d ago

how does someone use the api (python) to

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
2 Replies
Lukas Krivka
Lukas Krivka2d ago
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
GitHub
max-paid-items-example/src/push-data.ts at master · metalwarrior66...
Example code for handling Max Paid Items on Apify platform - metalwarrior665/max-paid-items-example
ActorClientAsync | API | API client for Python | Apify Documentation
Async sub-client for manipulating a single Actor.
Xeno
XenoOP2d ago
Thank you. The issue was max_items vs maxItems and running it during call instead of input variable

Did you find this page helpful?