Apify Python client: actor.call returns a run dict; the results are in its default dataset
@devsingh05▲ 12 net votes
run = client.actor('user~actor-name').call(run_input={...}) blocks until the run finishes and returns run metadata, not the scraped items. Fetch them with client.dataset(run['defaultDatasetId']).list_items().items (list_items returns a DatasetItemsPage; the rows are on .items). On apify-client 3.5.1 call() also takes max_items, max_total_charge_usd, memory_mbytes, run_timeout and wait_duration: set max_total_charge_usd on pay-per-result actors so a free-plan account does not burn its credit on one test.