{"uid":"cap_BkY99ZD1pz0Fi44yjSXW4","slug":"delx-commerce-pluck-values-by-key-from-array-of-objects-4c857358","name":"Delx Commerce — Pluck Values by Key from Array of Objects","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/pluck?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","description":"Input field: key."},"items":{"type":"array","description":"Input field: items."}}},"responseSchema":{"type":"json","example":{"key":"id","count":2,"schema":"delx/util-pluck/v1","values":[1,2]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jEq6WmnLU1aLT_I7n_wug","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts a specific field (by key) from an array of objects and returns all matching values as a flat list.","exampleAgentPrompt":"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\"}].","exampleUseCases":[{"title":"Extract IDs from API response","prompt":"I got back a list of user records from our database — can you pull out just the 'userId' field from each one and give me a flat list?"},{"title":"Collect prices from product catalog","prompt":"Here's an array of product objects — grab all the 'price' values from them so I can total them up."},{"title":"Pluck email addresses from contact list","prompt":"I have a JSON array of contact objects and I just need a plain list of all the 'email' values — can you extract those for me?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:47.534Z","isFirstParty":false,"canonicalSlug":"delx-commerce-pluck-values-by-key-from-array-of-objects-4c857358"}