# HTTPay User Agent Parser

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

Parses a user agent string into structured browser, device, OS, engine, and bot detection fields using ua-parser-js

## Facts

- Endpoint: POST https://httpay.xyz/api/user-agent-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/httpay-user-agent-parser-10f94660
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pyTZ2SlstT56hRH_5yeEo

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 httpay-user-agent-parser-10f94660 -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 the device type, browser, and OS?

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-subscription user agent parser for occasional or bursty use cases where paying $0.002 USDC per call is preferable to maintaining an API key subscription. Ideal for agents that need structured browser/device/OS breakdown from raw HTTP user agent headers without managing credentials.

## Known failure modes

- Missing or empty user_agent parameter returns a 400 error
- Malformed or unrecognized user agent strings may return partial or empty fields
- Payment failure via x402/USDC results in 402 response blocking the call
- Extremely long or specially crafted user agent strings may not parse correctly

## How this service works

Parse any user agent string into device type, browser, OS, engine, and bot detection. Pass ?ua= query param. Uses ua-parser-js. Returns structured browser/device/OS breakdown.

## Output

Returns a structured JSON breakdown of the user agent string including device type (mobile/desktop/tablet), browser name and version, operating system and version, rendering engine, and whether the agent is identified as a bot or crawler.

## Example request

```json
{
 "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Parse any user agent string into device type, browser, OS, engine, and bot detection. Pass ?ua= query param. Uses ua-parser-js. Returns structured browser/device/OS breakdown."
 }
}
```

## More

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