{"uid":"cap_GoCoz7h8c-lm85xBTEOTQ","slug":"string-statistics-8238275f","name":"String Statistics","description":"String statistics","url":"https://compute-api-production-245d.up.railway.app/string-stats?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_IcJVCGiWB7otKVSqzFaOS","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 statistical metrics (length, word count, character frequencies, etc.) for a given input string","exampleAgentPrompt":"Can you give me detailed statistics on this string — word count, character count, and character frequency — for the text: 'The quick brown fox jumps over the lazy dog'?","exampleUseCases":[{"title":"Validate input length before processing","prompt":"Before I submit this form data to the database, can you compute the string stats for 'Hello World! This is my profile bio.' so I can check if it's within the 50-character limit?"},{"title":"Word count for content writing","prompt":"I need to know the exact word count and character count of this paragraph: 'Artificial intelligence is transforming every industry from healthcare to finance.' Can you run string statistics on it?"},{"title":"Character frequency analysis for cryptography","prompt":"Run string stats on this ciphertext 'XKZQMWVPLRTBN' and tell me the frequency of each character so I can start a frequency analysis."}],"resultDescription":"Returns computed statistics for the submitted string, including metrics such as total character count, word count, unique character count, character frequency distribution, whitespace count, and other string-level measurements.","failureModes":["Missing 'input' field in request body returns a validation error","Empty string body may return zero-value statistics or an error","Extremely large strings may time out or exceed payload limits","Malformed JSON body returns a 400 Bad Request","Missing required 'type', 'method', or 'bodyType' fields in the input object causes schema validation failure","Payment not provided or insufficient USDC balance returns a 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need fast, cheap ($0.001 USDC), deterministic string-level statistics without setting up a local computation environment. It's ideal for agents that need to measure or profile text at runtime — e.g. checking content length, word density, or character composition — without relying on local code execution. Prefer this over NLP-based endpoints when you need raw structural metrics rather than semantic analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T19:00:43.022Z","isFirstParty":false,"canonicalSlug":"string-statistics-8238275f"}