# Delx Commerce — Safe Integer Parser

> Delx Commerce — Safe Integer Parser is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Safely parses a string into an integer, returning a fallback default value if parsing fails, with verifiable pay-per-result delivery.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/parse-int-safe?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-safe-integer-parser-5ec08981
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VfcS7liuqw4as_cpzlPhb

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 delx-commerce-safe-integer-parser-5ec08981 -d '<json body>'
```

Example prompt: Parse the text '42abc' into an integer safely, and if it can't be parsed, use 0 as the default.

## When to prefer this

Choose this endpoint when you need a guaranteed non-crashing integer parse with an explicit fallback value, especially in agent pipelines where input strings may be malformed or user-provided, and you want verifiable pay-per-result execution without API key setup.

## Known failure modes

- Missing 'text' field returns an error response
- Non-integer default value causes schema validation failure
- Payment failure via x402 prevents execution
- Extremely large numeric strings may overflow integer bounds

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with an 'ok' boolean indicating parse success, a 'value' integer (either the parsed result or the provided default), and a 'schema' string identifying the response format as 'delx/util-parse-int-safe/v1'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  },
  "default": {
   "type": "integer",
   "description": "Input field: default."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "value": 42,
  "schema": "delx/util-parse-int-safe/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-safe-integer-parser-5ec08981/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
