# AgentData API — Crypto Prices Endpoint (x402, Base Mainnet)

> AgentData API — Crypto Prices Endpoint (x402, 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 cryptocurrency price data via a pay-per-request POST endpoint using x402 USDC micropayments on Base Mainnet

## Facts

- Endpoint: GET https://agentdata-api.com/api/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-crypto-prices-endpoint-x402-base-mainnet-317a538f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u4hggqn_uRi9JvPZhKtCf

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-crypto-prices-endpoint-x402-base-mainnet-317a538f
```

Example prompt: What's the current price of ETH and BTC in USD? Use the AgentData pay-per-request crypto prices API — no API key needed, just pay the $0.001 USDC micropayment via x402 on Base Mainnet.

## When to prefer this

Choose this endpoint when an AI agent needs real-time crypto price data without setting up API keys or accounts, especially in autonomous agent workflows (Claude Desktop, ElizaOS, MCP clients) where pay-per-use USDC micropayments via x402 on Base Mainnet are preferable to subscription-based data providers.

## Known failure modes

- Insufficient USDC balance for micropayment — x402 402 Payment Required response
- Invalid or unrecognized cryptocurrency symbol — 400 or empty result
- Network issue with Base Mainnet — payment or response timeout
- Malformed POST body — 400 Bad Request
- Unsupported asset pair — no data returned

## 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 cryptocurrency price data for the requested asset(s), delivered as a JSON response after a successful x402 USDC micropayment of $0.001 on Base Mainnet.

## 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",
       "description": "Map of symbol → { price, ts }",
       "additionalProperties": {
        "type": "object",
        "properties": {
         "ts": {
          "type": "number"
         },
         "price": {
          "type": "number"
         }
        }
       }
      },
      "success": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdata-api-crypto-prices-endpoint-x402-base-mainnet-317a538f/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)
