# 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 PUT requests to The Graph's decentralized indexing API via a pay-per-call x402 gateway, enabling blockchain subgraph queries without managing API keys.

## 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-api-gateway-the-graph-decentralized-indexing-510a62c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bjo7lhymHpr_9_OsL-4oo

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-api-gateway-the-graph-decentralized-indexing-510a62c5 -d '<json body>'
```

Example prompt: Query The Graph's decentralized indexing API for the Uniswap v3 subgraph — fetch the top 5 pools by total value locked on Ethereum mainnet using a GraphQL query.

## When to prefer this

Choose this endpoint when you need to query The Graph's decentralized indexing network without managing your own API key or subscription, especially for one-off or low-frequency subgraph queries where pay-per-call micropayments are more convenient than a billing plan. Ideal for AI agents that need to fetch indexed blockchain data (DeFi, NFTs, DAOs) on demand.

## Known failure modes

- Payment not included or insufficient USDC causes 402 Payment Required
- Invalid or non-existent subgraph path returns 404
- Malformed GraphQL query returns 400 Bad Request
- Subgraph not yet synced returns stale or empty data
- The Graph network congestion causes timeout or slow response
- Path wildcard not correctly encoded causes routing failure

## How this service works

API Gateway: The Graph decentralized indexing

## Output

Returns the GraphQL response from The Graph's decentralized indexing network for the specified subgraph path, including indexed on-chain data such as token balances, swap events, protocol metrics, or any other data the subgraph exposes.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-api-gateway-the-graph-decentralized-indexing-510a62c5/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)
