Get random UserAgent by specifying OS and kernel version using API interface:
1. Request Url:
https://api.vmlogin.com/v1/ua/rand
Request Type: POST
2. Request Url:
https://api.vmlogin.com/v1/ua/rand?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&os=xx&core=xxx&ver[]=xx&ver[]=xx&type=x
Request Type: GET
Name | Type | Description | required |
token | string | Authentication token | true |
os | string | Windows: "0" Mac: "1" Linux: "2" Android: "3" ios: "4" Firefox: "5" Edge: "6" Iphone Safari: "7" | true |
core | string | Specify Chrome UA-Core random, example: "114" Specify Iphone Safari version random, example "17" , support [12,13,…,16,17] | false |
ver | array | Windows, Android field Windows: [11,10,6] Android: [4,5,...,13,14] | false |
type | string | Android field, Mobile: "0" Pad: "1" | false |
Response
{
"status": "OK",
"value": 200,
"data": {
"ua": "Mozilla/5.0 (Linux; Android 12; SM-G996U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.57 Mobile Safari/537.36"
}
}
Note:
For token, please refer to the "View/Change the API Token" tutorial.
POST :
GET :