# Text Statistics & Keyword Extractor

> Text Statistics & Keyword Extractor is a paid API for AI agents from tools.orchardshop.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-19).

Analyzes plain text to return word count, sentence count, character count, estimated reading time, and top 10 keywords with stopwords removed.

## Facts

- Endpoint: POST https://tools.orchardshop.xyz/t/text-stats?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-statistics-keyword-extractor-5a50adac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X0mKJXYxNIZLhIQDsKFM8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability text-statistics-keyword-extractor-5a50adac -d '<json body>'
```

Example prompt: Can you analyze this article text and tell me the word count, sentence count, character count, estimated reading time, and the top keywords? Here's the text: 'Artificial intelligence is transforming industries worldwide. Companies are investing heavily in machine learning research and development to gain competitive advantage...'

## When to prefer this

Use this endpoint when you need quick, structured text metrics — word count, sentence count, character count, reading time, and keyword extraction — from raw plain text without setting up an NLP library or ML pipeline. Ideal for lightweight content auditing, SEO keyword scanning, and readability checks. Prefer this over heavier NLP APIs when you don't need sentiment analysis, entity recognition, or summarization.

## Known failure modes

- Empty body returns zero counts or an error response
- Extremely large text may time out or hit size limits
- Non-plain-text bodies (e.g. HTML, JSON) may produce inflated or meaningless keyword results
- Network or payment failure returns a 402 or 5xx error

## How this service works

Small pay-per-call tools for AI agents. x402, USDC on Base.

## Output

Returns a JSON object containing: word count (integer), sentence count (integer), character count (integer), estimated reading time in minutes (float or integer), and an array of the top 10 keywords after stopword removal.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "string",
     "description": "POST / with plain text as the body"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "text"
     ],
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chars": {
       "type": "integer"
      },
      "words": {
       "type": "integer"
      },
      "sentences": {
       "type": "integer"
      },
      "top_keywords": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "word": {
          "type": "string"
         },
         "count": {
          "type": "integer"
         }
        }
       }
      },
      "reading_minutes": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chars": 55,
  "words": 10,
  "sentences": 2,
  "top_keywords": [
   {
    "word": "agents",
    "count": 1
   },
   {
    "word": "builds",
    "count": 1
   },
   {
    "word": "call",
    "count": 1
   },
   {
    "word": "cent",
    "count": 1
   },
   {
    "word": "orchard",
    "count": 1
   }
  ],
  "reading_minutes": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-statistics-keyword-extractor-5a50adac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.orchardshop.xyz](https://www.zero.xyz/host/tools.orchardshop.xyz/llms.txt)
