# HTTPay Hash API — MD5/SHA1/SHA256/SHA512 Text Hashing

> HTTPay Hash API — MD5/SHA1/SHA256/SHA512 Text Hashing is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Hashes any text string using MD5, SHA1, SHA256, or SHA512 and returns the hex digest, with no API key required — pay $0.001 USDC per call via x402.

## Facts

- Endpoint: POST https://httpay.xyz/api/hash
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-hash-api-md5-sha1-sha256-sha512-text-hashing-5111559f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C2vhY9QtcmftBYuYSf_XP

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 httpay-hash-api-md5-sha1-sha256-sha512-text-hashing-5111559f -d '<json body>'
```

Example prompt: Can you hash the text 'Hello, world!' using SHA256 and give me the hex digest?

## When to prefer this

Use this endpoint when you need a simple, dependency-free, pay-per-use hashing API that supports MD5, SHA1, SHA256, and SHA512 without API keys or subscriptions — ideal for agents needing one-off or infrequent hashing operations billed at $0.001 per call via USDC on Base.

## Known failure modes

- Missing 'text' field in request body returns an error
- Invalid or unsupported algorithm name returns an error
- Empty text string may return a valid hash of empty input (algorithm-dependent)
- Payment failure via x402 if insufficient USDC balance on Base

## How this service works

307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.

## Output

A JSON object containing the hex-encoded hash of the input text produced by the specified algorithm (md5, sha1, sha256, or sha512), computed using Node.js's built-in crypto module with zero external dependencies.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Hash any text using md5, sha1, sha256, or sha512. POST JSON body: {text, algorithm}. Returns hex hash. Uses Node.js built-in crypto module. Zero external dependencies."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-hash-api-md5-sha1-sha256-sha512-text-hashing-5111559f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
