# SiteCheck User-Agent Parser

> SiteCheck User-Agent Parser is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-18).

Parses a User-Agent string (and optional Client Hints) to identify browser, OS, device, engine, platform, and bot status

## Facts

- Endpoint: GET https://api.sitecheck-api.workers.dev/api/user-agent?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-user-agent-parser-588a7ee4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q-xytm3TvQ6Zg55ZNruVz

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 sitecheck-user-agent-parser-588a7ee4
```

Example prompt: Parse this user agent string for me and tell me the browser, OS, device type, and whether it's a bot: 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'

## When to prefer this

Use this endpoint when you need to programmatically parse raw User-Agent strings into structured browser/OS/device/bot data, especially in a pay-per-call agent context without managing your own ua-parser-js instance. It supports Client Hints enrichment for more accurate modern browser detection. Prefer it over rolling your own parser when you need bot name identification alongside standard UA parsing.

## Known failure modes

- Missing 'ua' query parameter returns an error
- User-Agent string exceeding 1000 characters may be rejected
- Unrecognized or novel user agents may return partial nulls for some fields
- Client Hints fields exceeding length limits may be ignored or cause errors

## How this service works

Parses a User-Agent string: browser and version, rendering engine, operating system and version, device type, vendor and model, CPU, and whether it is a known crawler (Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot, AhrefsBot and a few more) with its name. Optional Client Hints values (platform, mobile, model) are reported as given. Parsed with ua-parser-js 1.x (MIT). Pure code, no outside request.

## Output

A JSON object containing parsed fields: browser (name, version), OS (name, version, clientHintPlatform), device (type, model, vendor), engine (name, version), platform string, isBot boolean, botName (if applicable), source library attribution, and a checkedAt timestamp.

## 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": [
      "ua"
     ],
     "properties": {
      "ua": {
       "type": "string",
       "description": "The User-Agent string, up to 1000 characters"
      },
      "chModel": {
       "type": "string",
       "description": "Client Hints model, up to 60 characters (optional)"
      },
      "chMobile": {
       "type": "string",
       "description": "Client Hints mobile flag, e.g. ?1 (optional)"
      },
      "chPlatform": {
       "type": "string",
       "description": "Client Hints platform, e.g. Windows (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "os": {
   "name": "iOS",
   "version": "17.0",
   "clientHintPlatform": null
  },
  "cpu": null,
  "isBot": false,
  "device": {
   "type": "mobile",
   "model": "iPhone",
   "vendor": "Apple"
  },
  "engine": {
   "name": "WebKit",
   "version": "605.1.15"
  },
  "source": "ua-parser-js 1.0.40 (MIT); bot names from a short list of published crawler user agents",
  "botName": null,
  "browser": {
   "name": "Mobile Safari",
   "version": "17.0"
  },
  "platform": "iOS",
  "checkedAt": "2026-10-15T14:07:52.209Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-user-agent-parser-588a7ee4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
