# CoCo Word Frequency Analyzer

> CoCo Word Frequency Analyzer is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Counts word frequencies in a given text, returning the most common words, total word count, and unique word count.

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/word-freq?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-word-frequency-analyzer-26cc8afb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V8kFWXySl9cMOGmL37iRc

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 coco-word-frequency-analyzer-26cc8afb
```

Example prompt: Can you analyze this paragraph and tell me the top 5 most frequent words along with the total and unique word counts? Here's the text: 'The cat sat on the mat. The cat liked the mat.'

## When to prefer this

Choose this endpoint when you need a lightweight, cheap ($0.001 per call) word frequency computation over arbitrary text without needing a full NLP pipeline. It is ideal for quick vocabulary checks, keyword density audits, or repetition detection in short-to-medium texts where you don't need part-of-speech tagging, stemming, or sentiment analysis.

## Known failure modes

- Missing 'text' query parameter returns an error or empty result
- Very long texts may time out or hit payload limits
- Non-English or mixed-language text may produce unexpected tokenization
- The 'top' parameter if omitted may default to a fixed number of results
- Special characters or punctuation may affect tokenization accuracy

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object with a 'top' array of [word, count] pairs ranked by frequency, a 'unique' integer for the number of distinct words, and a 'total_words' integer for the total word count in the input text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "top": {
       "type": "string"
      },
      "text": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "total_words"
     ],
     "properties": {
      "total_words": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "top": [
   [
    "cat",
    1
   ],
   [
    "sat",
    1
   ],
   [
    "mat",
    1
   ],
   [
    "english",
    1
   ],
   [
    "example",
    1
   ]
  ],
  "unique": 5,
  "total_words": 11
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-word-frequency-analyzer-26cc8afb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
