# httpay.xyz – API Gateway: The Graph Decentralized Indexing

> httpay.xyz – API Gateway: The Graph Decentralized Indexing is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-08).

Proxies POST requests to The Graph's decentralized indexing protocol, enabling subgraph queries via a pay-per-call gateway

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/thegraph/%7B*path%7D/*
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-f4874322
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CWekiJslWENC2w-Brmn2r

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-xyz-f4874322 -d '<json body>'
```

Example prompt: Query The Graph's decentralized indexing network for the latest Uniswap V3 swaps on Ethereum — send a GraphQL POST to the Uniswap V3 subgraph path and return the top 10 most recent swap events with token pairs and amounts.

## When to prefer this

Use this endpoint when you need to query indexed blockchain data from The Graph protocol without managing your own API keys or subgraph hosting — ideal for AI agents that need structured on-chain data (DeFi, NFT, DAO) via GraphQL and want simple pay-per-call access with no subscription setup.

## Known failure modes

- Invalid subgraph path returns 404 or upstream error
- Malformed GraphQL query body returns GraphQL error object
- Payment not included or insufficient USDC results in 402 Payment Required
- Subgraph not deployed or deprecated returns empty or error response
- Rate limiting or gateway timeout returns 503 or 504

## How this service works

API Gateway: The Graph decentralized indexing

## Output

The agent receives the raw GraphQL JSON response from The Graph's decentralized indexing layer, including requested on-chain entities such as events, transactions, token balances, or protocol metrics depending on the subgraph queried.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-f4874322/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)
