POST
web
user_agent_parse
1 creditParse a user agent string into browser, OS, and device info
Endpoint
POST /api/v1/tools/web/user_agent_parse
Body Parameters
user_agent
string
required
Example
input
Request
{
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
}
output
Response
{
"os": "Windows",
"is_pc": true,
"device": "Other",
"is_bot": false,
"browser": "Chrome",
"is_mobile": false,
"is_tablet": false,
"os_version": "10",
"browser_version": "120.0.0"
}
Response Format
HTTP/1.1 200 OK
SUCCESS
{
"success": true,
"data": {
"os": "Windows",
"is_pc": true,
"device": "Other",
"is_bot": false,
"browser": "Chrome",
"is_mobile": false,
"is_tablet": false,
"os_version": "10",
"browser_version": "120.0.0"
},
"meta": {
"tool": "user_agent_parse",
"credits_consumed": 1
}
}
HTTP/1.1 422 Unprocessable Entity
ERROR
{
"success": false,
"data": null,
"error": {
"code": "validation_error",
"message": "The given data was invalid."
}
}
Sign in to try this tool directly from the docs.
Code Examples
Request Example
lightbulb
Developer Tip
Credits are deducted before execution. If the upstream tool fails, credits are automatically refunded to your account.