{"uid":"cap_nzLV3ory7QBQ2aV9Cq_4U","slug":"delx-commerce-array-nth-element-lookup-5ac46714","name":"Delx Commerce — Array Nth Element Lookup","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/arr-nth?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"index":{"type":"integer","description":"Input field: index."},"items":{"type":"array","description":"Input field: items."}}},"responseSchema":{"type":"json","example":{"ok":true,"index":1,"value":"b","schema":"delx/util-arr-nth/v1"}},"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_FuByOxK41QqRgBkH1q81s","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":"Returns the element at a specified index from an input array, delivered as a paid, verifiable API call.","exampleAgentPrompt":"From the array [\"a\", \"b\", \"c\", \"d\"], fetch me the element at index 2.","exampleUseCases":[{"title":"Pick item from ordered list","prompt":"I have the list [\"apple\", \"banana\", \"cherry\", \"date\"] — give me the item at index 1."},{"title":"Select round-robin queue member","prompt":"From this rotation list [\"Alice\", \"Bob\", \"Carol\", \"Dave\"], who is at position 3?"},{"title":"Extract specific pipeline step","prompt":"Here's my pipeline steps array: [\"ingest\", \"transform\", \"validate\", \"publish\"] — what's the step at index 0?"}],"resultDescription":"Returns a JSON object with 'ok' (boolean success flag), 'index' (the requested integer index), 'value' (the element at that index), and 'schema' (versioned schema identifier 'delx/util-arr-nth/v1').","failureModes":["Index out of bounds: if the provided index exceeds the array length, the response may return an error or null value","Invalid input type: passing a non-integer index or non-array items field will cause a validation error","Empty array: requesting any index on an empty array will fail","Payment failure: if USDC payment via x402 is not completed, the call will be rejected with a 402 response"],"whenToPreferThis":"Use this endpoint when you need a verifiably paid, auditable array index lookup — particularly in agentic pipelines where payment provenance and delivery verification matter, or when integrating with x402-compatible payment flows on Base or Solana. For free, local array indexing, a simple in-code operation is more efficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:03.956Z","isFirstParty":false,"canonicalSlug":"delx-commerce-array-nth-element-lookup-5ac46714"}