You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Apify Console, users can manually set the "Maximum charged results" value in the Run Options section. The maximum allowed value is automatically calculated based on the actor’s pricing and the user’s remaining monthly limit, ensuring they cannot enter a value exceeding their available balance.
However, I couldn't find a way to retrieve this value using the Apify Python Client API. For example:
run=client.run(run_id)
run_info=run.get()
# Retrieve run optionsoptions=run_info.get('options', {})
max_charged_results=options.get('maxItems')
If the user manually sets a "Maximum charged results" value, maxItems returns the specified number. However, if it is set to "No limit", the value returned is None.
I also tried checking the following environment variable but got the same result:
As a workaround, I found a manual solution by calculating the maximum number of results a user can retrieve based on their balance. This involves checking the user’s monthly limit, their remaining balance, and the actor’s per-result pricing, then performing the calculation externally. While this works, I was wondering if there is a more direct way to obtain this value.
Is there an API method that provides this pre-calculated "Maximum charged results" value, or is manual calculation the only option?
I would appreciate any guidance on this.
Thank you!
The text was updated successfully, but these errors were encountered:
Hello,
I have a question regarding PPR actors.
In the Apify Console, users can manually set the "Maximum charged results" value in the Run Options section. The maximum allowed value is automatically calculated based on the actor’s pricing and the user’s remaining monthly limit, ensuring they cannot enter a value exceeding their available balance.
However, I couldn't find a way to retrieve this value using the Apify Python Client API. For example:
If the user manually sets a "Maximum charged results" value, maxItems returns the specified number. However, if it is set to "No limit", the value returned is None.
I also tried checking the following environment variable but got the same result:
As a workaround, I found a manual solution by calculating the maximum number of results a user can retrieve based on their balance. This involves checking the user’s monthly limit, their remaining balance, and the actor’s per-result pricing, then performing the calculation externally. While this works, I was wondering if there is a more direct way to obtain this value.
Is there an API method that provides this pre-calculated "Maximum charged results" value, or is manual calculation the only option?
I would appreciate any guidance on this.
Thank you!
The text was updated successfully, but these errors were encountered: