Text Stats
text_statsReadability and text statistics for raw text or a fetched page: word/sentence/syllable counts, Flesch Reading Ease, Flesch-Kincaid grade, and reading/speaking time. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page URL to fetch and analyse instead of raw text. | |
| text | No | Raw text to analyse. Optional if url is given. | |
| wallet | No | Your EVM wallet address (0x...). Unlocks the free tier (3 free calls per wallet). | |
| api_key | No | Optional AMR enterprise API key. | |
| x_payment | No | Optional signed x402 payment payload (base64 JSON) for USDC/USDT on Base. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| token | No | Token actually used for payment (USDC, USDT or FREE). | USDC |
| source | Yes | ||
| routing | Yes | How the request was routed (provider, fallback, cache, latency). | |
| cost_usdc | Yes | Price charged in stablecoin units (USDC/USDT 1:1); 0 on the free tier. | |
| fetched_at | No | UTC timestamp when the data was fetched. | |
| word_count | Yes | ||
| sentence_count | Yes | ||
| syllable_count | Yes | ||
| character_count | Yes | ||
| paragraph_count | Yes | ||
| freshness_seconds | Yes | Age of the underlying data in seconds (0 = fetched live). | |
| complex_word_count | Yes | ||
| x_payment_response | No | Base64-encoded x402 settlement receipt (mirrors the X-PAYMENT-RESPONSE header). Only present when the call was paid with `x_payment`. | |
| flesch_reading_ease | No | ||
| flesch_kincaid_grade | No | ||
| reading_time_minutes | Yes | ||
| speaking_time_minutes | Yes | ||
| avg_syllables_per_word | Yes | ||
| avg_words_per_sentence | Yes | ||
| character_count_no_spaces | Yes |