# IPFS Gateway with x402 Micropayment

> IPFS Gateway with x402 Micropayment is a paid API for AI agents from gateway.offchain.wtf, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Retrieves IPFS content by CID via a pay-per-request gateway using the x402 HTTP payment protocol

## Facts

- Endpoint: GET https://gateway.offchain.wtf/ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-offchain-wtf-f94ee42e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gqviHo8eECAX5j7LudurH

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 gateway-offchain-wtf-f94ee42e
```

Example prompt: Can you fetch the IPFS content at CID QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG for me? It's stored on a pay-per-request IPFS gateway that charges $0.01 USDC via x402.

## When to prefer this

Use this endpoint when you need to retrieve content from IPFS by CID without operating your own IPFS node, especially in automated or agent workflows where pay-per-use micropayments via x402 are acceptable and you want simple HTTP access to decentralized content.

## Known failure modes

- Invalid or non-existent CID returns 404 not found
- x402 payment failure or insufficient USDC returns 402 Payment Required
- Timeout if IPFS peer holding the content is unreachable
- Malformed CID format causes request rejection
- Content not pinned on this gateway results in retrieval failure

## How this service works

IPFS content retrieval with x402 payment

## Output

The raw content stored at the given IPFS CID — could be a file, JSON object, or binary blob, returned as the HTTP response body after the x402 micropayment is settled.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-offchain-wtf-f94ee42e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.offchain.wtf](https://www.zero.xyz/host/gateway.offchain.wtf/llms.txt)
