Analytics Active

UA Parser

Parse any user agent string to extract browser, operating system, device type, and more. Perfect for analytics, bot detection, and content optimization.

https://ua-parser.localapi.ro
< 50ms Response Time
1/sec Rate Limit
None Auth Required
Free Pricing

Quick Start

Request
curl -X POST "https://ua-parser.localapi.ro/parse" \
  -H "Content-Type: application/json" \
  -d '{"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"}'
Request
import requests

response = requests.post(
    "https://ua-parser.localapi.ro/parse",
    json={
        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
    }
)

data = response.json()
print(f"Browser: {data['browser']['name']}")
print(f"OS: {data['os']['name']}")
Request
const response = await fetch("https://ua-parser.localapi.ro/parse", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
  })
});

const data = await response.json();
console.log(`Browser: ${data.browser.name}`);
console.log(`OS: ${data.os.name}`);

Response

200 OK application/json
{
  "browser": { "name": "Chrome", "version": "120.0" },
  "os": { "name": "Windows", "version": "10" },
  "device": { "type": "desktop" }
}

Available Endpoints

POST /parse

Parse a user agent string and return structured data.

Parameters

Parameter Type Required Description
user_agent string Yes The user agent string to parse
GET /health

Check service health and availability status.

Error Codes

Code Description
400 Invalid request - missing user_agent parameter
429 Rate limit exceeded - wait before retrying
500 Internal server error