# CoCo User Agent Parser

> CoCo User Agent Parser is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Parses a user agent string into structured browser, OS, device, and bot-detection fields

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/user-agent?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-user-agent-parser-e2af808a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ccfar41y7Ris4GE3AhxZ-

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 coco-user-agent-parser-e2af808a
```

Example prompt: Can you parse this user agent string for me and tell me what browser, OS, and device it is, and whether it looks like a bot? The UA is: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call user agent parsing API that returns structured browser, OS, device, and bot-detection data from a raw UA string. It is well-suited for agents that process individual HTTP requests or log entries on demand. Prefer it over heavier analytics SDKs when you only need quick UA classification without embedding a full library.

## Known failure modes

- Empty or missing 'ua' query parameter may return defaults or an error
- Unrecognized or highly custom user agent strings may return 'Other' for all fields
- Malformed UA strings are parsed best-effort, potentially yielding inaccurate classifications
- Very new browser/OS versions not yet in the parser's database may be misidentified

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

A JSON object with fields: browser (name), browser_version, os (operating system name), os_version, device (device category), and is_bot_like (boolean indicating whether the UA appears to be automated/bot traffic).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "os": "Other",
  "device": "Other",
  "browser": "Other",
  "os_version": "",
  "is_bot_like": false,
  "browser_version": ""
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

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