youtubei.js / Actions
Class: Actions
Constructors
new Actions()
new Actions(
session
):Actions
Parameters
• session: Session
Returns
Defined in
Properties
session
session:
Session
Defined in
Methods
execute()
execute(endpoint, args)
execute<
T
>(endpoint
,args
):Promise
<ParsedResponse
<T
>>
Executes an API call.
Type Parameters
• T extends string
Parameters
• endpoint: T
The endpoint to call.
• args
Call arguments
• args.parse: true
• args.protobuf?: false
• args.serialized_data?: any
Returns
Promise
<ParsedResponse
<T
>>
Defined in
execute(endpoint, args)
execute<
T
>(endpoint
,args
?):Promise
<ApiResponse
>
Type Parameters
• T extends string
Parameters
• endpoint: T
• args?
• args.parse?: false
• args.protobuf?: true
• args.serialized_data?: any
Returns
Promise
<ApiResponse
>
Defined in
stats()
stats(
url
,client
,params
):Promise
<Response
>
Makes calls to the playback tracking API.
Parameters
• url: string
The URL to call.
• client
The client to use.
• client.client_name: string
• client.client_version: string
• params
Call parameters.
Returns
Promise
<Response
>