{"uid":"cap_lA5TE21zIW9rX-oO257CX","slug":"one-engine-array-contains-check-0c8a1862","name":"ONE Engine Array Contains Check","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/contains?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{},"values":{"type":"array"}}},"responseSchema":{"type":"json","example":{"index":1,"contains":true}},"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_UhYgK5SGa7Lwuikb7k6jk","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":"Checks whether a given value exists within an array and returns the result along with the index of the match.","exampleAgentPrompt":"Check if the value 'banana' is contained in this array: ['apple', 'banana', 'cherry', 'date'] — I need to know if it's there and what index it's at.","exampleUseCases":[{"title":"Validate allowed user roles","prompt":"I have a list of permitted roles ['admin', 'editor', 'viewer'] — check if the role 'moderator' is in that list before granting access."},{"title":"Detect duplicate entry in queue","prompt":"I'm processing a job queue and need to know if job ID 'job-9821' is already in this list of active job IDs: ['job-1234', 'job-5678', 'job-9821', 'job-4321']."},{"title":"Feature flag membership check","prompt":"Can you check if the feature flag 'dark-mode' is included in the enabled flags list ['beta-ui', 'dark-mode', 'new-checkout'] and tell me its position?"}],"resultDescription":"Returns a JSON object with a boolean 'contains' field indicating whether the value was found in the array, and an 'index' integer indicating the position of the first match (or -1/null if not found).","failureModes":["Missing 'value' or 'values' fields returns a validation error","Non-array type for 'values' may cause a 400 error","Payment failure via x402 protocol results in a 402 response blocking the call","Empty array input may return contains: false with index: -1"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call array membership check without spinning up any compute infrastructure. Ideal for AI agents that need to verify inclusion of a value in a list as part of a workflow and want a cheap ($0.001 USDC), real-time, stateless primitive accessible over HTTP with x402 micropayments on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:28.109Z","isFirstParty":false,"canonicalSlug":"one-engine-array-contains-check-0c8a1862"}