# Delx Array Take

> Delx Array Take 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-14).

Returns the first N elements of a JSON array along with the count of returned items

## Facts

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

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-take-16afa32a -d '<json body>'
```

Example prompt: I have a big list of product IDs and I only want the first 10 — can you trim the array down to just those 10 items for me?

## When to prefer this

Use this endpoint when you need a simple, stateless, key-free way to truncate a JSON array to its first N elements, especially before passing data to expensive or rate-limited downstream APIs. Prefer it over custom code when running in an agent context without a native runtime, or when you want a consistent, auditable array-slicing step in a workflow pipeline.

## Known failure modes

- N exceeds array length — may return fewer items than requested or the full array
- N is zero or negative — may return empty array or error
- Input items is not a valid JSON array — validation error
- N is not an integer — type error

## How this service works

Take the first N elements. Call when you cap agent payloads before paid calls. Returns items prefix and count 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 prefix sub-array of the first N elements from the input array, along with a count of how many items were returned.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "items": [
   1,
   2
  ],
  "schema": "delx/util-arr-take/v1"
 }
}
```

## More

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