# AgentTools User-Agent Parser

> AgentTools User-Agent Parser is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Parse a User-Agent string into structured browser name/version, rendering engine, operating system, and device type/vendor/model data.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/dev/useragent-parse?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-user-agent-parser-c22dbc74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KeNq45mEHO8s32_O42Wm0

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 agenttools-user-agent-parser-c22dbc74
```

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

## When to prefer this

Use this endpoint when you need deterministic, structured parsing of a raw User-Agent header string into browser, engine, OS, and device fields. Prefer it over regex-based DIY parsing or heavier analytics platforms when you just need a single UA decoded quickly and cheaply at $0.002 per call.

## Known failure modes

- Missing or empty userAgent query parameter returns an error
- Malformed or unrecognized User-Agent strings may return null/unknown fields for unidentifiable components
- Network timeout or service unavailability returns a non-200 status
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Parse a User-Agent header into structured data: browser (name/version), rendering engine, operating system, and device type/vendor/model. Deterministic — the same string always parses identically. Use this when an agent needs to uA string → browser, engine, OS and device.

## Output

A structured object containing the parsed browser (name and version), rendering engine, operating system, and device details (type, vendor, model) extracted from the provided User-Agent string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "userAgent"
     ],
     "properties": {
      "userAgent": {
       "type": "string",
       "description": "User-Agent string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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