# Foundry User-Agent Parser

> Foundry User-Agent Parser is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Parses a User-Agent string to extract browser name and version, OS and version, device type, and bot/AI crawler detection

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/user-agent?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-user-agent-parser-1fcf6827
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JT0sAYPt0uvaEVJ-YYxXq

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 foundry-user-agent-parser-1fcf6827 -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need fast, structured parsing of a single User-Agent string including bot and AI crawler detection. It is ideal for enriching request logs, gating access for bots, or classifying visitor device type without running a local UA parsing library. Choose this over browser fingerprinting services when you only have the UA string and need quick classification.

## Known failure modes

- Empty or missing input string returns an error
- Extremely malformed or non-standard user agent strings may result in null fields for unrecognized components
- Very long strings beyond 8000 characters will be rejected
- Novel or rare bot user agents may not be recognized and is_bot may return false

## How this service works

User agent parser: browser and version, OS, device type, and whether it is a bot or AI crawler. Input: a User-Agent string.

## Output

Returns a JSON object with: browser (name string), browser_version, os (operating system name), os_version, device (e.g. 'desktop', 'mobile', 'tablet'), is_bot (boolean), bot (bot name if detected, else null), and the original user_agent string echoed back.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "A User-Agent header value"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "os": "Windows",
  "bot": null,
  "device": "desktop",
  "is_bot": false,
  "browser": "Chrome",
  "os_version": "10.0",
  "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0 Safari/537.36",
  "browser_version": "130.0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-user-agent-parser-1fcf6827/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
