Gaurav Shah · Apr 27, 2020

Get the Device from which the web request came

Hi Team,

I am creating an API POST method to which the Web Requests will come. I want to identify that from which device (Mobile, Tablet, Laptop, Ipad etc) the request came. 

Let me know if you need more details from me regarding the question.

0 150
Discussion (1)1
Log in or sign up to continue

You should do that on a client (JS) side and send device info as a part of your POST request.

UserAgent can be retrieved from:


and you can try to map that to device.