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