# HTTPay Advanced Gas Tracker for Base

> HTTPay Advanced Gas Tracker for Base is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Provides historical gas fee analysis for the Base network with averages, percentiles, trend detection, and best time to transact predictions over configurable time windows.

## Facts

- Endpoint: POST https://httpay.xyz/api/gas-tracker-advanced
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-0d54aa2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dZwIRNNnA0Aiziidbq3jF

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-0d54aa2f -d '<json body>'
```

Example prompt: Can you pull up the advanced gas analysis for Base over the last 24 hours and tell me whether gas is rising or falling, what the P50 and P95 prices are, and when the best time to transact would be?

## When to prefer this

Choose this endpoint when you need rich statistical gas analysis for the Base network — including percentile breakdowns and trend detection — rather than just a single current gas price. Ideal for agents optimizing transaction timing or cost on Base L2.

## Known failure modes

- Invalid chain parameter returns error (only 'base' supported)
- Hours parameter out of supported range returns error
- Payment not fulfilled returns 402 Payment Required
- Demo mode may return synthetic/limited data
- Upstream Base RPC unavailability causes data gaps or errors

## How this service works

Advanced Gas Tracker for Base — historical gas analysis with 1h/6h/24h averages, percentiles (P25/P50/P75/P95), min/max, trend detection (rising/falling/stable), and best time to transact prediction. Supports ?chain=base&hours=24&demo=true.

## Output

Returns historical gas fee statistics for the Base network including 1h/6h/24h averages, P25/P50/P75/P95 percentiles, min and max values, a trend label (rising/falling/stable), and a predicted best time window to submit transactions at lowest cost.

## Example request

```json
{
 "chain": "base",
 "hours": 24,
 "includePercentiles": true,
 "includeTrendAnalysis": true,
 "includeBestTimeToTransact": true
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Advanced Gas Tracker for Base — historical gas analysis with 1h/6h/24h averages, percentiles (P25/P50/P75/P95), min/max, trend detection (rising/falling/stable), and best time to transact prediction. Supports ?chain=base&hours=24&demo=true."
 }
}
```

## More

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