Skip to main content

ApifyClientAsync

apify_client.ApifyClientAsync

The asynchronous version of the Apify API client.

Index

Constructors

__init__

  • __init__(token, *, api_url, max_retries, min_delay_between_retries_millis, timeout_secs): None
  • Initialize the ApifyClientAsync.


    Parameters

    • token: str | None = None

      The Apify API token

    • api_url: str | None = Nonekeyword-only

      The URL of the Apify API server to which to connect to. Defaults to https://api.apify.com

    • max_retries: int | None = 8keyword-only

      How many times to retry a failed request at most

    • min_delay_between_retries_millis: int | None = 500keyword-only

      How long will the client wait between retrying requests (increases exponentially from this value)

    • timeout_secs: int | None = 360keyword-only

      The socket timeout of the HTTP requests sent to the Apify API

    Returns None

Methods

actor

  • Retrieve the sub-client for manipulating a single actor.


    Parameters

    • actor_id: str

      ID of the actor to be manipulated

    Returns ActorClientAsync

actors

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

dataset

  • Retrieve the sub-client for manipulating a single dataset.


    Parameters

    • dataset_id: str

      ID of the dataset to be manipulated

    Returns DatasetClientAsync

datasets

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

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

    • client_key: str | None = Nonekeyword-only

      A unique identifier of the client accessing the request queue

    Returns RequestQueueClientAsync

request_queues

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

schedule

  • Retrieve the sub-client for manipulating a single schedule.


    Parameters

    • schedule_id: str

      ID of the schedule to be manipulated

    Returns ScheduleClientAsync

schedules

store

task

  • Retrieve the sub-client for manipulating a single task.


    Parameters

    • task_id: str

      ID of the task to be manipulated

    Returns TaskClientAsync

tasks

user

  • Retrieve the sub-client for querying users.


    Parameters

    • user_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

webhooks