{"uid":"cap_NVD63JqtKupUwXd1xEwfp","slug":"one-engine-object-has-key-check-9f4f3ff3","name":"ONE Engine Object Has-Key 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/object/has-key?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"object"}}},"responseSchema":{"type":"json","example":{"exists":true}},"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_sLCfrqqrvcyFpNwIk7QW_","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":"Checks whether a specified key exists within a given JSON object, returning a boolean result.","exampleAgentPrompt":"Check if the key 'email' exists in this object: { 'name': 'Alice', 'age': 30 } — I need to know before I try to use it.","exampleUseCases":[{"title":"Guard against missing config keys","prompt":"Before processing this config blob, check if it has a 'timeout' key — the object is { 'retries': 3, 'host': 'example.com' } and I need to know if 'timeout' is set."},{"title":"Validate API response fields","prompt":"I got back a JSON response from an external service and I need to know if the key 'error' is present in it before I decide how to handle it — the object is { 'status': 'ok', 'data': [] }."},{"title":"Check user profile completeness","prompt":"Can you check if the key 'phone_number' exists in this user profile object: { 'id': 42, 'name': 'Bob', 'email': 'bob@example.com' }? I want to know if they've filled it in."}],"resultDescription":"Returns a JSON object with a single boolean field `exists` (true or false) indicating whether the specified key is present as a direct property of the provided object.","failureModes":["Missing or malformed `key` string — likely returns an error or undefined result","Non-object `value` input — may fail schema validation","Network or worker timeout — transient 5xx response","Insufficient USDC balance for x402 payment — payment failure before call executes"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call check for key existence in a JSON object without spinning up your own logic — especially in agent pipelines on Base where x402 micro-payments are already wired in. It's ideal for simple guard checks before dereferencing potentially missing fields.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:24.957Z","isFirstParty":false,"canonicalSlug":"one-engine-object-has-key-check-9f4f3ff3"}