Random User-Agent Generator
Batch generate valid User-Agent strings for mainstream browsers. Customize by browser (Chrome/Firefox/Safari/Edge/Opera), operating system (Windows/macOS/Linux/Android/iOS), and device type (desktop/mobile/tablet). Generate up to 100 strings at a time.
Documentation
Overview
Batch generate realistic and valid User-Agent strings. Ideal for web crawler debugging, API testing, and data scraping.
Request Parameters
count: Quantity, 1-100, default: 10browsers: Browser list, options:chrome/firefox/safari/edge/opera, default: alloperatingSystems: OS list, options:windows/macos/linux/android/ios, default: alldevices: Device type list, options:desktop/mobile/tablet, default: all
Notes
- Mobile/tablet devices automatically match with Android/iOS systems
- Desktop devices automatically match with Windows/macOS/Linux systems
- List parameters support arrays or comma-separated strings
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
Request Example
{
"count": 10,
"browsers": [
"chrome",
"firefox",
"safari"
],
"operatingSystems": [
"windows",
"macos",
"ios"
],
"devices": [
"desktop",
"mobile"
]
}Response Example
{
"code": "SUCCESS",
"message": "success",
"data": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 15_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Safari/605.1.15",
"Mozilla/5.0 (iPhone; CPU iPhone OS 18_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Mobile/15E148 Safari/604.1"
]
}Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| count | number | 10 |
| browsers | array | "chrome" |
| browsers[] | string | chrome |
| operatingSystems | array | "windows" |
| operatingSystems[] | string | windows |
| devices | array | "desktop" |
| devices[] | string | desktop |
Response Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| code | string | SUCCESS |
| message | string | success |
| data | array | "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36" |
| data[] | string | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 |