# Fathom Base Token Batch Pricer

> Fathom Base Token Batch Pricer is a paid API for AI agents from fathom-api.mioku-fathom.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns price, liquidity, confidence score, risk flags, and main pool data for up to 50 Base ERC-20 tokens in a single request

## Facts

- Endpoint: GET https://fathom-api.mioku-fathom.workers.dev/v1/prices
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fathom-base-token-batch-pricer-4d5d0063
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7Rw0CEMfpONfYT5Ne9hTa

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 fathom-base-token-batch-pricer-4d5d0063
```

Example prompt: Can you get me current prices, liquidity, confidence scores, and risk flags for these Base tokens: 0x940181a94A35A4569E4529A3CDfB74e38FD98631 and 0x4200000000000000000000000000000000000006?

## When to prefer this

Use this endpoint when you need to price multiple Base chain ERC-20 tokens at once (up to 50) and want enriched DeFi data including liquidity depth, confidence scoring, risk flags, and main pool identification — particularly when building DeFi dashboards, portfolio trackers, token screeners, or risk assessment tools on Base.

## Known failure modes

- Token not found on Base: status=not_found with error code and message
- No liquidity available for token: status=no_liquidity
- RPC node error during lookup: status=rpc_error
- Token cannot be priced due to data gaps: status=unpriceable
- Requesting more than 50 tokens returns a validation error
- Missing required tokens query parameter returns error
- Payment not fulfilled (x402 payment required)

## How this service works

Batch endpoint for Base ERC-20 token prices, liquidity, confidence scores, and risk flags.

## Output

An array of per-token results including price_usd, price_low, price_high, twap_5m, liquidity_usd, confidence score, risk flags, token symbol, label, main pool details (DEX name, pool address, liquidity, fee tier, price), updated_at timestamp, and a status field indicating ok/not_found/no_liquidity/rpc_error/unpriceable. Also returns aggregate counts (total, priced, failed).

## 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",
     "required": [
      "tokens"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "const": "base",
       "default": "base"
      },
      "tokens": {
       "type": "string",
       "examples": [
        "0x940181a94A35A4569E4529A3CDfB74e38FD98631,0x4200000000000000000000000000000000000006"
       ],
       "description": "Comma-separated list of 1 to 50 Base ERC-20 token addresses"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "count",
      "priced",
      "failed",
      "results"
     ],
     "properties": {
      "chain": {
       "type": "string"
      },
      "count": {
       "type": "number"
      },
      "failed": {
       "type": "number"
      },
      "priced": {
       "type": "number"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "token",
         "chain",
         "status"
        ],
        "properties": {
         "twap": {
          "type": "object",
          "required": [
           "price_usd",
           "window_seconds",
           "spot_deviation_bps"
          ],
          "properties": {
           "price_usd": {
            "type": [
             "number",
             "null"
            ]
           },
           "window_seconds": {
            "type": [
             "number",
             "null"
            ],
            "description": "The window actually averaged over, which may differ per DEX."
           },
           "spot_deviation_bps": {
            "type": [
             "number",
             "null"
            ],
            "description": "How far spot sits from the average, in basis points."
           }
          },
          "description": "Time-weighted average price from the main pool's own oracle. Null when the pool cannot answer - commonly a fresh pool whose ob
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fathom-base-token-batch-pricer-4d5d0063/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fathom-api.mioku-fathom.workers.dev](https://www.zero.xyz/host/fathom-api.mioku-fathom.workers.dev/llms.txt)
