# ScriptMasterLabs User-Agent Parse API

> ScriptMasterLabs User-Agent Parse API is a paid API for AI agents from acp-x402-discovery.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Parses a user-agent string to extract browser, OS, device, and platform metadata, billed per-call via x402 USDC micropayment on Base.

## Facts

- Endpoint: GET https://acp-x402-discovery.onrender.com/x402/useragent-parse
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-user-agent-parse-api-07e889a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p-cL1AflQFGan5gW3V9rv

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 scriptmasterlabs-user-agent-parse-api-07e889a2
```

Example prompt: Can you parse this user-agent string — 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15' — and tell me what browser, OS, and device type it represents?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call user-agent parsing service with no subscription overhead, settled in USDC via x402 on Base. Ideal for AI agents or pipelines that process user-agent strings occasionally or at variable volume and want micropayment billing without API key management. Prefer alternatives if you need very high-volume batch parsing or require SLA guarantees beyond what a Render-hosted service offers.

## Known failure modes

- Missing or empty user-agent input returns an empty or error response
- Malformed or spoofed user-agent strings may result in unknown/null fields
- x402 payment failure (insufficient USDC balance) returns a 402 Payment Required response and no data
- Render cold-start latency may cause occasional timeouts on first call
- Highly custom or non-standard user-agent strings may not be recognized and return partial results

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

Returns structured metadata extracted from the user-agent string, including browser name, browser version, operating system, device type (mobile/desktop/tablet), and platform details. Response is a JSON object with parsed fields derived from the input user-agent.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-user-agent-parse-api-07e889a2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-discovery.onrender.com](https://www.zero.xyz/host/acp-x402-discovery.onrender.com/llms.txt)
