{"uid":"cap_RSSWBO2WZ111Er3I0dw_J","slug":"one-engine-array-first-d3d6a8d6","name":"ONE Engine Array First","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/array/first?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array"}}},"responseSchema":{"type":"json","example":{"found":true,"value":"a"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0009","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.0009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fEBQKcCm-1nvT1XapnxdX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the first element of a provided array, indicating whether a value was found.","exampleAgentPrompt":"I have this array ['a', 'b', 'c'] — can you get me the first element from it?","exampleUseCases":[{"title":"Extract first search result","prompt":"I ran a search and got back a list of results — can you pull out just the first one from this array: ['result1', 'result2', 'result3']?"},{"title":"Get first queued task","prompt":"Here's my task queue as an array — grab the first pending task from it: ['send_email', 'process_payment', 'update_record']."},{"title":"Peek at first log entry","prompt":"I have a list of log entries and I just need the very first one from this array: ['error: timeout', 'info: started', 'warn: retry']."}],"resultDescription":"A JSON object with a 'found' boolean indicating whether the array had any elements, and a 'value' field containing the first element of the array if found (e.g. {\"found\": true, \"value\": \"a\"}).","failureModes":["Empty array returns {\"found\": false, \"value\": null}","Missing 'values' field in request body causes validation error","Non-array type passed as 'values' may cause unexpected behavior","Payment failure via x402 results in 402 response before processing"],"whenToPreferThis":"Use this endpoint when you need a cheap, simple, pay-per-call operation to extract the first element of an array within an autonomous agent pipeline on Base using x402 micropayments. Prefer this over custom code when you want a stateless, reliable utility call billed at $0.0009 USDC per invocation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:30.870Z","isFirstParty":false,"canonicalSlug":"one-engine-array-first-d3d6a8d6"}