# User-Agent String Parser

> User-Agent String Parser is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-03).

Parses a raw User-Agent string into structured browser, OS, and device components without any network calls

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/ua-parse?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/user-agent-string-parser-1094142b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_meHyLMlBwIDcUrzHao1Nd

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-string-parser-1094142b -d '<json body>'
```

Example prompt: Parse this user-agent string for me and tell me what browser, OS, and device type it is: 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Mobile/15E148 Safari/604.1'

## When to prefer this

Choose this endpoint when you need fast, offline User-Agent parsing with no external network dependency — ideal for high-throughput log processing or pipelines where latency and privacy matter. Prefer the free sandbox endpoint (/v1/sandbox/ua-parse) for development and testing before committing to the paid version at $0.001 USDC per call.

## Known failure modes

- Empty or missing user_agent field returns validation error
- User-agent string longer than 512 characters is rejected
- Unrecognizable or highly unusual user-agent strings may result in unknown fields or partial parsing
- Payment failure (insufficient USDC balance) blocks the request

## How this service works

Call when an agent needs a User-Agent string parsed into browser, OS, and device. No network. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/ua-parse first.

## Output

A structured breakdown of the User-Agent string including browser name and version, operating system name and version, and device type (e.g. mobile, desktop, bot), returned as parsed fields without any network lookup.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "user_agent": {
   "type": "string",
   "examples": [
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
   ],
   "maxLength": 512,
   "minLength": 1,
   "description": "Raw User-Agent header value to parse into browser, OS, and device class."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/user-agent-string-parser-1094142b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
