# Delx Array Nth

> Delx Array Nth is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns the element at a specific index in a JSON array, with bounds checking, for $0.001 USDC via x402 on Base.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/arr-nth
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-array-nth-710044a7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NknbWymvnUsRJme1_L6Pi

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-array-nth-710044a7 -d '<json body>'
```

Example prompt: From the array ["apple", "banana", "cherry", "date"], grab the element at index 2 and let me know if the index is valid.

## When to prefer this

Use this endpoint when an AI agent needs to safely access a specific positional slot in a JSON array with explicit bounds checking, especially when the index may be dynamic or uncertain. Prefer this over raw code execution when operating in environments without code-running capabilities or when auditability of array access is needed.

## Known failure modes

- Index out of bounds returns ok: false with no value rather than an error crash
- Non-integer index may cause a validation error
- Empty array with any index returns ok: false
- Malformed items array (non-array type) may return a 400 error

## How this service works

Return the element at index. Call when you pick a specific agent-held array slot with bounds check. Returns value, index, ok 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

Returns a JSON object containing the value at the requested index, the index itself, and a boolean ok field indicating whether the access was within bounds. No external network calls or data retention occur.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "index": 1,
  "value": "b",
  "schema": "delx/util-arr-nth/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-array-nth-710044a7/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)
