Workers - get operating system


How in workers I can get the operating system? and browser type also?


This is achieved by getting the User Agent, it’s a header in the request. Note that it can be spoofed easily, that string isn’t verified like the IP for example.


For User Agent:


As already stated, can be easily spoofed - You will be better off using a npm module like however to get a detailed breakdown