# Delx Commerce — Pluck Values by Key from Array of Objects

> Delx Commerce — Pluck Values by Key from Array of Objects 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).

Extracts a specific field (by key) from an array of objects and returns all matching values as a flat list.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/pluck?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-pluck-values-by-key-from-array-of-objects-4c857358
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BkY99ZD1pz0Fi44yjSXW4

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-pluck-values-by-key-from-array-of-objects-4c857358 -d '<json body>'
```

Example prompt: From this list of order objects, pull out all the 'id' fields and give me a flat array: [{"id":1,"product":"widget"},{"id":2,"product":"gadget"}].

## When to prefer this

Use this endpoint when you need a simple, cheap, stateless utility to extract a single field from an array of JSON objects without spinning up custom code. Ideal for agent pipelines that need to flatten structured data on the fly, especially when paying per-result via USDC on Base or Solana (x402 protocol) is acceptable and no signup or API key management is desired.

## Known failure modes

- Key not found in any items — returns empty values array with count 0
- Items array is empty — returns empty values array
- Malformed input (missing key or items fields) — likely 400 error
- Payment failure via x402 — 402 response before processing begins
- Mixed types in items where some objects lack the specified key — partial results

## 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 containing the key name used, a count of matched values, a schema identifier ('delx/util-pluck/v1'), and a 'values' array containing all extracted values for that key from the input items.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "key": "id",
  "count": 2,
  "schema": "delx/util-pluck/v1",
  "values": [
   1,
   2
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-pluck-values-by-key-from-array-of-objects-4c857358/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)
