# agent402.tools Gunzip Decompressor

> agent402.tools Gunzip Decompressor is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Decompresses a base64-encoded gzip payload and returns the result as UTF-8 text or base64-encoded binary, with a 10MB expansion cap to prevent zip bomb attacks.

## Facts

- Endpoint: POST https://agent402.tools/api/gunzip
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-gunzip-decompressor-36de2d30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1wyRSgkM5wNyrnKztgP--

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 agent402-tools-gunzip-decompressor-36de2d30 -d '<json body>'
```

Example prompt: I have a base64-encoded gzip payload I received from an API — can you decompress it and give me back the text content? Here it is: H4sIAAAAAAAA/ytJLS4BAAx+f9gEAAAA

## When to prefer this

Use this endpoint when you have a gzip-compressed payload encoded in base64 or hex and need to recover the original content — especially when handling API responses, data files, or binary blobs delivered in compressed form. Prefer this over client-side decompression when running in an environment without native gzip support or when you need safe size-bounded decompression.

## Known failure modes

- Invalid base64 input — returns error if the input string is not valid base64
- Not a valid gzip payload — returns error if the decoded bytes are not a valid gzip stream
- Expansion exceeds 10MB limit — request refused to prevent zip bomb exploitation
- Invalid inputFormat or outputFormat enum value — returns validation error
- Empty input — returns error for missing or empty input field

## How this service works

Decompress a base64-encoded gzip payload. Returns the result as utf8 (text) or base64 (binary). Refuses to expand past 10MB to defend against zip bombs.

## Output

Returns the decompressed content of the gzip payload either as a UTF-8 string (for text data) or as a base64-encoded string (for binary data). If the decompressed size would exceed 10MB, the request is refused to protect against zip bomb attacks.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "description": "Base64-encoded gzip bytes"
  },
  "inputFormat": {
   "type": "string",
   "description": "How `input` is encoded: base64 (default) or hex"
  },
  "outputFormat": {
   "type": "string",
   "description": "Result encoding: utf8 (default, for text) or base64 (for binary)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "output": "hello world!",
  "algorithm": "gzip",
  "inputBytes": 32,
  "outputBytes": 12
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-gunzip-decompressor-36de2d30/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
