{"uid":"cap_R5j8CpoL_muiMPKvd9agp","slug":"one-engine-character-count-88977fcd","name":"ONE Engine Character Count","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/text/character-count?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"characters":7}},"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_SsW4I1S4axDrGW_NanAgs","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":"Counts the total number of characters in a given text string and returns the count as a JSON integer.","exampleAgentPrompt":"How many characters are in this text: 'Hello, world! This is my draft message.'?","exampleUseCases":[{"title":"Validate tweet length before posting","prompt":"Count the characters in this draft tweet so I can check if it fits within the 280-character limit: 'Excited to announce our new product launch — join us live on Thursday at 3pm EST for a full demo and Q&A!'"},{"title":"Check API field character constraint","prompt":"Can you count how many characters are in this product description so I know if it'll fit in the 500-character database field: 'Our premium wireless headphones deliver studio-quality sound with 40-hour battery life and active noise cancellation.'"},{"title":"Measure text length for billing estimate","prompt":"Count the characters in this paragraph for me — I need to know the exact character count to estimate the cost before I send it to the translation API: 'The quarterly financial results exceeded analyst expectations, driven by strong growth in cloud services and international markets.'"}],"resultDescription":"A JSON object containing a single field 'characters' with an integer value representing the total character count of the submitted text string, e.g. {\"characters\": 42}.","failureModes":["Missing or empty 'text' field in request body may return an error or zero count","Payment failure via x402 protocol results in a 402 response before the computation is performed","Extremely large text strings may be rejected or time out due to Cloudflare Workers payload limits","Malformed JSON request body returns a parsing error"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, deterministic character count with no local computation — ideal for autonomous agents running in environments where string length functions are unavailable or when you need a pay-per-call metered utility via x402 on Base. Prefer it over manual computation when integrating into an agent pipeline that already handles x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:25.912Z","isFirstParty":false,"canonicalSlug":"one-engine-character-count-88977fcd"}