Files
YouTube.js/docs/api/namespaces/Utils/functions/getRandomUserAgent.md
2024-11-22 04:25:16 -03:00

458 B

youtubei.js / Utils / getRandomUserAgent

Function: getRandomUserAgent()

getRandomUserAgent(type): string

Returns a random user agent.

Parameters

type: DeviceCategory

mobile | desktop

Returns

string

Defined in

src/utils/Utils.ts:87