# ETH Price on Base (x402)

> ETH Price on Base (x402) is a paid API for AI agents from agentkit-x402-buy.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the current ETH/USD price and 24-hour change on the Base network, gated by a $0.001 USDC micropayment via the x402 protocol.

## Facts

- Endpoint: GET https://agentkit-x402-buy.vercel.app/api/eth-price
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eth-price-on-base-x402-2abf7c22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5XHwRGvicq_6dHvdcqIZu

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 eth-price-on-base-x402-2abf7c22
```

Example prompt: What's the current ETH price in USD right now, and how much has it changed in the last 24 hours on Base?

## When to prefer this

Choose this endpoint when you need a lightweight, real-time ETH/USD price quote specifically on the Base network (eip155:8453) and want to pay per-call via x402 micropayment without creating an account. It is ideal for agents with crypto wallets that can autonomously handle x402 payments and need fresh price data for DeFi decisions, portfolio tracking, or trading logic on Base.

## Known failure modes

- Payment not included or insufficient — returns HTTP 402 with payment requirements
- Invalid or malformed query parameters — returns 400 Bad Request
- Network or upstream price feed unavailable — returns 503 or timeout
- Rate limiting if too many requests in rapid succession

## How this service works

Instant Base wallet health brief. Pay $0.50 USDC via x402. No account.

## Output

A JSON object containing the current ETH/USD price (e.g. 3500), the 24-hour percentage change (e.g. 1.2), the network identifier (eip155:8453 for Base), and the seller wallet address used for the x402 micropayment.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "format": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "seller": "0xEb76f3442EAF192EBdDbc1F7EeBD59CdE5e00D35",
  "eth_usd": 3500,
  "network": "eip155:8453",
  "change_24h": 1.2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eth-price-on-base-x402-2abf7c22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentkit-x402-buy.vercel.app](https://www.zero.xyz/host/agentkit-x402-buy.vercel.app/llms.txt)
