Files
YouTube.js/docs/api/namespaces/Utils/functions/getRandomUserAgent.md
2025-01-20 16:49:04 -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