Apify
- api_key (Optional[str]): API key for authenticating with the Apify API.
init
run_actor
- actor_id (str): The ID of the actor to run.
- run_input (Optional[dict]): The input data for the actor. Defaults to
None
. - content_type (str, optional): The content type of the input.
- build (str, optional): Specifies the Actor build to run. It can be either a build tag or build number. By default, the run uses the build specified in the default run configuration for the Actor (typically latest).
- max_items (int, optional): Maximum number of results that will be returned by this run. If the Actor is charged per result, you will not be charged for more results than the given limit.
- memory_mbytes (int, optional): Memory limit for the run, in megabytes. By default, the run uses a memory limit specified in the default run configuration for the Actor.
- timeout_secs (int, optional): Optional timeout for the run, in seconds. By default, the run uses timeout specified in the default run configuration for the Actor.
- webhooks (list, optional): Optional webhooks (https://docs.apify.com/webhooks) associated with the Actor run, which can be used to receive a notification, e.g. when the Actor finished or failed. If you already have a webhook set up for the Actor, you do not have to add it again here.
- wait_secs (int, optional): The maximum number of seconds the server waits for finish. If not provided, waits indefinitely.
please use the ‘defaultDatasetId’ to get the dataset
get_dataset_client
- dataset_id (str): The ID of the dataset to get the client for.
get_dataset
- dataset_id (str): The ID of the dataset to get.
update_dataset
- dataset_id (str): The ID of the dataset to update.
- name (str): The new name for the dataset.
get_dataset_items
- dataset_id (str): The ID of the dataset to get items from.
get_datasets
- unnamed (bool, optional): Whether to include unnamed key-value stores in the list
- limit (int, optional): How many key-value stores to retrieve
- offset (int, optional): What key-value store to include as first when retrieving the list
- desc (bool, optional): Whether to sort the key-value stores in descending order based on their modification date