# AgentTools User-Agent Parser

> AgentTools User-Agent Parser is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

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

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/dev/useragent-parse?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-user-agent-parser-515bf383
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F3KmbHsjSC3IEMsNqjl6w

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-515bf383
```

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 the browser, engine, OS, and device type?

## When to prefer this

Use this endpoint when you need a fast, deterministic, server-side parse of a raw User-Agent string into structured browser, engine, OS, and device fields — especially when you need reliable results without maintaining your own UA parsing library or database. Ideal for log analysis pipelines, analytics enrichment, or any workflow where a raw HTTP User-Agent header must be decoded programmatically.

## Known failure modes

- Missing or empty userAgent query parameter returns a validation error
- Unrecognized or highly custom user agent strings may return unknown/null fields for some properties
- Malformed user agent strings may yield partial or empty results
- Network or server errors return non-200 status codes

## 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

Returns structured JSON containing the browser name and version, rendering engine name, operating system name and version, and device type (desktop, mobile, tablet), vendor, and model — all deterministically parsed from the input 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-515bf383/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
