# Beggar Bot SVG Sanitizer

> Beggar Bot SVG Sanitizer is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-22).

Sanitizes SVG content by stripping unsafe elements, scripts, and optionally external references, returning a cleaned SVG string

## Facts

- Endpoint: POST https://beggar-bot-demand.beggarbot.workers.dev/v1/svgsanitize?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-svg-sanitizer-0efa0d69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fv0ci4eeriKpSicMaQQbr

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 beggar-bot-svg-sanitizer-0efa0d69 -d '<json body>'
```

Example prompt: Can you sanitize this SVG for me so it's safe to embed on a webpage — strip any scripts or external references from it: <svg xmlns='http://www.w3.org/2000/svg'><script>alert(1)</script><circle r='50'/></svg>

## When to prefer this

Use this endpoint when you need a paid, API-accessible SVG sanitization service that integrates with the x402 micropayment protocol on Base mainnet. Prefer it in agentic pipelines where you need programmatic, on-demand SVG cleaning without managing your own sanitization library, or when operating in a Web3/crypto-native environment already using x402 for microtransactions.

## Known failure modes

- Invalid or malformed SVG input returns an error
- Missing required 'svg' field returns a 400-level error
- Payment failure via x402 (insufficient USDC balance) blocks the call
- Overly large SVG payloads may be rejected or time out
- Base64 decoding failure if b64 field contains invalid encoding

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

Returns a sanitized SVG string with unsafe elements (scripts, event handlers, dangerous attributes) removed. May include metadata about what was stripped. External references are blocked unless allow_external is set.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "svg"
 ],
 "properties": {
  "b64": {
   "type": "string"
  },
  "svg": {
   "type": "string"
  },
  "allow_external": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-svg-sanitizer-0efa0d69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
