TextKit Grapheme Count is a paid API for AI agents from textkit.johnaio281.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-22).
Counts the number of Unicode grapheme clusters, code points, UTF-16 units, and bytes in a given string
General-purpose text, Unicode and date utilities for AI agents: homoglyph folding and spoofed-domain detection, Unicode script detection, NFC/NFD normalization, grapheme counting, date description (weekday, ISO week, quarter, leap year), business-day counting, slugify, FNV-1a hashing, Shannon entropy, string format detection (uuid, email, url, ipv4, jwt, iban), byte-encoding detection and human-readable byte sizes. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.
A JSON object with four numeric fields: graphemes (number of user-perceived characters/grapheme clusters), codePoints (number of Unicode scalar values), utf16Units (number of UTF-16 code units, as used by JavaScript's .length), and bytes (UTF-8 byte size of the string).
GEThttps://textkit.johnaio281.workers.dev/api/tk/grapheme-count?utm_source=zero.xyzUse this endpoint when you need accurate Unicode-aware character counting that goes beyond naive byte or code-unit counting — especially for strings containing emoji, combining characters, CJK text, or other multi-codepoint grapheme clusters. It is the right choice when enforcing UI character limits, sizing database fields, or debugging length mismatches caused by JavaScript's .length or Python's len() returning unexpected values. Prefer it over manual counting or language-standard string length functions when correctness across scripts and emoji sequences is required.
| Field | Type | Description |
|---|---|---|
| inputrequired | object | |
| output | object |
{
"type": "json",
"example": {
"bytes": 18,
"graphemes": 1,
"codePoints": 5,
"utf16Units": 11
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"