The API detected your browser as: Unknown Bot on Unknown
The User Agent API provides two main services:
Both services require a valid API key for authentication.
All API requests require an API key, which should be included as a query parameter:
For demo purposes, you can use the following API key: demo_key_123
/api/get_useragent.php
Generate a customized user agent string for testing purposes.
| Parameter | Type | Description | Required |
|---|---|---|---|
| key | string | Your API key for authentication | Yes |
| type | string | Device type: "desktop", "android", or "ios" | Yes |
| os_type | string | Operating system type (e.g., "windows", "macos", "linux", "android", "ios") | Yes |
| os_version | string | OS version (e.g., "10", "latest", "random") | Yes |
| browser_name | string | Browser name (e.g., "chrome", "firefox", "safari") | Yes |
| browser_version | string | Browser version (e.g., "100", "latest", "random") | Yes |
| device | string | Device model (e.g., "Samsung Galaxy S21", "iPhone 13", "random") | Yes |
/api/random_useragent.php
Generate a fully random user agent string by just specifying the device type. All other parameters (OS version, browser, device model) are automatically randomized with latest versions.
| Parameter | Type | Description | Required |
|---|---|---|---|
| key | string | Your API key for authentication | Yes |
| type | string | Device type: "desktop", "android", or "iphone" | Yes |
The API returns error responses with appropriate HTTP status codes when something goes wrong:
| Status Code | Description | Example |
|---|---|---|
| 400 | Bad Request - Missing or invalid parameters |
{
"success": false,
"status": 400,
"error": "Missing parameters: type, os_type"
}
|
| 401 | Unauthorized - Missing or invalid API key |
{
"success": false,
"status": 401,
"error": "Invalid API key."
}
|
| 429 | Too Many Requests - Rate limit exceeded |
{
"success": false,
"error": "Rate limit exceeded (100 requests/minute)"
}
|
The API enforces rate limits to prevent abuse:
Rate limit information is included in the response metadata.