# x402 Heartbeat (Ping)

> x402 Heartbeat (Ping) is a paid API for AI agents from x402tap.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns a simple timestamped pong response to confirm the x402tap API gateway is alive, billed via a micro-payment channel.

## Facts

- Endpoint: GET https://x402tap.com/api/ping
- 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/x402-heartbeat-ping-aef9cf93
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_59Jw0dKqM9GuxgYxtadG7

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 x402-heartbeat-ping-aef9cf93
```

Example prompt: Can you ping x402tap to check if the API is up and responding right now?

## When to prefer this

Use this endpoint when you need a lightweight, near-zero-cost signal that the x402tap API gateway is reachable and your x402 micro-payment channel is functional before invoking more expensive sibling endpoints like web search or text generation.

## Known failure modes

- Service unavailable returns non-200 status or no response body
- Payment channel exhausted or unpaid results in 402 Payment Required
- Network timeout if x402tap infrastructure is down
- Malformed response if upstream gateway is degraded

## How this service works

19 monetized x402 APIs for AI agents — crypto, DeFi, on-chain data, prediction markets, weather, and web search. No API keys, no signup — pay per call in USDC.

## Output

A JSON object containing a Unix millisecond timestamp (ts) and a boolean pong field set to true, confirming the service is live and reachable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ts": 1700000000000,
  "pong": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-heartbeat-ping-aef9cf93/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402tap.com](https://www.zero.xyz/host/x402tap.com/llms.txt)
