# Delx Commerce — Pick Fields from Object

> Delx Commerce — Pick Fields from Object 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 specified subset of keys from a JSON object, returning only the requested fields and reporting any missing ones.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/pick-fields?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-pick-fields-from-object-fa3ee53b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Wr1mOMvdN82VzEDBMgLFh

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-pick-fields-from-object-fa3ee53b -d '<json body>'
```

Example prompt: From this JSON object {"a":1,"b":2,"c":3,"d":4}, pick only the fields 'a' and 'c' and tell me which ones were missing.

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call utility to project a subset of fields from a JSON object without standing up your own transformation logic. Ideal for agent pipelines where you want to slim down large API responses before passing data downstream, or when you need to detect missing required fields in a record. At $0.001 USDC per call with no signup, it suits ephemeral agent workflows that need deterministic field extraction without managing infrastructure.

## Known failure modes

- Missing or invalid 'keys' array — returns error or empty result
- Missing or invalid 'object' field — returns error
- All requested keys absent from object — 'picked_count' is 0 and 'missing' lists all keys
- Malformed JSON input — likely 400-level error
- Payment failure via x402 — request not processed

## 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: 'ok' (boolean success flag), 'object' (a new object with only the requested keys that existed), 'schema' (version identifier 'delx/util-pick-fields/v1'), 'missing' (array of keys that were requested but not found in the input), and 'picked_count' (integer count of successfully picked fields).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "object": {
   "a": 1,
   "c": 3
  },
  "schema": "delx/util-pick-fields/v1",
  "missing": [
   "z"
  ],
  "picked_count": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-pick-fields-from-object-fa3ee53b/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)
