# Shannon Entropy & Randomness Analyzer

> Shannon Entropy & Randomness Analyzer is a paid API for AI agents from payanagent.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Calculates Shannon entropy and randomness characteristics of text or serialized data, useful for information-density estimation, anomaly detection, and machine-generated content inspection.

## Facts

- Endpoint: POST https://payanagent.com/x402/kh76jeas4yc9cz95f51525hann8dbynn
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/shannon-entropy-randomness-analyzer-b4aac9ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OYvGwKCKrTM9hYRsIdO-1

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 shannon-entropy-randomness-analyzer-b4aac9ad -d '<json body>'
```

Example prompt: Can you calculate the Shannon entropy and randomness profile of this string: 'aBc3$kLm9pQr2!ZzXwVt' — I want to know how information-dense and random it looks?

## When to prefer this

Choose this endpoint when you need a quick, paid-per-call entropy and randomness measurement on a specific string or serialized payload — especially useful for security audits, anomaly detection pipelines, token analysis, or assessing compression potential without standing up your own information-theory library.

## Known failure modes

- Empty or missing 'input' field returns a validation error
- Non-string body causes schema rejection
- Payment failure via x402 returns 402 Payment Required
- Extremely large input strings may be truncated or rejected
- Malformed JSON body returns 400 Bad Request

## How this service works

Calculate entropy and randomness characteristics of supplied data. Useful for Shannon entropy measurement, randomness analysis, information-density estimation, anomaly detection, compression analysis, token analysis, and machine-generated data inspection. Price: $0.002 USDC via x402 on Base.

## Output

Returns computed entropy and randomness metrics for the submitted text or data, including Shannon entropy value, information density estimation, and indicators useful for anomaly detection, compression analysis, and assessment of whether the data appears machine-generated or artificially structured.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "Text or serialized data for entropy, randomness, and information-density analysis."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shannon-entropy-randomness-analyzer-b4aac9ad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payanagent.com](https://www.zero.xyz/host/payanagent.com/llms.txt)
