ActorCollectionClient
Hierarchy
- ResourceCollectionClient
- ActorCollectionClient
Index
Methods
__init__
Initialize the ActorCollectionClient.
Parameters
args: Any
kwargs: Any
Returns None
create
Create a new actor.
https://docs.apify.com/api/v2#/reference/actors/actor-collection/create-actor
Parameters
keyword-onlyname: str
The name of the actor
optionalkeyword-onlytitle: Optional[str] = None
The title of the actor (human-readable)
optionalkeyword-onlydescription: Optional[str] = None
The description for the actor
optionalkeyword-onlyseo_title: Optional[str] = None
The title of the actor optimized for search engines
optionalkeyword-onlyseo_description: Optional[str] = None
The description of the actor optimized for search engines
optionalkeyword-onlyversions: Optional[List[Dict]] = None
The list of actor versions
optionalkeyword-onlyrestart_on_error: Optional[bool] = None
If true, the main actor run process will be restarted whenever it exits with a non-zero status code.
optionalkeyword-onlyis_public: Optional[bool] = None
Whether the actor is public.
optionalkeyword-onlyis_deprecated: Optional[bool] = None
Whether the actor is deprecated.
optionalkeyword-onlyis_anonymously_runnable: Optional[bool] = None
Whether the actor is anonymously runnable.
optionalkeyword-onlycategories: Optional[List[str]] = None
The categories to which the actor belongs to.
optionalkeyword-onlydefault_run_build: Optional[str] = None
Tag or number of the build that you want to run by default.
optionalkeyword-onlydefault_run_memory_mbytes: Optional[int] = None
Default amount of memory allocated for the runs of this actor, in megabytes.
optionalkeyword-onlydefault_run_timeout_secs: Optional[int] = None
Default timeout for the runs of this actor in seconds.
optionalkeyword-onlyexample_run_input_body: Optional[Any] = None
Input to be prefilled as default input to new users of this actor.
optionalkeyword-onlyexample_run_input_content_type: Optional[str] = None
The content type of the example run input.
Returns Dict
dict: The created actor.
list
List the actors the user has created or used.
https://docs.apify.com/api/v2#/reference/actors/actor-collection/get-list-of-actors
Parameters
optionalkeyword-onlymy: Optional[bool] = None
If True, will return only actors which the user has created themselves.
optionalkeyword-onlylimit: Optional[int] = None
How many actors to list
optionalkeyword-onlyoffset: Optional[int] = None
What actor to include as first when retrieving the list
optionalkeyword-onlydesc: Optional[bool] = None
Whether to sort the actors in descending order based on their creation date
Returns ListPage
ListPage: The list of available actors matching the specified filters.
Sub-client for manipulating actors.