ApifyClientAsync
Hierarchy
- _BaseApifyClient
- ApifyClientAsync
Index
Methods
__init__
Initialize a new instance.
Parameters
optionaltoken: str | None = None
The Apify API token.
optionalkeyword-onlyapi_url: str | None = None
The URL of the Apify API server to which to connect to. Defaults to https://api.apify.com.
optionalkeyword-onlymax_retries: int | None = 8
How many times to retry a failed request at most.
optionalkeyword-onlymin_delay_between_retries_millis: int | None = 500
How long will the client wait between retrying requests (increases exponentially from this value).
optionalkeyword-onlytimeout_secs: int | None = 360
The socket timeout of the HTTP requests sent to the Apify API.
Returns None
actor
Retrieve the sub-client for manipulating a single Actor.
Parameters
actor_id: str
ID of the Actor to be manipulated.
Returns ActorClientAsync
actors
Retrieve the sub-client for manipulating Actors.
Returns ActorCollectionClientAsync
build
Retrieve the sub-client for manipulating a single Actor build.
Parameters
build_id: str
ID of the Actor build to be manipulated.
Returns BuildClientAsync
builds
Retrieve the sub-client for querying multiple builds of a user.
Returns BuildCollectionClientAsync
dataset
Retrieve the sub-client for manipulating a single dataset.
Parameters
dataset_id: str
ID of the dataset to be manipulated.
Returns DatasetClientAsync
datasets
Retrieve the sub-client for manipulating datasets.
Returns DatasetCollectionClientAsync
key_value_store
Retrieve the sub-client for manipulating a single key-value store.
Parameters
key_value_store_id: str
ID of the key-value store to be manipulated.
Returns KeyValueStoreClientAsync
key_value_stores
Retrieve the sub-client for manipulating key-value stores.
Returns KeyValueStoreCollectionClientAsync
log
Retrieve the sub-client for retrieving logs.
Parameters
build_or_run_id: str
ID of the Actor build or run for which to access the log.
Returns LogClientAsync
request_queue
Retrieve the sub-client for manipulating a single request queue.
Parameters
request_queue_id: str
ID of the request queue to be manipulated.
optionalkeyword-onlyclient_key: str | None = None
A unique identifier of the client accessing the request queue.
Returns RequestQueueClientAsync
request_queues
Retrieve the sub-client for manipulating request queues.
Returns RequestQueueCollectionClientAsync
run
Retrieve the sub-client for manipulating a single Actor run.
Parameters
run_id: str
ID of the Actor run to be manipulated.
Returns RunClientAsync
runs
Retrieve the sub-client for querying multiple Actor runs of a user.
Returns RunCollectionClientAsync
schedule
Retrieve the sub-client for manipulating a single schedule.
Parameters
schedule_id: str
ID of the schedule to be manipulated.
Returns ScheduleClientAsync
schedules
Retrieve the sub-client for manipulating schedules.
Returns ScheduleCollectionClientAsync
store
Retrieve the sub-client for Apify store.
Returns StoreCollectionClientAsync
task
Retrieve the sub-client for manipulating a single task.
Parameters
task_id: str
ID of the task to be manipulated.
Returns TaskClientAsync
tasks
Retrieve the sub-client for manipulating tasks.
Returns TaskCollectionClientAsync
user
Retrieve the sub-client for querying users.
Parameters
optionaluser_id: str | None = None
ID of user to be queried. If None, queries the user belonging to the token supplied to the client.
Returns UserClientAsync
webhook
Retrieve the sub-client for manipulating a single webhook.
Parameters
webhook_id: str
ID of the webhook to be manipulated.
Returns WebhookClientAsync
webhook_dispatch
Retrieve the sub-client for accessing a single webhook dispatch.
Parameters
webhook_dispatch_id: str
ID of the webhook dispatch to access.
Returns WebhookDispatchClientAsync
webhook_dispatches
Retrieve the sub-client for querying multiple webhook dispatches of a user.
Returns WebhookDispatchCollectionClientAsync
webhooks
Retrieve the sub-client for querying multiple webhooks of a user.
Returns WebhookCollectionClientAsync
The asynchronous version of the Apify API client.