# x402 Data API – API Price Statistics by Capability

> x402 Data API – API Price Statistics by Capability is a paid API for AI agents from data.kagurazaka.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-28).

Returns price statistics (min, quartiles, median, max) for x402 APIs matching a searched capability, plus the median among APIs with 3+ payers and the cheapest options with their uptime.

## Facts

- Endpoint: GET https://data.kagurazaka.dev/v1/market/prices?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-api-api-price-statistics-by-capability-525b74ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5lBpKen4SJJFl6VmSPfH1

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 x402-data-api-api-price-statistics-by-capability-525b74ec
```

Example prompt: What's the price range for x402 APIs that do web search — show me the cheapest ones with their uptime and how many buyers they've had.

## When to prefer this

Choose this endpoint when you need to benchmark or compare pricing across multiple x402 APIs offering a similar capability, rather than inspecting a single API's details. It is ideal for agents doing market research, cost optimization, or helping users select the most affordable x402 API for a given task. Prefer it over the seller/origin endpoints when the goal is capability-level price discovery rather than per-seller analysis.

## Known failure modes

- Query string too long (>200 chars) returns validation error
- No matching APIs found returns empty matches array and null price stats
- Service unavailable or upstream data stale returns 5xx error
- Payment not included or insufficient returns 402 Payment Required
- Query too vague returns a very wide price range with low-quality matches

## How this service works

Data about the x402 market: the CDP Bazaar's listings, sellers, prices and categories, new listings and price changes from snapshots every 6 hours, uptime we measure for every paid listing, and x402 spending of any wallet and revenue of any seller on Base.

## Output

A JSON object containing: the original query string, the number of matching APIs, price statistics (min, max, median, and implied quartiles in USD), a filtered median price among APIs with 3 or more payers, and an array of the cheapest matching APIs each with their resource URL, price in USD, and 30-day payer count.

## 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": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "maxLength": 200,
       "description": "capability, such as \"web search\" or \"remove background\""
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "query": {},
      "matches": {},
      "cheapest": {},
      "price_usd": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "web search",
  "matches": 20,
  "cheapest": [
   {
    "resource": "https://api.example/search",
    "price_usd": 0.001,
    "payers_30d": 12
   }
  ],
  "price_usd": {
   "max": 0.05,
   "min": 0.001,
   "median": 0.005
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-data-api-api-price-statistics-by-capability-525b74ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.kagurazaka.dev](https://www.zero.xyz/host/data.kagurazaka.dev/llms.txt)
