# Delx List Len Safe

> Delx List Len Safe is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-21).

Returns the safe integer length of a JSON array without any network calls or external dependencies.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/list-len-safe?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-list-len-safe-dd42bef3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0NxI_eCnMqSFbYBFG-mNB

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-list-len-safe-dd42bef3 -d '<json body>'
```

Example prompt: Before I start batching these results, can you safely count how many items are in this array: ["apple", "banana", "cherry", "date"]?

## When to prefer this

Choose this endpoint when you need a lightweight, no-side-effect array length check within an agentic pipeline — especially before batching, chunking, or quota checks. Prefer it over custom code when operating in environments without local execution, or when you want a paid, auditable micro-utility via x402 on Base. It is not appropriate for deep array inspection, nested counting, or recursive structures.

## Known failure modes

- Input is not a valid JSON array — returns an error or zero
- Field 'items' is missing from request body — likely returns an error
- Empty array provided — returns 0 (valid but agents should handle this case)
- Non-array value passed in items field — may return error or unexpected result

## How this service works

Safe length of a list/JSON array. Call when you measure agent arrays before batching. Returns length integer for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

An integer representing the number of elements in the provided JSON array, computed locally without external network calls or data retention.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "description": "Input field: items."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "length": 3,
  "schema": "delx/util-list-len-safe/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-list-len-safe-dd42bef3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
