ApifyClient.API.Users.Usage (apify_client v1.0.0)

Copy Markdown View Source

Provides API endpoint related to api/users/usage

Summary

Functions

Get user's monthly usage by ID

Functions

monthly(user_id, opts \\ [])

@spec monthly(user_id :: String.t(), opts :: keyword()) ::
  {:ok, ApifyClient.Schemas.MonthlyUsage.t()} | {:error, ApifyClient.Error.t()}

Get user's monthly usage by ID

Returns the same summary of monthly usage as Get user's monthly usage, for an account given by its ID or username.

You can only access your own account, or the organization your API token belongs to. API tokens with limited permissions can't use this endpoint.

Using the date parameter will show the usage in the monthly usage cycle that includes that date.

Options

  • date: Date in the YYYY-MM-DD format.