# User-Agent Parser

> User-Agent Parser is a paid API for AI agents from useragent.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Parses a User-Agent header string and returns structured device, browser, and OS information

## Facts

- Endpoint: POST https://useragent.openverbs.com/v1/parse
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/user-agent-parser-aad09af7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_28g8zPftZRwGpy4h9Rk-C

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability user-agent-parser-aad09af7 -d '<json body>'
```

Example prompt: Can you parse this user agent string for me — 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1' — and tell me what browser, OS, and device type it is?

## When to prefer this

Choose this endpoint when you need fast, structured parsing of raw HTTP User-Agent strings into browser, OS, and device components — especially in agent workflows that process web logs, personalize responses by device type, or filter bot traffic. Prefer this over regex-based self-parsing when reliability and accuracy across thousands of UA formats is required.

## Known failure modes

- Empty or missing 'ua' field returns a validation error
- Malformed or truncated UA string may return partial results or unknown fields
- Extremely long or obfuscated UA strings may not be fully parsed
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Break a User-Agent string into browser, engine, operating system (each with a version) and device type. Unidentifiable components are reported as null.

## Output

A structured breakdown of the User-Agent string including browser name and version, operating system and version, device type (mobile/desktop/tablet/bot), rendering engine, and platform details.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "ua": {
       "type": "string",
       "description": "The User-Agent header string."
      }
     },
     "required": [
      "ua"
     ],
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/user-agent-parser-aad09af7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from useragent.openverbs.com](https://www.zero.xyz/host/useragent.openverbs.com/llms.txt)
