{"uid":"cap_lxdEP7MpbcAC4eqqh981u","slug":"pennyrail-text-stats-character-count-b253823e","name":"PennyRail Text Stats – Character Count","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.stats--character-count","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":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_xINm9I0WMGB0idtjbM8fG","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":"Counts the number of characters in a given text string and returns the result as a JSON payload","exampleAgentPrompt":"How many characters are in this text: 'The quick brown fox jumps over the lazy dog'? I need the exact character count.","exampleUseCases":[{"title":"Validate tweet character limit","prompt":"Can you count the characters in this draft tweet for me: 'Just launched our new product — check it out at example.com! #startup #launch' — I need to make sure it's under 280 characters."},{"title":"Measure bio text length","prompt":"Count the characters in my LinkedIn bio so I know if it fits the limit: 'Passionate software engineer with 10 years of experience building scalable systems across fintech and healthcare.'"},{"title":"Check form field input length","prompt":"How many characters are in this user-submitted comment: 'I absolutely loved the service, the team was incredibly responsive and the product exceeded all my expectations!'? I need the number to validate it against our 200-character cap."}],"resultDescription":"A JSON object containing the character count (and potentially additional text statistics) for the provided input string. The response schema is open-ended, so additional computed metrics may be included alongside the primary character count value.","failureModes":["Missing 'input' field in request body returns a validation error","Empty string input may return zero or an error depending on server handling","Overly long strings may trigger payload size limits or timeouts","Payment failure via x402 protocol results in 402 Payment Required before processing","Malformed JSON body returns a parsing error"],"whenToPreferThis":"Choose this endpoint when you need a quick, reliable, paid microservice to compute the character count of a text string without standing up your own infrastructure. It is well-suited for AI agents that need to validate text length against limits (e.g. social media character caps, form field constraints) and want a simple JSON response. Prefer this over rolling your own logic when operating in an automated payment pipeline (x402/USDC) where metered API calls are already part of the workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:47:30.139Z","isFirstParty":false}