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: