Skip to main content
Version: 0.6

ApifyClient

The Apify API client.

Index

Methods

__init__

  • __init__(token, *, api_url, max_retries, min_delay_between_retries_millis): Undefined
  • Initialize the Apify API Client.


    Parameters

    • optionaltoken: Optional[str] = None

      The Apify API token

    • optionalkeyword-onlyapi_url: Optional[str] = None

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

    • optionalkeyword-onlymax_retries: int = 8

      How many times to retry a failed request at most

    • optionalkeyword-onlymin_delay_between_retries_millis: int = 500

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

    Returns Undefined

actor

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


    Parameters

    • actor_id: str

      ID of the actor to be manipulated

    Returns ActorClient

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 BuildClient

builds

dataset

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


    Parameters

    • dataset_id: str

      ID of the dataset to be manipulated

    Returns DatasetClient

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 KeyValueStoreClient

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 LogClient

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: Optional[str] = None

      A unique identifier of the client accessing the request queue

    Returns RequestQueueClient

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 RunClient

runs

schedule

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


    Parameters

    • schedule_id: str

      ID of the schedule to be manipulated

    Returns ScheduleClient

schedules

task

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


    Parameters

    • task_id: str

      ID of the task to be manipulated

    Returns TaskClient

tasks

user

  • Retrieve the sub-client for querying users.


    Parameters

    • optionaluser_id: Optional[str] = None

      ID of user to be queried. If None, queries the user belonging to the token supplied to the client

    Returns UserClient

webhook

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


    Parameters

    • webhook_id: str

      ID of the webhook to be manipulated

    Returns WebhookClient

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 WebhookDispatchClient

webhook_dispatches

webhooks