# JSON and Data Tools – Hash Text

> JSON and Data Tools – Hash Text is a paid API for AI agents from json-data-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Computes MD5, SHA-1, SHA-256, and SHA-512 cryptographic digests of UTF-8 text, returning both hex and base64-encoded forms for checksum and integrity verification.

## Facts

- Endpoint: GET https://json-data-tools.x402tookit.com/hash-text?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-and-data-tools-hash-text-049c04b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2lXo2Hh_JacBWC-5trVWy

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 json-and-data-tools-hash-text-049c04b0
```

Example prompt: Can you compute the MD5, SHA-256, and SHA-512 hashes of the text 'Hello, world!' and give me both the hex and base64 versions?

## When to prefer this

Use this endpoint when you need multiple hash algorithms (MD5, SHA-1, SHA-256, SHA-512) computed in a single call for the same text, especially when both hex and base64 encodings are needed. Prefer it over single-algorithm hashers or local computation when operating in an agent pipeline that already uses x402 micropayment infrastructure and needs a quick, reliable remote digest service for short-to-medium text inputs.

## Known failure modes

- Text exceeds 3000 character limit — request rejected or truncated
- Non-UTF-8 or binary input may cause unexpected digest values
- Missing required 'text' query parameter returns an error
- Service unavailability or payment failure (x402) blocks the request

## How this service works

MD5, SHA-1, SHA-256 and SHA-512 digests of UTF-8 text, in hex and base64, for checksums and integrity checks.

## Output

Returns an object containing MD5, SHA-1, SHA-256, and SHA-512 digests in hexadecimal, plus a SHA-256 value in base64, along with the byte length of the input text, a source identifier, a summary, and optional degraded/disclaimer flags.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to hash, up to 3000 characters"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "md5": {
       "type": [
        "null",
        "string"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "sha1": {
       "type": [
        "null",
        "string"
       ]
      },
      "bytes": {
       "type": [
        "null",
        "number"
       ]
      },
      "sha256": {
       "type": [
        "null",
        "string"
       ]
      },
      "sha512": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "sha256Base64": {
       "type": [
        "null",
        "string"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-and-data-tools-hash-text-049c04b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from json-data-tools.x402tookit.com](https://www.zero.xyz/host/json-data-tools.x402tookit.com/llms.txt)
