# AgentData API — Gas Prices (Base Mainnet)

> AgentData API — Gas Prices (Base Mainnet) is a paid API for AI agents from agentdata-api.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns current gas price data for blockchain networks, paid via x402 USDC micropayment on Base Mainnet

## Facts

- Endpoint: GET https://agentdata-api.com/api/gas-prices
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdata-api-gas-prices-base-mainnet-fd95dd00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A0jNvwrN3a9I1ZW9awAOi

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 agentdata-api-gas-prices-base-mainnet-fd95dd00
```

Example prompt: What are the current slow, standard, and fast gas prices in gwei on Ethereum right now? Pay via USDC micropayment if needed.

## When to prefer this

Choose this endpoint when an AI agent needs real-time gas price estimates for blockchain transaction cost planning, DeFi operations, or smart contract interactions, and can pay $0.001 USDC per call via x402 without requiring an API key or account setup.

## Known failure modes

- Payment not included or insufficient USDC — returns 402 Payment Required
- Invalid or unsupported network identifier — returns 400 Bad Request
- Network data temporarily unavailable — returns 503 Service Unavailable
- Malformed request body — returns 400 with validation error

## How this service works

Pay-per-request crypto market data API for AI agents. 16 endpoints on Base Mainnet via x402 protocol. No accounts, no API keys. USDC micropayments from $0.001. Works with Claude Desktop, ElizaOS, and any MCP client.

## Output

Returns current gas price estimates (slow, standard, fast) in gwei or equivalent units for the requested blockchain network, along with a timestamp of when the data was fetched.

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "ts": {
         "type": "string"
        },
        "chains": {
         "type": "object"
        }
       }
      },
      "success": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdata-api-gas-prices-base-mainnet-fd95dd00/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentdata-api.com](https://www.zero.xyz/host/agentdata-api.com/llms.txt)
