Skip to main content

UserClientAsync

Async sub-client for querying user data.

Hierarchy

Index

Methods

__init__

  • __init__(*, base_url, root_client, http_client, resource_id, resource_path, params): None
  • Initialize a new instance.


    Parameters

    • keyword-onlybase_url: str

      Base URL of the API server.

    • keyword-onlyroot_client: ApifyClientAsync

      The ApifyClientAsync instance under which this resource client exists.

    • keyword-onlyhttp_client: HTTPClientAsync

      The HTTPClientAsync instance to be used in this client.

    • optionalkeyword-onlyresource_id: str | None = None

      ID of the manipulated resource, in case of a single-resource client.

    • keyword-onlyresource_path: str

      Path to the resource's endpoint on the API server.

    • optionalkeyword-onlyparams: dict | None = None

      Parameters to include in all requests from this client.

    Returns None

get

  • async get(): dict | None

limits

  • async limits(): dict | None

monthly_usage

  • async monthly_usage(): dict | None
  • Return monthly usage of the user account.

    This includes a complete usage summary for the current usage cycle, an overall sum, as well as a daily breakdown of usage. It is the same information which is available on the account's Billing page. The information includes use of storage, data transfer, and request queue usage.

    https://docs.apify.com/api/v2/#/reference/users/monthly-usage


    Returns dict | None

update_limits

  • async update_limits(*, max_monthly_usage_usd, data_retention_days): None
  • Update the account's limits manageable on your account's Limits page.


    Parameters

    • optionalkeyword-onlymax_monthly_usage_usd: int | None = None
    • optionalkeyword-onlydata_retention_days: int | None = None

    Returns None

Properties

http_client

params

params: dict

resource_id

resource_id: str | None

root_client

url

url: str