{"uid":"cap_Wr1mOMvdN82VzEDBMgLFh","slug":"delx-commerce-pick-fields-from-object-fa3ee53b","name":"Delx Commerce — Pick Fields from Object","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/pick-fields?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"keys":{"type":"array","description":"Input field: keys."},"object":{"type":"object","description":"Input field: object."}}},"responseSchema":{"type":"json","example":{"ok":true,"object":{"a":1,"c":3},"schema":"delx/util-pick-fields/v1","missing":["z"],"picked_count":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_7h_mBsLnH1ATq6s1zFFCK","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 specified subset of keys from a JSON object, returning only the requested fields and reporting any missing ones.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Slim down API response payload","prompt":"I got a huge JSON response from an API and I only need the 'name', 'email', and 'created_at' fields — can you extract just those from this object and tell me if any are missing?"},{"title":"Validate required fields in a record","prompt":"Here's a user record object — please pick out 'id', 'role', and 'permissions' from it, and flag any of those fields that aren't present."},{"title":"Prepare subset of data for downstream step","prompt":"I have this big config object and I only want to pass 'host', 'port', and 'timeout' to the next step — can you filter it down to just those keys?"}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:58.417Z","isFirstParty":false,"canonicalSlug":"delx-commerce-pick-fields-from-object-fa3ee53b"}