{"uid":"cap__mC982eBOx_m4dBGYno5s","slug":"delx-commerce-object-size-95e1aba5","name":"Delx Commerce Object Size","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/obj-size?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"object":{"type":"object","description":"Input field: object."}}},"responseSchema":{"type":"json","example":{"size":2,"schema":"delx/util-obj-size/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_6T1GfNGROned5QNDuE33W","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":"Computes and returns the number of top-level keys (size) of a given JSON object","exampleAgentPrompt":"How many top-level keys does this JSON object have: {\"name\": \"Alice\", \"age\": 30, \"city\": \"NYC\"}?","exampleUseCases":[{"title":"Validating payload field count","prompt":"Before I send this JSON payload to my downstream service, can you check how many top-level keys it has? Here it is: {\"id\": \"abc123\", \"status\": \"active\", \"amount\": 500}"},{"title":"Debugging unexpectedly large API response","prompt":"I got back this object from an API and I want to quickly know how many fields are in it — can you count the top-level keys for me? {\"user\": \"...\", \"session\": \"...\", \"metadata\": \"...\", \"flags\": \"...\", \"prefs\": \"...\"}"},{"title":"Schema comparison during data migration","prompt":"I'm comparing two versions of a config object to see if they have the same number of fields. Can you tell me the size (number of top-level keys) of this one: {\"host\": \"localhost\", \"port\": 5432, \"db\": \"mydb\", \"ssl\": true}?"}],"resultDescription":"Returns a JSON object containing 'size' (an integer representing the number of top-level keys in the input object) and 'schema' (a string identifier 'delx/util-obj-size/v1' indicating the response format version).","failureModes":["Input is not a valid JSON object — may return an error or unexpected result","Input is null or missing — likely returns a 400-style error","Nested objects are not counted recursively, only top-level keys are measured","Payment failure via x402 protocol prevents the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap ($0.001 USDC), pay-per-result computation of a JSON object's top-level key count without any signup or authentication overhead. It is well-suited for agents that need lightweight introspection of data payloads on-demand, especially in micropayment-enabled x402 workflows on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:58.929Z","isFirstParty":false,"canonicalSlug":"delx-commerce-object-size-95e1aba5"}