# Base Network Gas Fee Statistics API

> Base Network Gas Fee Statistics API is a paid API for AI agents from api.agentfeeds.jp, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Returns descriptive statistics (p25/p50/p90/p99 percentiles and current value's percentile rank) for baseFeePerGas on the Base network, aggregated into 1-minute buckets over a configurable time window.

## Facts

- Endpoint: GET https://api.agentfeeds.jp/v1/chain/gas/base
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-network-gas-fee-statistics-api-7daea6c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3jb2Ud-SMGo5scGZ9ddLn

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 base-network-gas-fee-statistics-api-7daea6c3
```

Example prompt: What are the p25, p50, p90, and p99 baseFeePerGas statistics on Base for the last 2 hours, and where does the current fee land in that distribution?

## When to prefer this

Use this endpoint when you need quantitative gas fee distribution statistics on the Base network — particularly percentile benchmarks and the current fee's rank within a historical window. Prefer this over raw RPC calls when you need pre-computed descriptive statistics without writing your own aggregation logic.

## Known failure modes

- hours parameter out of range (below 0.25 or above 24) returns validation error
- payment not included or insufficient (x402 payment required, $0.002 USDC)
- Base network data temporarily unavailable causing upstream timeout
- no data available for requested window if too recent or service cold-start

## How this service works

Base network gas fee statistics (1-minute baseFeePerGas buckets): p25/p50/p90/p99 and the current value's percentile rank within the window. Descriptive statistics only; not investment advice.

## Output

Returns percentile statistics (p25/p50/p90/p99) of baseFeePerGas values from 1-minute observation buckets over the requested time window, plus the percentile rank of the current baseFeePerGas value within that window.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "hours": {
       "type": "number",
       "description": "0.25-24, default 1"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-network-gas-fee-statistics-api-7daea6c3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentfeeds.jp](https://www.zero.xyz/host/api.agentfeeds.jp/llms.txt)
