YouTube.js
Guide
Discord
GitHub
Guide
Discord
GitHub

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:86

Edit this page
Last Updated:
Contributors: Luan