Files
YouTube.js/docs/api/namespaces/Utils/functions/getRandomUserAgent.md
2025-06-08 13:48:03 -03:00

460 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:102