# User-Agent Parser

> User-Agent Parser is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Parses a User-Agent string to extract browser name and version, operating system, device class (desktop/mobile/tablet/bot), mobile flag, and bot identity for 20+ known crawlers.

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/ua-parse
- Price: $0.01/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-156a9a14
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PmY5lUn1cpD7CcEOfhJek

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-156a9a14
```

Example prompt: Can you parse this user agent string for me — 'Mozilla/5.0 (Linux; Android 10; SM-G975U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36' — and tell me the browser, OS, and whether it's a mobile device or a bot?

## When to prefer this

Choose this endpoint when you need fast, structured parsing of User-Agent strings for analytics enrichment, bot filtering, or device classification. It is especially useful when you need to identify specific known crawlers like Googlebot, GPTBot, or ClaudeBot by name. Prefer this over generic regex-based parsing when accuracy across 20+ bot fingerprints matters or when you need device class (desktop/mobile/tablet/bot) as a clean enum.

## Known failure modes

- Missing or empty user agent string returns an error or ambiguous result
- Unknown or custom user agent strings may return partial data with unknown fields
- Malformed query parameters result in a bad request error
- Very new bot user agents not yet in the database may not be identified by name
- Rate limiting or payment failure results in a 402 or 429 response

## How this service works

User-Agent parser: browser and version, operating system, device class (desktop/mobile/tablet/bot), mobile flag and bot name for crawlers (Googlebot, GPTBot, ClaudeBot, bingbot and 20+ more). Log analytics and bot filtering. $0.01 per string.

## Output

Returns structured data including browser name and version, operating system, device class (desktop, mobile, tablet, or bot), a boolean mobile flag, and the bot name if the user agent belongs to a known crawler such as Googlebot, GPTBot, ClaudeBot, bingbot, or 20+ others.

## 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",
     "properties": {}
    }
   },
   "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/user-agent-parser-156a9a14/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
