UserClient
Hierarchy
- ResourceClient
- UserClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
Added in 2.17.0
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
get
Retrieves the user data.
Depending on whether ApifyClient was created with a token, the method will either return public or private user data.
Parameters
options: TimeoutOptions = {}
Request options
Returns Promise<undefined | UserPrivateInfo>
The user object, or
undefinedif it does not exist.See more at https://docs.apify.com/api/v2/user-get
limits
Retrieves the user's account and usage limits.
Parameters
options: TimeoutOptions = {}
Request options
Returns Promise<AccountLimits>
The account and usage limits object.
Added in 2.9.2
monthlyUsage
Retrieves the user's monthly usage data.
Parameters
options: TimeoutOptions = {}
Request options
Returns Promise<MonthlyUsage>
The monthly usage object.
Added in 2.9.2
updateLimits
Updates the user's account and usage limits.
Parameters
newLimits: LimitsUpdateOptions
The new limits to set.
options: TimeoutOptions = {}
Request options
Returns Promise<void>
Added in 2.10.0
Client for managing user account information.
Provides methods to retrieve user details, monthly usage statistics, and account limits. When using an API token, you can access your own user information or public information about other users.